Skip to content

Commit c08f9e8

Browse files
committed
Had round of defining missing color pairs
1 parent dd5e38f commit c08f9e8

File tree

1 file changed

+35
-20
lines changed

1 file changed

+35
-20
lines changed

epub33/common/css/common.css

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ dl.elemdef dfn {
4848
}
4949

5050
/* EBNF tables */
51-
52-
5351
table.productionset {
5452
border: none;
5553
border-left: 5px solid rgb(145,200,255);
@@ -169,8 +167,6 @@ td[headers="tbl-cmt-appl"] {
169167
}
170168

171169

172-
173-
174170
/****************************************************/
175171
/* property tables */
176172
/****************************************************/
@@ -249,7 +245,6 @@ table.prefix caption {
249245
font-size: 90%
250246
}
251247

252-
253248
/* Table zebra style... */
254249

255250
table.zebra {
@@ -286,7 +281,6 @@ table.zebra tr:nth-child(even) {
286281
table.zebra th{border-bottom:1px solid #bbb;padding:.2em 1em;}
287282
table.zebra td{border-bottom:1px solid #ddd;padding:.2em 1em;}
288283

289-
290284
p.support {
291285
border-left: 0.4rem solid rgb(255,255,0);
292286
background-color: rgb(255,255,230);
@@ -327,36 +321,57 @@ a.epubcheck {
327321
background-color: antiquewhite ;
328322
}
329323

324+
/***************** Dark mode settings ******************/
330325

331-
/*********** These have been added for dark mode ***********/
332-
body.darkmode p.caution, body.darkmode div.caution {
326+
body.darkmode details.explanation, body.darkmode details.desc {
333327
color: black;
328+
background-color: hsla(240, 0%, 68%, 1.0);
334329
}
335330

336-
body.darkmode details.respec-tests-details[open] {
331+
body.darkmode table.zebra tr:nth-child(even) {
337332
color: black;
338333
}
339334

340-
body.darkmode details.explanation, body.darkmode details.desc {
341-
color: black;
342-
background-color: antiquewhite ;
335+
body.darkmode dl.elemdef,
336+
body.darkmode table.tabledef th,
337+
body.darkmode table.tabledef td,
338+
body.darkmode table.productionset
339+
{
340+
background-color: hsl(240, 0%, 20%);
341+
color: #ddd
343342
}
344343

345-
body.darkmode dl.elemdef {
346-
color: black;
347-
background-color: floralwhite;
344+
body.darkmode table.tabledef div.note {
345+
background: hsl(0, 0%, 15%);
348346
}
349347

350-
body.darkmode table.productionset {
351-
color: black;
348+
body.darkmode p.caution, body.darkmode div.caution {
349+
background-color: hsl(180, 40%, 20%);
352350
}
353351

354-
body.darkmode img {
355-
background: antiquewhite ;
352+
body.darkmode div.caution-title > span {
353+
color: rgb(255,140,0)
356354
}
357355

358-
body.darkmode table.zebra tr:nth-child(even) {
356+
body.darkmode details.respec-tests-details[open] {
357+
background-color: antiquewhite;
359358
color: black;
360359
}
361360

361+
body.darkmode details.explanation a,
362+
body.darkmode table.productionset a
363+
{
364+
color: hsla(213, 100%, 48%, 1.0);
365+
}
366+
367+
body.darkmode table.prefix th {
368+
color: hsl(66, 100%, 95%);
369+
}
370+
371+
body.darkmode img {
372+
background: hsl(48, 33%, 93%) ;
373+
}
374+
375+
376+
362377

0 commit comments

Comments
 (0)