Skip to content

Commit e8fe646

Browse files
committed
Add css for tables in README's
1 parent cfa79aa commit e8fe646

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

templates/style.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,45 @@ div.package-page-container {
376376
h6:first-child {
377377
margin-top: 0;
378378
}
379+
380+
table {
381+
// most of this stuff is taken from pure tables.css
382+
border-collapse: collapse;
383+
border-spacing: 0;
384+
empty-cells: show;
385+
border: 1px solid #cbcbcb;
386+
margin-bottom: 15px;
387+
388+
td, th {
389+
border-left: 1px solid #cbcbcb;
390+
border-width: 0 0 0 1px;
391+
font-size: inherit;
392+
margin: 0;
393+
overflow: visible;
394+
padding: 0.5em 1em;
395+
}
396+
397+
th {
398+
font-family: $font-family-sans;
399+
font-weight: 500;
400+
}
401+
402+
td {
403+
border-bottom: 1px solid #cbcbcb;
404+
}
405+
406+
tbody > tr:last-child > td {
407+
border-bottom-width: 0;
408+
}
409+
410+
thead {
411+
background-color: #e0e0e0;
412+
color: #000;
413+
text-align: left;
414+
vertical-align: bottom;
415+
}
416+
417+
}
379418
}
380419

381420
pre {

0 commit comments

Comments
 (0)