org-theme/scss/partials/_tables.scss
2020-11-26 13:41:42 +01:00

44 lines
930 B
SCSS

table {
margin-left: auto;
margin-right: auto;
border-collapse:collapse;
border-spacing:0;
empty-cells:show;
margin-bottom:24px;
border-bottom:3px solid #e1e4e5;
// Cell Style
td,th{
font-size:90%;
margin:0;
overflow:visible;
padding:8px 16px;
background-color:white;
border:1px solid #e1e4e5;
}
// First Line of the Table
thead th{
font-weight:bold;
border-top:3px solid #e1e4e5;
border-bottom:1px solid #e1e4e5;
}
// Caption
caption{
color:#000;
font:italic 85%/1 arial,sans-serif;
padding:1em 0;
// "Table x" part
.table-number {
font-weight: bold;
color: #343131;
}
}
// Alternating colors for the rows
tr:nth-child(2n-1) td{background-color:#f3f6f6;}
tr:nth-child(2n) td{background-color:white;}
}