Skip to content

Commit

Permalink
Added styles for table
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Feb 20, 2018
1 parent 0a790ed commit fbc6c61
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions assets/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,63 @@ pre .language-name {
color: #BFBFBF;
font-size: 14px;
}

table {
border-spacing: 0;
border-collapse: collapse;
width: 100%;
max-width: 100%;
margin-bottom: 20px;
border: 1px solid #ddd;
background-color: transparent;
}
thead {
display: table-header-group;
}
th {
text-align: left;
}
table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
padding: 5px;
line-height: 1.42857143;
vertical-align: top;
border: 1px solid #ddd;
}
table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #ddd;
}
table > caption + thead > tr:first-child > th,
table > colgroup + thead > tr:first-child > th,
table > thead:first-child > tr:first-child > th,
table > caption + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > td,
table > thead:first-child > tr:first-child > td {
border-top: 0;
}
table > tbody + tbody {
border-top: 2px solid #ddd;
}
table > thead > tr > th,
table > thead > tr > td {
border-bottom-width: 2px;
}
table > tbody > tr:hover {
background-color: #f7f7f7;
}
table col[class*="col-"] {
position: static;
display: table-column;
float: none;
}
table td[class*="col-"],
table th[class*="col-"] {
position: static;
display: table-cell;
float: none;
}

0 comments on commit fbc6c61

Please sign in to comment.