Cool-Y.github.io/themes/next/source/css/_common/scaffolding/tables.styl
2019-04-02 16:28:32 +08:00

34 lines
759 B
Stylus

table {
margin: 20px 0;
width: $table-width;
border-collapse: collapse;
border-spacing: 0;
border: 1px solid $table-border-color;
font-size: $table-font-size;
table-layout: fixed;
word-wrap: break-all;
}
table>tbody>tr {
&:nth-of-type(odd) { background-color: $table-row-odd-bg-color; }
&:hover { background-color: $table-row-hover-bg-color; }
}
caption, th, td {
padding: $table-cell-padding;
text-align: $table-content-alignment;
vertical-align: $table-content-vertical;
font-weight: normal;
}
th, td {
border-bottom: 3px solid $table-cell-border-bottom-color;
border-right: 1px solid $table-cell-border-right-color;
}
th {
padding-bottom: 10px;
font-weight: $table-th-font-weight;
}
td { border-bottom-width: 1px; }