@@ -9,12 +9,12 @@ html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquot
9
9
font-size : 100% ;
10
10
vertical-align : baseline;
11
11
background : transparent;
12
- }
12
+ }
13
13
14
14
article , aside , figure , footer , header , hgroup , nav , section {display : block;}
15
15
16
16
/* Responsive images and other embedded objects
17
- Note: keeping IMG here will cause problems if you're using foreground images as sprites, like, say for Google Maps custom placemarkers.
17
+ Note: keeping IMG here will cause problems if you're using foreground images as sprites, like, say for Google Maps custom placemarkers.
18
18
There has been a report of problems with standard Google maps as well, but we haven't been able to duplicate or diagnose the issue. */
19
19
img ,
20
20
object ,
@@ -23,16 +23,16 @@ embed {max-width: 100%;}
23
23
/* force a vertical scrollbar to prevent a jumpy page */
24
24
html {overflow-y : scroll;}
25
25
26
- /* we use a lot of ULs that aren't bulleted.
26
+ /* we use a lot of ULs that aren't bulleted.
27
27
don't forget to restore the bullets within content. */
28
28
ul {list-style : none;}
29
29
30
30
31
31
blockquote , q {quotes : none;}
32
32
33
- blockquote : before ,
34
- blockquote : after ,
35
- q : before ,
33
+ blockquote : before ,
34
+ blockquote : after ,
35
+ q : before ,
36
36
q : after {content : '' ; content : none;}
37
37
38
38
a {margin : 0 ; padding : 0 ; font-size : 100% ; vertical-align : baseline; background : transparent; text-decoration : none;}
62
62
white-space : pre;
63
63
white-space : pre-wrap;
64
64
white-space : pre-line; /* CSS 3 (and 2.1 as well, actually) */
65
- background-color : # f5f5f5 ;
66
- border : 1px solid # ccc ;
65
+ background-color : light-dark ( # f5f5f5, # 151515 ) ;
66
+ border : 1px solid light-dark ( # ccc, # 222 ) ;
67
67
border : 1px solid rgba (0 , 0 , 0 , 0.15 );
68
68
-webkit-border-radius : 4px ;
69
69
-moz-border-radius : 4px ;
@@ -126,22 +126,25 @@ button {width: auto; overflow: visible;}
126
126
/* Stylings
127
127
-------------------------------------------------------------------------------*/
128
128
129
+ : root [data-applied-theme = "light" ] { color-scheme : light; }
130
+ : root [data-applied-theme = "dark" ] { color-scheme : dark; }
131
+
129
132
body {
130
- color : # 1b2f01 ;
133
+ color : light-dark ( # 1b2f01, # d2dbc5 ) ;
131
134
font-family : "Open Sans" ; font-size : 14px ;
132
- background : # fff ;
135
+ background : light-dark ( # fff, # 111 ) ;
133
136
}
134
137
135
- # page-wrap {width : 1000px ; margin : 0px auto; border : 1px solid # fff ; padding : 20px ;}
138
+ # page-wrap {width : 1000px ; margin : 0px auto; border : 1px solid light-dark ( # fff, # 111 ) ; padding : 20px ;}
136
139
137
- header {background : # fff ; padding : 10px 20px 12px 20px ; position : relative;
138
- -moz-box-shadow : 1px 1px 12px 2px # aaa ;
139
- -webkit-box-shadow : 1px 1px 12px 2px # aaa ;
140
- box-shadow : 1px 1px 12px 2px # aaa ;
140
+ header {background : light-dark ( # fff, # 171717 ) ; padding : 10px 20px 12px 20px ; position : relative;
141
+ -moz-box-shadow : 1px 1px 12px 2px light-dark ( # aaa, # 222 ) ;
142
+ -webkit-box-shadow : 1px 1px 12px 2px light-dark ( # aaa, # 222 ) ;
143
+ box-shadow : 1px 1px 12px 2px light-dark ( # aaa, # 222 ) ;
141
144
border-radius : 12px 12px 0px 0px ;
142
145
}
143
146
144
- header a {color : # 1b2f01 ; text-decoration : none;}
147
+ header a {color : light-dark ( # 1b2f01, # d2dbc5 ) ; text-decoration : none;}
145
148
header a : hover {text-decoration : underline;}
146
149
147
150
@@ -163,13 +166,13 @@ opacity:0.8;
163
166
}
164
167
165
168
# page-content {
166
- background : # ffffe5 ; /* #FFFFE5 BACKGROUND_COLOR - pale yellow/cream from colormap.cc */
169
+ background : light-dark ( # ffffe5, # 141400 ) ; /* #FFFFE5 BACKGROUND_COLOR - pale yellow/cream from colormap.cc */
167
170
position : relative; padding : 20px 20px 0px 20px ;
168
- -moz-box-shadow : 1px 1px 12px 2px # aaa ; -webkit-box-shadow : 1px 1px 12px 2px # aaa ; box-shadow : 1px 1px 12px 2px # aaa ;
171
+ -moz-box-shadow : 1px 1px 12px 2px light-dark ( # aaa, # 222 ) ; -webkit-box-shadow : 1px 1px 12px 2px light-dark ( # aaa, # 222 ) ; box-shadow : 1px 1px 12px 2px light-dark ( # aaa, # 222 ) ;
169
172
border-radius : 0px 0px 12px 12px ;
170
173
}
171
174
172
- # sidebar {width : 220px ; padding : 10px ; float : left; background : # fff ; border-radius : 8px ; border : 1px solid # ddd ; margin-bottom : 20px ;}
175
+ # sidebar {width : 220px ; padding : 10px ; float : left; background : light-dark ( # fff, # 1b1b1b ) ; border-radius : 8px ; border : 1px solid light-dark ( # ddd, # 444 ) ; margin-bottom : 20px ;}
173
176
174
177
.sticky-wrapper {float : left; padding : 0px 0px 0px 0px ; margin-right : 20px ;}
175
178
@@ -183,7 +186,7 @@ article{width:695px; float:left; margin-left:20px; padding:0px; }
183
186
article .full {}
184
187
185
188
section-head { margin-bottom : 20px ; display : inline-block; width : 100% ; border-radius : 8px ; padding : 0px ; text-align : center; }
186
- section-area { margin-bottom : 20px ; display : inline-block; width : 100% ; border-radius : 8px ; padding : 0px ; text-align : center; border : 1px solid # f9d72c ; background : # e5f1d3 ; }
189
+ section-area { margin-bottom : 20px ; display : inline-block; width : 100% ; border-radius : 8px ; padding : 0px ; text-align : center; border : 1px solid light-dark ( # f9d72c, # 333 ) ; background : light-dark ( # e5f1d3, # 1b1b1b ) ; }
187
190
section-area h1 { padding : 8px 20px 8px 20px ; }
188
191
section-area p { padding : 8px 20px 8px 20px ; }
189
192
section-area .snow { color : rgba (249 , 215 , 44 , 1 ); background : # 444 ; }
@@ -192,19 +195,19 @@ section-area.warning { color: rgba(249, 215, 44, 1); background:#a00; }
192
195
section-area .warning a { color : # e5f1d3 ; text-decoration : underline; }
193
196
# snow { position : relative; }
194
197
195
- section {margin-bottom : 20px ; background : # fff ; border-radius : 8px ; border : 1px solid # ddd ; padding : 10px 20px 20px 20px ;}
198
+ section {margin-bottom : 20px ; background : light-dark ( # fff, # 1b1b1b ) ; border-radius : 8px ; border : 1px solid light-dark ( # ddd, # 333 ) ; padding : 10px 20px 20px 20px ;}
196
199
.subsection {margin-bottom : 20px ;}
197
200
.subsection : last-child {margin-bottom : 0px ;}
198
201
.github-ribbon {float : right; position : relative; top : -10px ; right : -20px ; border : 0 ; z-index : 0 ;}
199
202
200
203
/* Custom text-selection colors (remove any text shadows: twitter.com/miketaylr/status/12228805301) */
201
- ::-moz-selection {background : # 000 ; color : # fff ; text-shadow : none;}
202
- ::selection {background : # 000 ; color : # fff ; text-shadow : none;}
204
+ ::-moz-selection {background : # 000 ; color : light-dark ( # fff, # 1b1b1b ) ; text-shadow : none;}
205
+ ::selection {background : # 000 ; color : light-dark ( # fff, # 1b1b1b ) ; text-shadow : none;}
203
206
204
207
/* j.mp/webkit-tap-highlight-color */
205
208
a : link {-webkit-tap-highlight-color : # 1b2f01 ;}
206
209
207
- a {color : # 1b2f01 ; font-weight : 600 ;}
210
+ a {color : light-dark ( # 1b2f01, # 8fa76e ) ; font-weight : 600 ;}
208
211
209
212
.imgLink : hover {opacity : 0.8 ;}
210
213
@@ -249,10 +252,10 @@ Open - #9dcb51;} OPENCSG_FACE_BACK_COLOR - green
249
252
SCAD - #f9d72c;} OPENCSG_FACE_FRONT_COLOR - yellow
250
253
- for reference #FFFFE5;} BACKGROUND_COLOR - pale yellow/cream, used above
251
254
*/
252
- header h1 .title {color : # f9d72c ; letter-spacing : -1px ; font-weight : 700 ;}
255
+ header h1 .title {color : light-dark ( # f9d72c, ) ; letter-spacing : -1px ; font-weight : 700 ;}
253
256
header h1 span .green {color : # 9dcb51 ; letter-spacing : 0px ;}
254
257
255
- header h2 .subtitle {color : black; letter-spacing : -1px ;}
258
+ header h2 .subtitle {color : light-dark ( black, # eee ) ; letter-spacing : -1px ;}
256
259
257
260
/* colour OPEN & SCAD in the home sub-page heading the same*/
258
261
section h1 strong {color : # f9d72c ; font-weight : 700 ; letter-spacing : -1px ;}
@@ -326,7 +329,7 @@ li{line-height:180%;}
326
329
//padding:0px;
327
330
}
328
331
329
- # navigation ul li .current {border-radius : 8px ; background : # f2f2ee ; border : 1px solid # ddd ; padding : 3px 9px 4px 9px ;}
332
+ # navigation ul li .current {border-radius : 8px ; background : light-dark ( # f2f2ee, # 141405 ) ; border : 1px solid light-dark ( # ddd, # 333 ) ; padding : 3px 9px 4px 9px ;}
330
333
331
334
# navigation ul li : last-child .nav-divider {
332
335
display : none;
@@ -361,7 +364,7 @@ li{line-height:180%;}
361
364
362
365
# home-download {text-align : center; position : relative; margin-top : 0px ; height : 130px ; left : 150px ; width : 355px ;}
363
366
364
- # home-download-link {position : absolute; top : 10px ; background : # e5f1d3 ; height : 55px ; width : 350px ; border-radius : 12px ; border : 4px solid # 233d00 ;}
367
+ # home-download-link {position : absolute; top : 10px ; background : light-dark ( # e5f1d3, # 242521 ) ; height : 55px ; width : 350px ; border-radius : 12px ; border : 4px solid light-dark ( # 233d00, # 233d00 ) ;}
365
368
366
369
# home-download-logo {position : absolute; background : url ('../img/download.png' ); height : 106px ; width : 101px ;}
367
370
@@ -378,13 +381,13 @@ a:active #home-download-link{
378
381
}
379
382
380
383
.store-button {text-align : center; display : inline-block; padding : 8px ;}
381
- .download-button {background : # e5f1d3 ; border-radius : 12px ; border : 4px solid # 233d00 ; text-align : center; display : inline-block; padding : 8px ; margin : 8px ;}
384
+ .download-button {background : light-dark ( # e5f1d3, # 171815 ) ; border-radius : 12px ; border : 4px solid light-dark ( # 233d00, # 182b01 ) ; text-align : center; display : inline-block; padding : 8px ; margin : 8px ;}
382
385
383
386
.link-grid { display : grid; width : 100% ; grid-column-gap : 8px ; grid-auto-columns : auto; grid-auto-flow : column;}
384
- .link-button { height : 100% ; display : block; background : # e5f1d3 ; border-radius : 8px ; border : 1px solid # f9d72c ; text-align : center; padding : 2px 8px ; margin : 0px ;}
387
+ .link-button { height : 100% ; display : block; background : light-dark ( # e5f1d3, # 1a220f ) ; border-radius : 8px ; border : 1px solid light-dark ( # f9d72c, # 252006 ) ; text-align : center; padding : 2px 8px ; margin : 0px ;}
385
388
.link-button h1 { margin : 0px ; padding : 0px ; }
386
- .link-button i { color : rgba (0 , 0 , 0 , 0.4 ); font-size : 3em ; margin : 0.2em ; }
387
- .link-button .selected { color : rgba (0 , 0 , 0 , 0.6 ); }
389
+ .link-button i { color : light-dark ( rgba (0 , 0 , 0 , 0.4 ) , rgba ( 143 , 167 , 110 , 0.4 ) ); font-size : 3em ; margin : 0.2em ; }
390
+ .link-button .selected { color : light-dark ( rgba (0 , 0 , 0 , 0.6 ) , rgba ( 143 , 167 , 110 , 0.8 ) ); }
388
391
389
392
.tutorial-links {width : 640px ; height : 200px ; border-top : 1px solid # ddd ; padding : 30px 0px 40px 0px ; }
390
393
@@ -496,3 +499,30 @@ i.fab {
496
499
99% { transform : translate (0 , -12.5rem ); }
497
500
100% { transform : translate (0 , -15.0rem ); }
498
501
}
502
+
503
+ # displayMode {
504
+ margin : 10px 10px 0 0 ;
505
+ padding : 2px 10px ;
506
+ line-height : 27px ;
507
+ height : 27px ;
508
+ background : light-dark (# f2f2ee, # 141405 );
509
+ border : 1px solid light-dark (# ddd, # 333 );
510
+ border-radius : 10px ;
511
+ cursor : pointer;
512
+ }
513
+ # displayMode ul .pickMode {
514
+ position : relative;
515
+ margin : -33px ;
516
+ padding : 2px 10px ;
517
+ background : light-dark (# f2f2ee, # 141405 );
518
+ border : 1px solid light-dark (# ddd, # 333 );
519
+ border-radius : 10px ;
520
+ }
521
+ # displayMode ul .pickMode li {
522
+ padding : 2px ;
523
+ border-radius : 10px ;
524
+ cursor : pointer;
525
+ }
526
+ # displayMode ul .pickMode li : hover {
527
+ background : light-dark (# dbdbcd, # 25250a );
528
+ }
0 commit comments