* Rearrange responsive typography definition. Fixes #1078

* Renamed mixin (compliant with the styleguide)
This commit is contained in:
Colin Frick
2017-09-05 13:49:18 +02:00
committed by Jeremy Thomas
parent fd3977a94a
commit 43d289d235

View File

@@ -21,28 +21,31 @@
// Typography // Typography
=typography-size($target:'')
@each $size in $sizes @each $size in $sizes
$i: index($sizes, $size) $i: index($sizes, $size)
.is-size-#{$i} .is-size-#{$i}#{if($target == '', '', '-' + $target)}
font-size: $size !important font-size: $size !important
+typography-size()
+mobile +mobile
.is-size-#{$i}-mobile +typography-size('mobile')
font-size: $size !important
+tablet +tablet
.is-size-#{$i}-tablet +typography-size('tablet')
font-size: $size !important
+touch +touch
.is-size-#{$i}-touch +typography-size('touch')
font-size: $size !important
+desktop +desktop
.is-size-#{$i}-desktop +typography-size('desktop')
font-size: $size !important
+widescreen +widescreen
.is-size-#{$i}-widescreen +typography-size('widescreen')
font-size: $size !important
+fullhd +fullhd
.is-size-#{$i}-fullhd +typography-size('fullhd')
font-size: $size !important
$alignments: ('centered': 'center', 'left': 'left', 'right': 'right') $alignments: ('centered': 'center', 'left': 'left', 'right': 'right')