@@ -10,6 +10,7 @@ $color-brand: #2b3990 !default;
10
10
11
11
// code boxes
12
12
$color-error : #bd2c00 !default ;
13
+ $color-warning : #cda01d !default ;
13
14
$color-output : #303030 !default ;
14
15
$color-source : #360084 !default ;
15
16
@@ -36,9 +37,10 @@ $color-testimonial: #fc8dc1 !default;
36
37
border-radius : 4px 0 0 4px ;
37
38
}
38
39
39
- .error { @include cdSetup ($color-error ); }
40
- .output { @include cdSetup ($color-output ); }
41
- .source { @include cdSetup ($color-source ); }
40
+ .error { @include cdSetup ($color-error ); }
41
+ .warning { @include cdSetup ($color-warning ); }
42
+ .output { @include cdSetup ($color-output ); }
43
+ .source { @include cdSetup ($color-source ); }
42
44
43
45
.bash , .language-bash { @include cdSetup ($color-source ); }
44
46
.make , .language-make { @include cdSetup ($color-source ); }
@@ -48,6 +50,7 @@ $color-testimonial: #fc8dc1 !default;
48
50
.sql , .language-sql { @include cdSetup ($color-source ); }
49
51
50
52
.error ::before ,
53
+ .warning :before ,
51
54
.output ::before ,
52
55
.source ::before ,
53
56
.bash ::before , .language-bash ::before ,
@@ -56,13 +59,14 @@ $color-testimonial: #fc8dc1 !default;
56
59
.python ::before , .language-python ::before ,
57
60
.r ::before , .language-r ::before ,
58
61
.sql ::before , .language-sql ::before {
59
- background-color : #f2eff6 ;
60
- display : block ;
61
- font-weight : bold ;
62
- padding : 5px 10px ;
62
+ background-color : #f2eff6 ;
63
+ display : block ;
64
+ font-weight : bold ;
65
+ padding : 5px 10px ;
63
66
}
64
67
65
68
.error ::before { background-color : #ffebe6 ; content : " Error" ; }
69
+ .warning :before { background-color : #f8f4e8 ; content :" Warning" ; }
66
70
.output ::before { background-color : #efefef ; content : " Output" ; }
67
71
.source ::before { content : " Code" ; }
68
72
.bash ::before , .language-bash ::before { content : " Bash" ; }
@@ -72,7 +76,26 @@ $color-testimonial: #fc8dc1 !default;
72
76
.r ::before , .language-r ::before { content : " R" ; }
73
77
.sql ::before , .language-sql ::before { content : " SQL" ; }
74
78
79
+ // Tab panels are used on Setup pages to show instructions for different Operating Systems
80
+ .tab-pane {
81
+ border : solid 1px #ddd ; // #ddd == @nav-tabs-active-link-hover-border-color
82
+ border-top : none ;
83
+ padding : 20px 20px 10px 20px ;
84
+ border-radius : 0 0 4px 4px ; // 4px == @border-radius-base
85
+ }
86
+
87
+ // Stripe above tab panels where OS tabs are shown
88
+ ul .nav.nav-tabs {
89
+ background : #E1E1E1 ;
90
+ border-radius : 4px 4px 0 0 ; // 4px == @border-radius-base
91
+ }
75
92
93
+ // This color provides better contrast ratio on most backgrounds used on Carpentries websites
94
+ // 9.24 on FFFFFF: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=FFFFFF&api (body)
95
+ // 8.78 on F9F9F9: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=F9F9F9&api (tables)
96
+ // 7.07 on E1E1E1: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=E1E1E1&api (tab panels)
97
+ a { color : #ed1c24FF ; }
98
+ a :hover { color : #393536ff ; }
76
99
// ----------------------------------------
77
100
// Specialized blockquote environments for learning objectives, callouts, etc.
78
101
// ----------------------------------------
@@ -156,13 +179,20 @@ blockquote :not(h2) + p {
156
179
// Override Bootstrap settings.
157
180
// ----------------------------------------
158
181
182
+ blockquote { font-size : inherit ; }
183
+
159
184
code {
160
185
white-space : nowrap ;
161
186
padding : 2px 5px ;
162
187
color : #006cad ;
163
188
background-color : #e7e7e7 ;
164
189
}
165
190
191
+ samp { hyphens : none ; }
192
+
193
+ dt { margin-top : 20px ; }
194
+ dd { margin-left : 2em ; }
195
+
166
196
article img {
167
197
display : block ;
168
198
margin : 20px auto ;
@@ -197,7 +227,7 @@ article pre {
197
227
text-align : center ;
198
228
}
199
229
200
- footer .copyright ,
230
+ footer .license ,
201
231
footer .help-links
202
232
{
203
233
font-size : inherit ;
@@ -278,4 +308,4 @@ kbd {
278
308
box-shadow : 0 1px 0 rgba (12 ,13 ,14 ,0.2 ), 0 0 0 2px #FFF inset ;
279
309
white-space : nowrap ;
280
310
font-style : normal ;
281
- }
311
+ }
0 commit comments