| 1 |
@import "../utilities/mixins" |
| 2 |
|
| 3 |
=typography-size($target:'') |
| 4 |
@each $size in $sizes |
| 5 |
$i: index($sizes, $size) |
| 6 |
.is-size-#{$i}#{if($target == '', '', '-' + $target)} |
| 7 |
font-size: $size !important |
| 8 |
|
| 9 |
+typography-size() |
| 10 |
|
| 11 |
+mobile |
| 12 |
+typography-size('mobile') |
| 13 |
|
| 14 |
+tablet |
| 15 |
+typography-size('tablet') |
| 16 |
|
| 17 |
+touch |
| 18 |
+typography-size('touch') |
| 19 |
|
| 20 |
+desktop |
| 21 |
+typography-size('desktop') |
| 22 |
|
| 23 |
+widescreen |
| 24 |
+typography-size('widescreen') |
| 25 |
|
| 26 |
+fullhd |
| 27 |
+typography-size('fullhd') |
| 28 |
|
| 29 |
$alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right') |
| 30 |
|
| 31 |
@each $alignment, $text-align in $alignments |
| 32 |
.has-text-#{$alignment} |
| 33 |
text-align: #{$text-align} !important |
| 34 |
|
| 35 |
@each $alignment, $text-align in $alignments |
| 36 |
+mobile |
| 37 |
.has-text-#{$alignment}-mobile |
| 38 |
text-align: #{$text-align} !important |
| 39 |
+tablet |
| 40 |
.has-text-#{$alignment}-tablet |
| 41 |
text-align: #{$text-align} !important |
| 42 |
+tablet-only |
| 43 |
.has-text-#{$alignment}-tablet-only |
| 44 |
text-align: #{$text-align} !important |
| 45 |
+touch |
| 46 |
.has-text-#{$alignment}-touch |
| 47 |
text-align: #{$text-align} !important |
| 48 |
+desktop |
| 49 |
.has-text-#{$alignment}-desktop |
| 50 |
text-align: #{$text-align} !important |
| 51 |
+desktop-only |
| 52 |
.has-text-#{$alignment}-desktop-only |
| 53 |
text-align: #{$text-align} !important |
| 54 |
+widescreen |
| 55 |
.has-text-#{$alignment}-widescreen |
| 56 |
text-align: #{$text-align} !important |
| 57 |
+widescreen-only |
| 58 |
.has-text-#{$alignment}-widescreen-only |
| 59 |
text-align: #{$text-align} !important |
| 60 |
+fullhd |
| 61 |
.has-text-#{$alignment}-fullhd |
| 62 |
text-align: #{$text-align} !important |
| 63 |
|
| 64 |
.is-capitalized |
| 65 |
text-transform: capitalize !important |
| 66 |
|
| 67 |
.is-lowercase |
| 68 |
text-transform: lowercase !important |
| 69 |
|
| 70 |
.is-uppercase |
| 71 |
text-transform: uppercase !important |
| 72 |
|
| 73 |
.is-italic |
| 74 |
font-style: italic !important |
| 75 |
|
| 76 |
.is-underlined |
| 77 |
text-decoration: underline !important |
| 78 |
|
| 79 |
.has-text-weight-light |
| 80 |
font-weight: $weight-light !important |
| 81 |
.has-text-weight-normal |
| 82 |
font-weight: $weight-normal !important |
| 83 |
.has-text-weight-medium |
| 84 |
font-weight: $weight-medium !important |
| 85 |
.has-text-weight-semibold |
| 86 |
font-weight: $weight-semibold !important |
| 87 |
.has-text-weight-bold |
| 88 |
font-weight: $weight-bold !important |
| 89 |
|
| 90 |
.is-family-primary |
| 91 |
font-family: $family-primary !important |
| 92 |
|
| 93 |
.is-family-secondary |
| 94 |
font-family: $family-secondary !important |
| 95 |
|
| 96 |
.is-family-sans-serif |
| 97 |
font-family: $family-sans-serif !important |
| 98 |
|
| 99 |
.is-family-monospace |
| 100 |
font-family: $family-monospace !important |
| 101 |
|
| 102 |
.is-family-code |
| 103 |
font-family: $family-code !important |