Skip to content

Commit f9c308e

Browse files
committed
Add .definition-table as a generic form of .propdef.
--HG-- extra : rebase_source : 5017ea70b3a99b5f5816d6bdb6975eee25e10896
1 parent c1b7736 commit f9c308e

1 file changed

Lines changed: 30 additions & 10 deletions

File tree

default.css

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ table.proptable tr:hover td {
380380

381381

382382
/* Style for table that defines a property or a descriptor */
383-
table.propdef, table.propdef-extra, table.descdef {
383+
table.propdef, table.propdef-extra, table.descdef, table.definition-table {
384384
border-spacing: 0;
385385
padding: 0 1em 0.5em;
386386
width: 100%;
@@ -390,8 +390,8 @@ table.propdef, table.propdef-extra, table.descdef {
390390
border-left: 0.5em solid #8CCBF2;
391391
}
392392

393-
table.propdef td, table.propdef-extra td, table.descdef td,
394-
table.propdef th, table.propdef-extra th, table.descdef th {
393+
table.propdef td, table.propdef-extra td, table.descdef td, table.definition-table td,
394+
table.propdef th, table.propdef-extra th, table.descdef th, table.definition-table th {
395395
padding: 0.5em;
396396
vertical-align: baseline;
397397
border-bottom: 1px solid #bbd7e9;
@@ -402,12 +402,15 @@ table.propdef dfn, table.propdef-extra dfn, table.descdef dfn {
402402
font-style: normal
403403
}
404404
*/
405+
405406
table.propdef td:first-child,
406407
table.propdef-extra td:first-child,
407408
table.descdef td:first-child,
409+
table.definition-table td:first-child,
408410
table.propdef th:first-child,
409411
table.propdef-extra th:first-child,
410-
table.descdef th:first-child {
412+
table.descdef th:first-child,
413+
table.definition-table th:first-child {
411414
font-style: italic;
412415
font-weight: normal;
413416
width: 8.3em;
@@ -416,32 +419,39 @@ table.descdef th:first-child {
416419
table.propdef td[colspan]:first-child,
417420
table.propdef-extra td[colspan]:first-child,
418421
table.descdef td[colspan]:first-child,
422+
table.definition-table td[colspan]:first-child,
419423
table.propdef th[colspan]:first-child,
420424
table.propdef-extra th[colspan]:first-child,
421-
table.descdef th[colspan]:first-child {
425+
table.descdef th[colspan]:first-child,
426+
table.definition-table th[colspan]:first-child {
422427
font-style: inherit
423428
}
424429
table.propdef tr:first-child,
425430
table.propdef-extra tr:first-child,
426-
table.descdef tr:first-child {
431+
table.descdef tr:first-child,
432+
table.definition-table tr:first-child {
427433

428434
}
429435

430436
table.propdef > tbody > tr:last-child th,
431437
table.propdef-extra > tbody > tr:last-child th,
432438
table.descdef > tbody > tr:last-child th,
439+
table.definition-table > tbody > tr:last-child th,
433440
table.propdef > tbody > tr:last-child td,
434441
table.propdef-extra > tbody > tr:last-child td,
435-
table.descdef > tbody > tr:last-child td {
442+
table.descdef > tbody > tr:last-child td,
443+
table.definition-table > tbody > tr:last-child td {
436444
border-bottom: 0;
437445
}
438446

439447
table.propdef tr:first-child th,
440448
table.propdef-extra tr:first-child th,
441449
table.descdef tr:first-child th,
450+
table.definition-table tr:first-child th,
442451
table.propdef tr:first-child td,
443452
table.propdef-extra tr:first-child td,
444-
table.descdef tr:first-child td {
453+
table.descdef tr:first-child td,
454+
table.definition-table tr:first-child td {
445455
padding-top: 1em;
446456
}
447457

@@ -451,15 +461,25 @@ table td.pre {
451461
}
452462

453463
/* A footnote at the bottom of a propdef */
454-
table.propdef td.footnote {padding-top: 0.6em; width: auto}
455-
table.propdef td.footnote:before {
464+
table.propdef td.footnote,
465+
table.propdef-extra td.footnote,
466+
table.descdef td.footnote,
467+
table.definition-table td.footnote {
468+
padding-top: 0.6em;
469+
width: auto
470+
}
471+
table.propdef td.footnote:before,
472+
table.propdef-extra td.footnote:before,
473+
table.descdef td.footnote:before,
474+
table.definition-table td.footnote:before {
456475
content: " ";
457476
display: block;
458477
height: 0.6em;
459478
width: 4em;
460479
border-top: thin solid;
461480
}
462481

482+
/* I don't know what this is for */
463483
table.proptable td .property {
464484
display: block;
465485
text-align: left;

0 commit comments

Comments
 (0)