org-theme/scss/partials/_tables.scss

55 lines
1.4 KiB
SCSS

table {
margin-left: auto;
margin-right: auto;
border-collapse:collapse;
border-spacing:0;
empty-cells:show;
margin-bottom:24px;
border-bottom:3px solid $color-shadow;
// Cell Style
td, th {
font-size: 0.9rem;
margin:0;
overflow:visible;
padding:8px 16px;
background-color: $white;
border:1px solid $color-shadow;
}
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
// First Line of the Table
thead th{
font-weight: $bold;
border-top:3px solid $color-shadow;
border-bottom:1px solid $color-shadow;
}
// Each group of rows separated by |----+----|
tbody {
border-top: 3px solid $color-shadow;
}
// Caption
caption{
color: $color-caption;
font-size: 0.85em;
font-family: $serif;
font-style: italic;
padding:1em 0;
// "Table x" part
.table-number {
font-weight: $bold;
color: $color-caption-num;
}
}
// Alternating colors for the rows
// tr:nth-child(2n-1) td{background-color: $color-shadow-light;}
// tr:nth-child(2n) td{background-color: $white;}
}