UNPKG

4.49 kBSCSSView Raw
1@if $font-custom-name != "" {
2 @font-face {
3 font-family: "#{$font-custom-name}";
4 src: url("#{$font-custom-path}#{$font-name-thin}.eot");
5 src:
6 url("#{$font-custom-path}#{$font-name-thin}.eot?#iefix") format("embedded-opentype"),
7 url("#{$font-custom-path}#{$font-name-thin}.woff2") format("woff2"),
8 url("#{$font-custom-path}#{$font-name-thin}.woff") format("woff"),
9 url("#{$font-custom-path}#{$font-name-thin}.ttf") format("truetype");
10 font-weight: 200;
11 font-display: swap;
12 }
13
14 @font-face {
15 font-family: "#{$font-custom-name}";
16 src: url("#{$font-custom-path}#{$font-name-light}.eot");
17 src:
18 url("#{$font-custom-path}#{$font-name-light}.eot?#iefix") format("embedded-opentype"),
19 url("#{$font-custom-path}#{$font-name-light}.woff2") format("woff2"),
20 url("#{$font-custom-path}#{$font-name-light}.woff") format("woff"),
21 url("#{$font-custom-path}#{$font-name-light}.ttf") format("truetype");
22 font-weight: 300;
23 font-display: swap;
24 }
25
26 @font-face {
27 font-family: "#{$font-custom-name}";
28 src: url("#{$font-custom-path}#{$font-name-regular}.eot");
29 src:
30 url("#{$font-custom-path}#{$font-name-regular}.eot?#iefix") format("embedded-opentype"),
31 url("#{$font-custom-path}#{$font-name-regular}.woff2") format("woff2"),
32 url("#{$font-custom-path}#{$font-name-regular}.woff") format("woff"),
33 url("#{$font-custom-path}#{$font-name-regular}.ttf") format("truetype");
34 font-weight: 400;
35 font-display: swap;
36 }
37
38 @font-face {
39 font-family: "#{$font-custom-name}";
40 src: url("#{$font-custom-path}#{$font-name-medium}.eot");
41 src:
42 url("#{$font-custom-path}#{$font-name-medium}.eot?#iefix") format("embedded-opentype"),
43 url("#{$font-custom-path}#{$font-name-medium}.woff2") format("woff2"),
44 url("#{$font-custom-path}#{$font-name-medium}.woff") format("woff"),
45 url("#{$font-custom-path}#{$font-name-medium}.ttf") format("truetype");
46 font-weight: 500;
47 font-display: swap;
48 }
49
50 @font-face {
51 font-family: "#{$font-custom-name}";
52 src: url("#{$font-custom-path}#{$font-name-bold}.eot");
53 src:
54 url("#{$font-custom-path}#{$font-name-bold}.eot?#iefix") format("embedded-opentype"),
55 url("#{$font-custom-path}#{$font-name-bold}.woff2") format("woff2"),
56 url("#{$font-custom-path}#{$font-name-bold}.woff") format("woff"),
57 url("#{$font-custom-path}#{$font-name-bold}.ttf") format("truetype");
58 font-weight: 700;
59 font-display: swap;
60 }
61}
62
63html {
64 font-size: 100%;
65 // font-smooth has been removed from this specification, Works only on Mac OS X platform.
66 // -webkit-font-smoothing: antialiased;
67}
68
69body {
70 font-family: $font-family-base;
71 font-size: $font-size-body-1;
72 line-height: $font-lineheight-base;
73 color: $color-text1-4;
74}
75
76button,
77input,
78optgroup,
79select,
80textarea {
81 font-family: inherit;
82}
83
84h1 a,
85h2 a,
86h3 a,
87h4 a,
88h5 a,
89h6 a {
90 font-weight: inherit;
91}
92
93h1 {
94 margin-bottom: calc(#{$font-size-headline} * #{$typo-margin-bottom});
95 font-size: $font-size-headline;
96 font-weight: $font-weight-medium;
97 line-height: 36px;
98}
99
100h2 {
101 margin-bottom: calc(#{$font-size-title} * #{$typo-margin-bottom});
102 font-size: $font-size-title;
103 font-weight: $font-weight-medium;
104 line-height: 30px;
105}
106
107h3 {
108 margin-bottom: calc(#{$font-size-subhead} * #{$typo-margin-bottom});
109 font-size: $font-size-subhead;
110 font-weight: $font-weight-2;
111 line-height: 24px;
112}
113
114h4 {
115 margin-bottom: calc(#{$font-size-subhead} * #{$typo-margin-bottom});
116 font-size: $font-size-subhead;
117 font-weight: $font-weight-2;
118 line-height: 24px;
119}
120
121h5 {
122 margin-bottom: calc(#{$font-size-body-1} * #{$typo-margin-bottom});
123 font-size: $font-size-body-2;
124 font-weight: $font-weight-2;
125 line-height: 24px;
126}
127
128h6 {
129 margin-bottom: calc(#{$font-size-body-2} * #{$typo-margin-bottom});
130 font-size: $font-size-body-1;
131 font-weight: $font-weight-medium;
132 line-height: 20px;
133}
134
135p {
136 margin-bottom: calc(#{$font-size-body-1} * #{$typo-margin-bottom});
137 font-size: $font-size-body-1;
138 font-weight: $font-weight-2;
139 line-height: 20px;
140}
141
142strong {
143 font-weight: 500;
144}
145
146small {
147 font-size: 75%;
148}