33 margin : 0 ;
44}
55
6+ : root {
7+ --blue : rgb (0 , 75 , 160 );
8+ --lightblue : # f3f6f9 ;
9+ --medblue : # e4f0ff ;
10+ --palecyan : # eff7f9 ;
11+ --white : # ffffff ;
12+ --grey : # e6e6e6 ;
13+ --fg : # 222222 ;
14+ --fg-main-menu : # 000000 ;
15+ --bg : # ffffff ;
16+ --bg-table : # f8f8f8 ;
17+ --bg-table-hl : # ececec ;
18+ --bg-table-border : # dee2e6 ;
19+ }
20+
621body {
7- background-color : # fff ;
22+ background-color : var ( --bg ) ;
823 font-family : Roboto, sans-serif;
9- color : rgb ( 34 , 34 , 34 );
24+ color : var ( --fg );
1025}
1126
1227: root {
13- --blue : rgb (0 , 75 , 160 );
14- --white : # ffffff ;
28+ color-scheme : light dark;
29+ }
30+
31+ /***
32+ TBD: <meta name="color-scheme" content="light dark">
33+ ***/
34+ /***
35+ @media (prefers-color-scheme: dark) {
36+
37+ :root {
38+ --blue: rgb(0, 90, 194);
39+ --grey: #111111;
40+ --fg: #ddd;
41+ --fg-main-menu: #d8d8d8;
42+ --bg: #181818;
43+ --bg-table: #2c2c2c;
44+ --bg-table-hl: #404040;
45+ --bg-table-border: #6c757d;
46+ }
1547}
48+ ***/
49+
1650/* Text styles */
1751a {
1852 color : var (--blue );
3569 font-size : 40px ;
3670 font-weight : 300 ;
3771 padding-bottom : 20px ;
38- color : rgb ( 34 , 34 , 34 );
72+ color : var ( --fg );
3973}
4074h2 {
4175 font-size : 26px ;
4882h4 ,
4983h5 ,
5084h6 {
51- /*padding: 12px 0 12px 0;*/
5285 font-weight : 300 ;
5386}
5487h2 {
68101h4 a ,
69102h5 a ,
70103h6 a {
71- color : rgb ( 34 , 34 , 34 );
104+ color : var ( --fg );
72105}
73106.imageblock {
74107 margin-bottom : 1.6rem ;
@@ -198,22 +231,15 @@ div.themeblue {
198231 background : linear-gradient (90deg , # 2868B0 0% , # 2F82C6 100% );
199232 color : white;
200233}
201- div .themegrey {
202- background-color : # F3F6F9 ;
203- color : black;
204- }
205- div .themegrey p {
206- color : # 777 ;
207- }
208234div .themewhite {
209- background-color : # FFF ;
210- color : black ;
235+ background-color : var ( --bg ) ;
236+ color : var ( --fg ) ;
211237}
212238div .themewhite h3 {
213- color : # 333 ;
239+ color : var ( --fg ) ;
214240}
215241div .themewhite p {
216- color : # 222222 ;
242+ color : var ( --fg ) ;
217243}
218244div .themecommunity {
219245 background-color : # 003380 ;
@@ -254,25 +280,15 @@ div.community_round {
254280 border-bottom-right-radius : 50% ;
255281}
256282div .themecontest {
257- background-color : rgb ( 211 , 211 , 211 ) ;
283+ background-color : # d3d3d3 ;
258284 background-image : url ("/img/tria2_i.svg" );
259285 background-repeat : no-repeat;
260286 background-size : cover;
261287 color : white;
262- font-weight : 500 ;
263288}
264289div .themecontest h1 {
265290 color : white;
266291}
267- div .themelightblue {
268- background-color : # e4f0ff ;
269- }
270- div .themelightgrey {
271- background-color : # e6e6e6 ;
272- }
273- div .themevlblue {
274- background-color : # eff7f9 ;
275- }
276292div .themeblog {
277293 color : white;
278294 font-weight : 400 ;
@@ -329,6 +345,18 @@ div.themedarkgrey {
329345div .themedarkgrey h1 {
330346 color : white;
331347}
348+ div .bg_grey {
349+ background-color : var (--grey );
350+ }
351+ div .bg_lightblue {
352+ background-color : var (--lightblue );
353+ }
354+ div .bg_medblue {
355+ background-color : var (--medblue );
356+ }
357+ div .bg_palecyan {
358+ background-color : var (--palecyan );
359+ }
332360
333361/* Pagination */
334362ul .pagination {
@@ -341,23 +369,25 @@ ul.pagination {
341369 justify-content : center;
342370}
343371ul .pagination li {
344- color : # 333 ;
372+ color : var ( --fg ) ;
345373 margin : 2px ;
346374 padding : 2px 6px ;
347375 text-align : center;
348376 font-size : 1.31rem ;
349377 font-weight : 600 ;
350378 margin-bottom : 3rem ;
351- background-color : # f5f5f5 ;
379+ background-color : var ( --bg ) ;
352380 border-radius : 2px ;
381+ min-width : 26px ;
382+ border-radius : 4px ;
353383}
354384ul .pagination li .disabled {
355385 display : none;
356386}
357387ul .pagination li a {
358388 /*padding: 4px 8px;*/
359389 line-height : 2rem ;
360- color : # 333 ;
390+ color : var ( --fg ) ;
361391
362392}
363393ul .pagination li .active a , ul .pagination li a : hover {
@@ -393,7 +423,6 @@ pre {
393423 width : 100% ;
394424}
395425# header-container {
396- background-color : white;
397426 /*border-bottom: 1px solid #ddd;*/
398427 max-width : 1200px ;
399428 /*margin: auto;*/
@@ -434,7 +463,7 @@ input#hamburger_cb,
434463 padding : 0 10px ;
435464 border-top-left-radius : 2px ;
436465 border-bottom-left-radius : 2px ;
437- background-color : # F3F6F9 ;
466+ background-color : var ( --lightblue ) ;
438467 border : none;
439468 color : # 333 ;
440469 height : 38px ;
@@ -509,7 +538,7 @@ input#hamburger_cb,
509538}
510539# main_menu .nav-link {
511540 padding : 15px ;
512- color : black ;
541+ color : var ( --fg-main-menu ) ;
513542 text-decoration : none;
514543 font-size : 1.13rem ;
515544 white-space : nowrap;
@@ -632,9 +661,6 @@ div.roundedbutton:hover {
632661 padding : 2px ;
633662 font-weight : 400 ;
634663}
635- .editpage a {
636- color : # 003f9e ;
637- }
638664@media screen and (max-width : 750px ){
639665 .editpage {
640666 visibility : hidden;
@@ -811,7 +837,7 @@ div.credits {
811837 line-height : 2 ;
812838}
813839.devices tbody {
814- background-color : white ;
840+ background-color : var ( --bg ) ;
815841}
816842.devices td {
817843 border-top : 1px solid # aaa ;
@@ -836,6 +862,7 @@ div.credits {
836862}
837863/* Device box */
838864.device_box {
865+ background-color : var (--bg );
839866 flex : 0 0 100% ;
840867 min-width : 200px ;
841868 width : 280px ;
@@ -872,7 +899,7 @@ div.credits {
872899}
873900.device_box p {
874901 padding : 0 10px 0 10px !important ;
875- color : # 555 ;
902+ color : var ( --fg ) ;
876903 font-size : 0.94rem ;
877904 font-weight : 400 ;
878905 margin-bottom : 0 ;
@@ -919,7 +946,7 @@ table {
919946 max-width : 100% ;
920947 margin-top : 1rem ;
921948 margin-bottom : 1rem ;
922- border : 1px solid # dee2e6 ;
949+ border : 1px solid var ( --bg-table-border ) ;
923950 table-layout : fixed;
924951 width : 100% ;
925952}
@@ -953,12 +980,12 @@ table th.halign-center {
953980 text-align : center;
954981}
955982thead {
956- background-color : # ececec ;
983+ background-color : var ( --bg-table-hl ) ;
957984 margin-bottom : 0 ;
958985}
959986
960987tbody {
961- background-color : # f8f8f8 ;
988+ background-color : var ( --bg-table ) ;
962989 margin-bottom : 0 ;
963990}
964991
@@ -1206,12 +1233,12 @@ div.podcast:hover {
12061233
12071234/* Footer */
12081235# footer {
1209- color : # 555 ;
1236+ color : var ( --fg ) ;
12101237}
12111238# footer a {
12121239 text-decoration : none;
12131240 font-weight : 300 ;
1214- color : # 555 ;
1241+ color : var ( --fg ) ;
12151242}
12161243# footer ul {
12171244 list-style-type : none;
0 commit comments