org-theme/scss/partials/_tables.scss

44 lines
930 B
SCSS
Raw Normal View History

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