org-theme/scss/partials/_tables.scss

46 lines
1.0 KiB
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-27 15:16:19 +01:00
border-bottom:3px solid $color-shadow;
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;
2020-11-27 15:16:19 +01:00
background-color: $white;
border:1px solid $color-shadow;
2020-11-25 23:22:07 +01:00
}
2020-11-26 13:41:42 +01:00
// First Line of the Table
2020-11-25 23:22:07 +01:00
thead th{
2020-11-27 15:16:19 +01:00
font-weight: $bold;
border-top:3px solid $color-shadow;
border-bottom:1px solid $color-shadow;
2020-11-25 23:22:07 +01:00
}
2020-11-26 13:41:42 +01:00
// Caption
2020-11-25 23:22:07 +01:00
caption{
2020-11-27 15:16:19 +01:00
color: $color-caption;
font-size: 0.85em;
font-family: $serif;
font-style: italic;
2020-11-25 23:22:07 +01:00
padding:1em 0;
2020-11-26 13:41:42 +01:00
// "Table x" part
.table-number {
2020-11-27 15:16:19 +01:00
font-weight: $bold;
color: $color-caption-num;
2020-11-26 13:41:42 +01:00
}
2020-11-25 23:22:07 +01:00
}
2020-11-26 13:41:42 +01:00
// Alternating colors for the rows
2020-11-27 15:16:19 +01:00
tr:nth-child(2n-1) td{background-color: $color-shadow-light;}
tr:nth-child(2n) td{background-color: $white;}
2020-11-25 23:22:07 +01:00
}