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 |
|
63 | html {
|
64 | font-size: 100%;
|
65 |
|
66 |
|
67 | }
|
68 |
|
69 | body {
|
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 |
|
76 | button,
|
77 | input,
|
78 | optgroup,
|
79 | select,
|
80 | textarea {
|
81 | font-family: inherit;
|
82 | }
|
83 |
|
84 | h1 a,
|
85 | h2 a,
|
86 | h3 a,
|
87 | h4 a,
|
88 | h5 a,
|
89 | h6 a {
|
90 | font-weight: inherit;
|
91 | }
|
92 |
|
93 | h1 {
|
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 |
|
100 | h2 {
|
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 |
|
107 | h3 {
|
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 |
|
114 | h4 {
|
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 |
|
121 | h5 {
|
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 |
|
128 | h6 {
|
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 |
|
135 | p {
|
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 |
|
142 | strong {
|
143 | font-weight: 500;
|
144 | }
|
145 |
|
146 | small {
|
147 | font-size: 75%;
|
148 | }
|