Skip to content

Commit 95e4f2e

Browse files
committed
Retain the table.simple style from ReSpec
The licenses of both repos are the same.
1 parent 0b81caa commit 95e4f2e

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
@@ -56,6 +56,37 @@ ul.brief li:last-child::after { content: "" }
5656

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

6192
<section>

0 commit comments

Comments
 (0)