Skip to content

Commit fcf0ee8

Browse files
committed
fix counter numbering, add data table styles
1 parent df48c18 commit fcf0ee8

1 file changed

Lines changed: 55 additions & 2 deletions

File tree

default.css

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ ul.indexlist li li { margin-left: 1em }
112112
div.example:before {
113113
content: "Example";
114114
content: "Example " counter(exampleno, upper-roman);
115-
counter-increment: exampleno;
116115
font: bold small sans-serif;
117116
/*float: left;*/
118117
position: absolute;
@@ -130,7 +129,6 @@ div.example:before {
130129
pre.example:before {
131130
content: "Example";
132131
content: "Example " counter(exampleno, upper-roman);
133-
counter-increment: exampleno;
134132
font: bold small sans-serif;
135133
/*float: left;*/
136134
position: absolute;
@@ -397,3 +395,58 @@ table.features td {
397395
border-bottom: 1px solid #ccc;
398396
padding: 0.3em 0.3em 0.3em 0.7em;
399397
}
398+
399+
400+
/* Style for data tables (and properly marked-up proptables) */
401+
402+
.data, .proptable {
403+
margin: 1em auto;
404+
border-collapse: collapse;
405+
border: solid #005A9B;
406+
}
407+
.data caption {
408+
width: 100%;
409+
text-align: center;
410+
}
411+
.data td, .data th,
412+
.proptable td, .proptable th {
413+
border: thin solid;
414+
padding: 0.2em;
415+
text-align: center;
416+
}
417+
.data thead th[scope="row"],
418+
.proptable thead th[scope="row"] {
419+
text-align: right;
420+
background: #A4C8E2;
421+
color: inherit;
422+
}
423+
.data thead,
424+
.proptable thead {
425+
background: #EEEEEE;
426+
color: inherit;
427+
}
428+
.data tbody th:first-child,
429+
.proptable tbody th:first-child {
430+
text-align: right;
431+
background: #EEEEEE;
432+
color: inherit;
433+
}
434+
.data thead,
435+
.data tbody,
436+
.data tfoot,
437+
.data colgroup {
438+
border: solid;
439+
}
440+
441+
table.propdef {
442+
table-layout: auto;
443+
}
444+
.propdef th {
445+
font-style: italic;
446+
font-weight: normal;
447+
text-align: left;
448+
width: 3em;
449+
}
450+
dt dfn code {
451+
font-size: inherit;
452+
}

0 commit comments

Comments
 (0)