diff options
Diffstat (limited to 'src/mixins')
-rw-r--r-- | src/mixins/_typography.scss | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/mixins/_typography.scss b/src/mixins/_typography.scss deleted file mode 100644 index 31e39f0..0000000 --- a/src/mixins/_typography.scss +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | @function set-font($basis, $values: ()) { | ||
2 | $font: map-merge($basis, $values); | ||
3 | |||
4 | $map: (font-family: map-get($font, 'family')); | ||
5 | |||
6 | @if (map-has-key($font, 'size')) { | ||
7 | $map: map-merge( | ||
8 | $map, ( | ||
9 | font-size: map-get($font, 'size') | ||
10 | ) | ||
11 | ); | ||
12 | } | ||
13 | |||
14 | @if (map-has-key($font, 'weight')) { | ||
15 | $map: map-merge( | ||
16 | $map, ( | ||
17 | font-weight: map-get($font, 'weight') | ||
18 | ) | ||
19 | ); | ||
20 | } | ||
21 | |||
22 | @if (map-has-key($font, 'style')) { | ||
23 | $map: map-merge( | ||
24 | $map, ( | ||
25 | font-style: map-get($font, 'style') | ||
26 | ) | ||
27 | ); | ||
28 | } | ||
29 | |||
30 | @if (map-has-key($font, 'line-height')) { | ||
31 | $map: map-merge( | ||
32 | $map, ( | ||
33 | line-height: map-get($font, 'line-height') | ||
34 | ) | ||
35 | ); | ||
36 | } | ||
37 | |||
38 | @if (map-has-key($font, 'transform')) { | ||
39 | $map: map-merge( | ||
40 | $map, ( | ||
41 | text-transform: map-get($font, 'transform') | ||
42 | ) | ||
43 | ); | ||
44 | } | ||
45 | |||
46 | @if (map-has-key($font, 'variant-alternates')) { | ||
47 | $map: map-merge( | ||
48 | $map, ( | ||
49 | font-variant-alternates: map-get($font, 'variant-alternates') | ||
50 | ) | ||
51 | ); | ||
52 | } | ||
53 | |||
54 | @return $map; | ||
55 | } | ||
56 | |||
57 | @mixin set-font($basis, $values: ()) { | ||
58 | $values: set-font($basis, $values); | ||
59 | |||
60 | @each $prop, $value in $values { | ||
61 | #{$prop}: $value; | ||
62 | } | ||
63 | } | ||