Skip to content

Commit 690cc13

Browse files
committed
Add styles for docblock tables
Fixes #22357
1 parent b6d91a2 commit 690cc13

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/librustdoc/html/static/main.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,27 @@ nav.sub {
292292
.content td p:first-child { margin-top: 0; }
293293
.content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
294294

295+
.docblock table {
296+
border: 1px solid #ddd;
297+
margin: .5em 0;
298+
border-collapse: collapse;
299+
width: 100%;
300+
}
301+
302+
.docblock table td {
303+
padding: .5em;
304+
border-top: 1px dashed #ddd;
305+
border-bottom: 1px dashed #ddd;
306+
307+
}
308+
309+
.docblock table th {
310+
padding: .5em;
311+
text-align: left;
312+
border-top: 1px solid #ddd;
313+
border-bottom: 1px solid #ddd;
314+
}
315+
295316
.content .item-list {
296317
list-style-type: none;
297318
padding: 0;

0 commit comments

Comments
 (0)