66// }
77
88html {
9- font-family : $ font-family-sans-serif ;
9+ font-family : var ( -- font-family-sans-serif) ;
1010 font-style : normal ;
1111 line-height : 1em ;
1212 background : theme-color (" inverse" );
1313
1414}
1515
1616body {
17- font-family : $ font-family-sans-serif ;
17+ font-family : var ( -- font-family-sans-serif) ;
1818 font-style : normal ;
19- font-size : $ font-size-base ;
19+ font-size : var ( -- font-size-base) ;
2020 line-height : 1em ;
21- background : $ body-bg ;
21+ background : var ( -- body-bg) ;
2222
2323}
2424
3333h4 ,
3434h5 ,
3535h6 {
36- color : $ body-color ;
37- font : normal 1.2em / 1.2em $ serif ;
36+ color : var ( -- body-color) ;
37+ font : normal 1.2em / 1.2em var ( -- serif) ;
3838 margin : 0 ;
3939}
4040
4141h1 {
42- color : $ body-color ;
43- font : normal 2em / 1.4em $ font-family-sans-serif ;
44- margin-bottom : ( $ baseline* 1.5 );
42+ color : var ( -- body-color) ;
43+ font : normal 2em / 1.4em var ( -- font-family-sans-serif) ;
44+ margin-bottom : calc ( var ( -- baseline) * 1.5 );
4545 text-align : center ;
4646}
4747
4848h2 {
49- color : $ lighter-base-font-color ;
50- font : normal 1.2em / 1.2em $ serif ;
51- margin-bottom : ( $ baseline* 0.75 );
49+ color : var ( -- lighter-base-font-color) ;
50+ font : normal 1.2em / 1.2em var ( -- serif) ;
51+ margin-bottom : calc ( var ( -- baseline) * 0.75 );
5252 -webkit-font-smoothing : antialiased ;
5353}
5454
5555p + h2 ,
5656ul + h2 ,
5757ol + h2 {
58- margin-top : ( $ baseline* 2 );
58+ margin-top : calc ( var ( -- baseline) * 2 );
5959}
6060
6161p {
@@ -78,20 +78,20 @@ span {
7878}
7979
8080.text-dark-grey {
81- color : $ dark-gray1 ;
81+ color : var ( -- dark-gray1) ;
8282 font-size : 24px ;
8383}
8484
8585p + p ,
8686ul + p ,
8787ol + p {
88- margin-top : $ baseline ;
88+ margin-top : var ( -- baseline) ;
8989}
9090
9191p {
9292 a :not (.btn ),
9393 a :visited:not (.btn ) {
94- color : $ link-color ;
94+ color : var ( -- link-color) ;
9595 font : inherit ;
9696 font-weight : inherit ;
9797 text-decoration : none ;
108108
109109a :not (.btn ),
110110a :visited:not (.btn ) {
111- color : $ link-color ;
111+ color : var ( -- link-color) ;
112112 font : inherit ;
113113 text-decoration : none ;
114114
@@ -131,12 +131,12 @@ a:visited:not(.btn) {
131131}
132132
133133.content-wrapper {
134- margin : $ baseline auto 0 auto ;
135- max-width : map-get ( $ container-max-widths, xl );
136- padding : 0 0 $ baseline/ 2 ;
134+ margin : var ( -- baseline) auto 0 auto ;
135+ max-width : var ( -- container-max-widths- xl );
136+ padding : 0 0 calc ( var ( -- baseline) / 2 ) ;
137137
138138 @include media-breakpoint-up (md) {
139- padding : 0 $ baseline $ baseline/ 2 ;
139+ padding : 0 var ( -- baseline) calc ( var ( -- baseline) / 2 ) ;
140140 }
141141
142142 @media print {
@@ -151,7 +151,7 @@ a:visited:not(.btn) {
151151
152152 @include media-breakpoint-up (md) {
153153 margin : 0 auto ;
154- padding : ( $ baseline* 2 ) 0 ;
154+ padding : calc ( var ( -- baseline) * 2 ) 0 ;
155155 max-width : grid-width (12 );
156156 min-width : 760px ;
157157 width : flex-grid (12 );
@@ -171,8 +171,8 @@ span.edx {
171171 @include clearfix ();
172172
173173 margin : 0 auto ;
174- max-width : map-get ( $ container-max-widths, xl );
175- padding : ( $ baseline* 3 ) 0 ( $ baseline* 6 );
174+ max-width : var ( -- container-max-widths- xl );
175+ padding : calc ( var ( -- baseline) * 3 ) 0 calc ( var ( -- baseline) * 6 );
176176 width : flex-grid (12 );
177177
178178 .inner-wrapper {
@@ -185,29 +185,29 @@ span.edx {
185185 list-style : disc ;
186186
187187 li {
188- color : $ body-color ;
189- font : normal 1em / 1.4em $ serif ;
188+ color : var ( -- body-color) ;
189+ font : normal 1em / 1.4em var ( -- serif) ;
190190 margin : 0 ;
191191 }
192192 }
193193
194194 h1 {
195- margin-bottom : ( $ baseline* 1.5 );
195+ margin-bottom : calc ( var ( -- baseline) * 1.5 );
196196 }
197197
198198 h1 + hr {
199- margin-bottom : ( $ baseline* 3 );
199+ margin-bottom : calc ( var ( -- baseline) * 3 );
200200 }
201201
202202 p + h2 ,
203203 ul + h2 ,
204204 ol + h2 {
205- margin-top : ( $ baseline* 2 );
205+ margin-top : calc ( var ( -- baseline) * 2 );
206206 }
207207
208208 ul + p ,
209209 ol + p {
210- margin-top : $ baseline ;
210+ margin-top : var ( -- baseline) ;
211211 }
212212}
213213
@@ -227,13 +227,13 @@ mark {
227227
228228.ie-banner {
229229 display : none ;
230- max-width : map-get ( $ container-max-widths, xl );
230+ max-width : var ( -- container-max-widths- xl );
231231 min-width : 720px ;
232232 margin : auto ;
233233 border-radius : 0 0 3px 3px ;
234234 background : #f4f4e0 ;
235235 color : #3c3c3c ;
236- padding : ( $ baseline/ 4 ) $ baseline 8px ;
236+ padding : calc ( var ( -- baseline) / 4 ) var ( -- baseline) 8px ;
237237 font-size : 13px ;
238238 text-align : center ;
239239
@@ -274,19 +274,19 @@ mark {
274274 display : inline-block ;
275275 position : absolute ;
276276 left : 0 ;
277- top : - ( $ baseline* 30 );
277+ top : calc ( -1 * var ( -- baseline) * 30 );
278278 overflow : hidden ;
279- background : $ white ;
280- border-bottom : 1px solid $ border-color-4 ;
281- padding : ( $ baseline* 0.75 ) 0 ;
279+ background : var ( -- white) ;
280+ border-bottom : 1px solid var ( -- border-color-4) ;
281+ padding : calc ( var ( -- baseline) * 0.75 ) 0 ;
282282
283283 & :focus ,
284284 & :active {
285285 @include left (45% );
286- @include margin-left (-1 * $ baseline * 1.5 );
286+ @include margin-left (calc ( -1 * var ( -- baseline) * 1.5 ) );
287287
288288 position : absolute ;
289- top : $ baseline/ 4 ;
289+ top : calc ( var ( -- baseline) / 4 ) ;
290290 width : 10% ;
291291 height : auto ;
292292 background-color : black ;
0 commit comments