From: harry Date: Thu, 2 Feb 2017 18:26:07 +0000 (+0530) Subject: Included font styling into responsive breakpoints logic! X-Git-Tag: v6.4.0-rc1~23^2~20^2~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e658d905603a477e4eea00488d7322a033d4e0;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Included font styling into responsive breakpoints logic! --- diff --git a/scss/prototype/_font-styling.scss b/scss/prototype/_font-styling.scss index 91d90674f..742c1ab8a 100644 --- a/scss/prototype/_font-styling.scss +++ b/scss/prototype/_font-styling.scss @@ -6,6 +6,10 @@ /// @group prototype-font-styling //// +/// Responsive breakpoints for floats, defaulted to global-prototype-responsive-breakpoints. +/// @type Number +$prototype-font-styling-responsive-breakpoints: $global-prototype-responsive-breakpoints !default; + @mixin font-normal { font-weight: $global-weight-normal; } @@ -19,34 +23,49 @@ } @mixin foundation-prototype-font-styling { - @each $size in $breakpoint-classes { - @include breakpoint($size) { - @if $size != $-zf-zero-breakpoint { - .#{$size}-font-normal { - @include font-normal; - } + @if ($prototype-font-styling-responsive-breakpoints) { + @each $size in $breakpoint-classes { + @include breakpoint($size) { + @if $size != $-zf-zero-breakpoint { + .#{$size}-font-normal { + @include font-normal; + } - .#{$size}-font-bold { - @include font-bold; - } + .#{$size}-font-bold { + @include font-bold; + } - .#{$size}-font-italic { - @include font-italic; - } - } - @else { - .font-normal { - @include font-normal; + .#{$size}-font-italic { + @include font-italic; + } } + @else { + .font-normal { + @include font-normal; + } - .font-bold { - @include font-bold; - } + .font-bold { + @include font-bold; + } - .font-italic { - @include font-italic; + .font-italic { + @include font-italic; + } } } } } + @else { + .font-normal { + @include font-normal; + } + + .font-bold { + @include font-bold; + } + + .font-italic { + @include font-italic; + } + } }