1
Fork 0

Nice table layout

This commit is contained in:
Jan-Erik Rediger 2015-07-14 22:57:12 +02:00
parent 1bcbaae5bf
commit 12c81cc676
2 changed files with 19 additions and 1 deletions

View file

@ -71,3 +71,21 @@ p code, li code {
hr { hr {
border: 1px solid #f3f3f3; border: 1px solid #f3f3f3;
} }
table {
border-collapse: collapse;
border-left: 7px solid #eaeaea;
background-color: #f3f3f3;
}
table th, table td {
padding: 7px 15px;
}
table thead {
text-align: left;
}
table td:first-child {
width: 20%;
}
table thead tr, table tbody tr:nth-child(even) {
background-color: #eee;
}

View file

@ -1,4 +1,4 @@
div.highlight { overflow-x: auto; border: 1px solid silver; background-color: #ddd; } div.highlight { overflow-x: auto; border: 1px solid silver; background-color: #ddd; margin-bottom: 10px; }
div.highlight pre { margin: 0; } div.highlight pre { margin: 0; }
.highlight .hll { background-color: #ffffcc } .highlight .hll { background-color: #ffffcc }
.highlight { background: #f8f8f8; } .highlight { background: #f8f8f8; }