1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | $prototype-font-breakpoints: $global-prototype-breakpoints !default;
|
12 |
|
13 |
|
14 |
|
15 | $prototype-wide-letter-spacing: rem-calc(4) !default;
|
16 |
|
17 |
|
18 |
|
19 | $prototype-font-normal: $global-weight-normal !default;
|
20 |
|
21 |
|
22 |
|
23 | $prototype-font-bold: $global-weight-bold !default;
|
24 |
|
25 |
|
26 |
|
27 | @mixin font-wide(
|
28 | $letter-spacing: $prototype-wide-letter-spacing
|
29 | ) {
|
30 | letter-spacing: $letter-spacing;
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 | @mixin font-normal(
|
36 | $weight: $prototype-font-normal
|
37 | ) {
|
38 | font-weight: $weight;
|
39 | }
|
40 |
|
41 |
|
42 |
|
43 | @mixin font-bold(
|
44 | $weight: $prototype-font-bold
|
45 | ) {
|
46 | font-weight: $weight;
|
47 | }
|
48 |
|
49 |
|
50 | @mixin font-italic {
|
51 | font-style: italic !important;
|
52 | }
|
53 |
|
54 | @mixin foundation-prototype-font-styling {
|
55 | .font-wide{
|
56 | @include font-wide;
|
57 | }
|
58 |
|
59 | .font-normal {
|
60 | @include font-normal;
|
61 | }
|
62 |
|
63 | .font-bold {
|
64 | @include font-bold;
|
65 | }
|
66 |
|
67 | .font-italic {
|
68 | @include font-italic;
|
69 | }
|
70 |
|
71 | @if ($prototype-font-breakpoints) {
|
72 |
|
73 | @each $size in $breakpoint-classes {
|
74 | @include breakpoint($size) {
|
75 | @if $size != $-zf-zero-breakpoint {
|
76 | .#{$size}-font-wide{
|
77 | @include font-wide;
|
78 | }
|
79 |
|
80 | .#{$size}-font-normal {
|
81 | @include font-normal;
|
82 | }
|
83 |
|
84 | .#{$size}-font-bold {
|
85 | @include font-bold;
|
86 | }
|
87 |
|
88 | .#{$size}-font-italic {
|
89 | @include font-italic;
|
90 | }
|
91 | }
|
92 | }
|
93 | }
|
94 | }
|
95 | }
|