hello-theme/assets/scss/reset/_table.scss

82 lines
1.1 KiB
SCSS
Raw Normal View History

/*
DO NOT CHANGE THIS FILE
2018-12-25 18:05:46 +02:00
to override any of the settings in this section, add your styling code in the custom directory.
*/
2019-02-12 23:40:47 +02:00
/* Table
========================================================================== */
table {
background-color: transparent;
width: 100%;
margin-bottom: 15px;
font-size: 0.9em;
border-spacing: 0;
border-collapse: collapse;
th,
td {
padding: 15px;
line-height: 1.5;
vertical-align: top;
border: 1px solid $gray-light;
}
th {
font-weight: bold;
}
thead th,
tfoot th {
font-size: 1em;
}
caption + thead,
caption + thead,
colgroup + thead,
colgroup + thead,
thead:first-child,
thead:first-child {
tr {
&:first-child {
th,
td {
border-top: 1px solid $gray-light;
}
}
}
}
tbody {
> tr:nth-child(odd) > td,
> tr:nth-child(odd) > th {
2020-07-17 11:01:38 +03:00
background-color: $gray-lightest;
}
}
tbody + tbody {
border-top: 2px solid $gray-light;
}
@media (max-width: $screen-sm - $screen-diff) {
table {
font-size: 0.8em;
th,
td {
padding: 7px;
line-height: 1.3;
}
th {
font-weight: 400;
}
}
}
}