Skip to content

Commit dca56f0

Browse files
committed
Retain the table.simple style from ReSpec
The licenses of both repos are the same.
1 parent 6569cda commit dca56f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

index.bs

+31
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,37 @@ ul.brief li:last-child::after { content: "" }
5555

5656
/* dl.subcategories when the definition list subdivides a definition */
5757
dl.subcategories { margin-left: 2em }
58+
59+
/* table.simple for more readable tables
60+
Source: https://github.com/w3c/respec/blob/7faae154e57d4af864a83b50adf744029fbd7496/assets/respec.css */
61+
table.simple {
62+
border-spacing: 0;
63+
border-collapse: collapse;
64+
border-bottom: 3px solid #005a9c;
65+
}
66+
.simple th {
67+
background: #005a9c;
68+
color: #fff;
69+
padding: 3px 5px;
70+
text-align: left;
71+
}
72+
.simple th a {
73+
color: #fff;
74+
padding: 3px 5px;
75+
text-align: left;
76+
}
77+
.simple th[scope="row"] {
78+
background: inherit;
79+
color: inherit;
80+
border-top: 1px solid #ddd;
81+
}
82+
.simple td {
83+
padding: 3px 10px;
84+
border-top: 1px solid #ddd;
85+
}
86+
.simple tr:nth-child(even) {
87+
background: #f0f6ff;
88+
}
5889
</style>
5990

6091
<section>

0 commit comments

Comments
 (0)