Skip to content

Commit 6847244

Browse files
committed
Rollup merge of #22369 - nagisa:docblock-table, r=steveklabnik
Fixes #22357 Before and after: ![screenshot from 2015-02-15 15 53 24](https://cloud.githubusercontent.com/assets/679122/6203452/dbde7324-b52b-11e4-8252-da96a44c1cf3.png)
2 parents fe3b6a1 + 690cc13 commit 6847244

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)