From: Colin Frick Date: Tue, 5 Sep 2017 11:49:18 +0000 (+0200) Subject: Fix #1078 (#1111) X-Git-Tag: 0.5.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43d289d235004b3bcefc41666038b6d7c75f485c;p=thirdparty%2Fbulma.git Fix #1078 (#1111) * Rearrange responsive typography definition. Fixes #1078 * Renamed mixin (compliant with the styleguide) --- diff --git a/sass/base/helpers.sass b/sass/base/helpers.sass index d1b08c7e4..cc5e14594 100644 --- a/sass/base/helpers.sass +++ b/sass/base/helpers.sass @@ -21,29 +21,32 @@ // Typography -@each $size in $sizes - $i: index($sizes, $size) - .is-size-#{$i} - font-size: $size !important - +mobile - .is-size-#{$i}-mobile - font-size: $size !important - +tablet - .is-size-#{$i}-tablet - font-size: $size !important - +touch - .is-size-#{$i}-touch - font-size: $size !important - +desktop - .is-size-#{$i}-desktop - font-size: $size !important - +widescreen - .is-size-#{$i}-widescreen - font-size: $size !important - +fullhd - .is-size-#{$i}-fullhd +=typography-size($target:'') + @each $size in $sizes + $i: index($sizes, $size) + .is-size-#{$i}#{if($target == '', '', '-' + $target)} font-size: $size !important ++typography-size() + ++mobile + +typography-size('mobile') + ++tablet + +typography-size('tablet') + ++touch + +typography-size('touch') + ++desktop + +typography-size('desktop') + ++widescreen + +typography-size('widescreen') + ++fullhd + +typography-size('fullhd') + $alignments: ('centered': 'center', 'left': 'left', 'right': 'right') @each $alignment, $text-align in $alignments