@@ -32,10 +32,10 @@ $color-testimonial: #fc8dc1 !default;
32
32
33
33
@mixin cdSetup ($color ) {
34
34
color : $color ;
35
- border : solid 1 px $color ;
36
- border-left : solid 5 px $color ;
37
- margin : 15 px 5 px 10 px 0 ;
38
- border-radius : 4 px 0 0 4 px ;
35
+ border : solid 0.065 em $color ;
36
+ border-left : solid 0.325 em $color ;
37
+ margin : 0.975 em 0.325 em 0.65 em 0 ;
38
+ border-radius : 0.26 em 0 0 0.26 em ;
39
39
}
40
40
41
41
// Generic setup. Has to come before .error, .warning, and .output
@@ -54,7 +54,7 @@ div[class^='language-']::before {
54
54
background-color : #f2eff6 ;
55
55
display : block ;
56
56
font-weight : bold ;
57
- padding : 5 px 10 px ;
57
+ padding : 0.325 em 0.65 em ;
58
58
}
59
59
60
60
div [class ^= ' language-' ]::before ,
@@ -93,20 +93,20 @@ div.language-vulkan::before { content: "Vulkan"; }
93
93
94
94
// Tab panels are used on Setup pages to show instructions for different Operating Systems
95
95
.tab-pane {
96
- border : solid 1 px #ddd ; // #ddd == @nav-tabs-active-link-hover-border-color
96
+ border : solid 0.065 em #ddd ; // #ddd == @nav-tabs-active-link-hover-border-color
97
97
border-top : none ;
98
- padding : 20 px 20 px 10 px 20 px ;
99
- border-radius : 0 0 4 px 4 px ; // 4px == @border-radius-base
98
+ padding : 1.3 em 1.3 em 0.65 em 1.3 em ;
99
+ border-radius : 0 0 0.26 em 0.26 em ; // 0.26em == @border-radius-base
100
100
}
101
101
102
102
// Stripe above tab panels where OS tabs are shown
103
103
ul .nav.nav-tabs {
104
104
background : #E1E1E1 ;
105
- border-radius : 4 px 4 px 0 0 ; // 4px == @border-radius-base
105
+ border-radius : 0.26 em 0.26 em 0 0 ; // 0.26em == @border-radius-base
106
106
}
107
107
108
- // adjust line height of links so that clickable area (of OS tabs) is 44px high
109
- ul .nav.nav-tabs li a { line-height : 24 px ; } // or 1.714285716
108
+ // adjust line height of links so that clickable area (of OS tabs) is 2.86em high
109
+ ul .nav.nav-tabs li a { line-height : 1.56 em ; } // or 1.714285716
110
110
111
111
// This color provides better contrast ratio on most backgrounds used on Carpentries websites
112
112
// 9.24 on FFFFFF: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=FFFFFF&api (body)
@@ -118,11 +118,11 @@ a { color: #204A6F; }
118
118
.yt-wrapper2 { max-width : 100% ; margin : 0 auto ; }
119
119
120
120
// Use full width on small displays
121
- @media only screen and (max-width : 600 px ) { .yt-wrapper2 { max-width : 100% ; } }
121
+ @media only screen and (max-width : 39 em ) { .yt-wrapper2 { max-width : 100% ; } }
122
122
123
123
.yt-wrapper {
124
124
height : 0 ;
125
- margin-top : 10 px ;
125
+ margin-top : 0.65 em ;
126
126
padding-bottom : 56.25% ;
127
127
position : relative ;
128
128
width : 100% ;
@@ -140,27 +140,27 @@ a { color: #204A6F; }
140
140
// Specialized blockquote environments for learning objectives, callouts, etc.
141
141
// ----------------------------------------
142
142
143
- $codeblock-padding : 5 px !default ;
143
+ $codeblock-padding : 0.325 em !default ;
144
144
145
145
@mixin bkSetup ($color , $glyph ) {
146
146
147
147
$gradientcolor1 : $color ;
148
148
$gradientcolor2 : scale-color ($color , $lightness : 10% );
149
149
150
150
padding : 0 0 $codeblock-padding $codeblock-padding ;
151
- border : 1 px solid ;
151
+ border : 0.065 em solid ;
152
152
border-color : $color ;
153
- border-radius : 4 px ;
153
+ border-radius : 0.26 em ;
154
154
155
- margin : 15 px 5 px 10 px 0 ;
155
+ margin : 0.975 em 0.325 em 0.65 em 0 ;
156
156
157
157
h2 {
158
158
padding-top : $codeblock-padding ;
159
159
padding-bottom : $codeblock-padding ;
160
- font-size : 20 px ;
160
+ font-size : 1.3 em ;
161
161
background : linear-gradient (to bottom , $gradientcolor1 , $gradientcolor2 );
162
162
border-color : $color ;
163
- margin-top : 0 px ;
163
+ margin-top : 0 em ;
164
164
margin-left : - $codeblock-padding ; // to move back to the left margin of the enclosing blockquote
165
165
}
166
166
h2 :before {
@@ -195,7 +195,7 @@ $codeblock-padding: 5px !default;
195
195
.prereq h3 ,
196
196
.solution h3 ,
197
197
.testimonial h3 {
198
- font-size : 18 px ;
198
+ font-size : 1.17 em ;
199
199
}
200
200
201
201
.challenge { background-color : #eec27520 ; }
@@ -210,7 +210,7 @@ font-size: 18px;
210
210
.testimonial { background-color : #fc8dc120 ; }
211
211
212
212
blockquote p {
213
- margin : 5 px ;
213
+ margin : 0.325 em ;
214
214
}
215
215
blockquote :not (h2 ) + p {
216
216
padding-top : 1em ;
@@ -242,19 +242,19 @@ a:visited {
242
242
243
243
code {
244
244
white-space : nowrap ;
245
- padding : 2 px 5 px ;
245
+ padding : 0.13 em 0.325 em ;
246
246
color : #24292e ;
247
247
background-color : #e7e7e7 ;
248
248
}
249
249
250
250
samp { hyphens : none ; }
251
251
252
- dt { margin-top : 20 px ; }
252
+ dt { margin-top : 1.3 em ; }
253
253
dd { margin-left : 2em ; }
254
254
255
255
article img {
256
256
display : block ;
257
- margin : 20 px auto ;
257
+ margin : 1.3 em auto ;
258
258
max-width : 100% ;
259
259
}
260
260
@@ -264,13 +264,13 @@ article img.inline {
264
264
}
265
265
266
266
article h2 {
267
- margin : 48 px 0 16 px ;
268
- border-bottom : solid 1 px #eaecef ;
267
+ margin : 3.12 em 0 1.04 em ;
268
+ border-bottom : solid 0.065 em #eaecef ;
269
269
padding-bottom : 0.3em ;
270
270
line-height : 1.25 ;
271
271
}
272
272
273
- article h3 { margin : 40 px 0 16 px ; }
273
+ article h3 { margin : 2.6 em 0 1.04 em ; }
274
274
275
275
article pre {
276
276
margin : 0 ;
@@ -281,7 +281,7 @@ article pre {
281
281
// Miscellaneous.
282
282
// ----------------------------------------
283
283
284
- .figures h2 { margin-top : 100 px ; }
284
+ .figures h2 { margin-top : 6.5 em ; }
285
285
286
286
.maintitle {
287
287
text-align : center ;
@@ -295,16 +295,16 @@ footer .license,
295
295
footer .help-links
296
296
{
297
297
font-size : inherit ;
298
- margin-top : 10 px ;
299
- margin-bottom : 10 px ;
298
+ margin-top : 0.65 em ;
299
+ margin-bottom : 0.65 em ;
300
300
font-weight : 500 ;
301
301
line-height : 1.1 ;
302
302
}
303
303
304
304
img .navbar-logo {
305
- height : 40 px ; // synchronize with height of navbar
306
- padding-top : 5 px ;
307
- padding-right : 10 px ;
305
+ height : 2.6 em ; // synchronize with height of navbar
306
+ padding-top : 0.325 em ;
307
+ padding-right : 0.65 em ;
308
308
}
309
309
310
310
div .branding {
@@ -333,7 +333,7 @@ img {
333
333
334
334
p .image-with-shadow img ,
335
335
img .image-with-shadow {
336
- box-shadow : 0 6 px 24 px 0 #888 ;
336
+ box-shadow : 0 0.39 em 1.56 em 0 #888 ;
337
337
}
338
338
339
339
// ----------------------------------------
@@ -347,7 +347,7 @@ div.life-cycle {
347
347
z-index : 100 ;
348
348
font-size : 1.2em ;
349
349
text-align : center ;
350
- margin-bottom : -1 px ;
350
+ margin-bottom : -0.065 em ;
351
351
border-radius : 0 ;
352
352
}
353
353
@@ -387,14 +387,14 @@ kbd {
387
387
margin : 0 .1em ;
388
388
padding : .1em .6em ;
389
389
font-family : Arial ," Helvetica Neue" ,Helvetica ,sans-serif ;
390
- font-size : 11 px ;
390
+ font-size : 0.715 em ;
391
391
line-height : 1.4 ;
392
392
color : #242729 ;
393
- text-shadow : 0 1 px 0 #FFF ;
393
+ text-shadow : 0 0.065 em 0 #FFF ;
394
394
background-color : #e1e3e5 ;
395
- border : 1 px solid #adb3b9 ;
396
- border-radius : 3 px ;
397
- box-shadow : 0 1 px 0 rgba (12 ,13 ,14 ,0.2 ), 0 0 0 2 px #FFF inset ;
395
+ border : 0.065 em solid #adb3b9 ;
396
+ border-radius : 0.195 em ;
397
+ box-shadow : 0 0.065 em 0 rgba (12 ,13 ,14 ,0.2 ), 0 0 0 0.13 em #FFF inset ;
398
398
white-space : nowrap ;
399
399
font-style : normal ;
400
400
}
0 commit comments