2020-02-20 21:37:10 +08:00
|
|
|
// Author: Sivan [sun.sivan@gmail.com]
|
|
|
|
// Description: table styles.
|
2020-02-11 20:47:29 +08:00
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
@mixin hetiTable {
|
|
|
|
table {
|
|
|
|
box-sizing: border-box;
|
|
|
|
table-layout: fixed;
|
2021-09-16 11:09:08 +08:00
|
|
|
margin-block-start: $std-block-unit * 0.5;
|
2020-02-11 20:47:29 +08:00
|
|
|
margin-block-end: $std-block-unit;
|
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: auto;
|
2020-05-04 23:29:03 +08:00
|
|
|
border-collapse: collapse;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: hsl(0, 0%, 80%);
|
2020-02-18 19:51:44 +08:00
|
|
|
word-break: break-word;
|
2020-05-04 23:29:03 +08:00
|
|
|
|
2020-05-18 00:49:59 +08:00
|
|
|
@include darkmode-style {
|
2020-05-04 23:29:03 +08:00
|
|
|
border-color: hsl(0, 0%, 25%);
|
|
|
|
}
|
2020-02-11 20:47:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
2021-09-16 11:09:08 +08:00
|
|
|
padding-block-start: $std-block-unit * 0.25;
|
|
|
|
padding-block-end: $std-block-unit * 0.25;
|
|
|
|
padding-inline-start: $std-inline-unit * 0.5;
|
|
|
|
padding-inline-end: $std-inline-unit * 0.5;
|
2020-05-04 23:29:03 +08:00
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: hsl(0, 0%, 80%);
|
|
|
|
|
2020-05-18 00:49:59 +08:00
|
|
|
@include darkmode-style {
|
2020-05-04 23:29:03 +08:00
|
|
|
border-color: hsl(0, 0%, 25%);
|
|
|
|
}
|
2020-02-11 20:47:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
caption {
|
|
|
|
caption-side: bottom;
|
2020-02-11 21:01:13 +08:00
|
|
|
margin-block-start: 2px;
|
|
|
|
margin-block-end: -4px;
|
2020-02-11 20:47:29 +08:00
|
|
|
font-size: $font-size-small;
|
|
|
|
line-height: $line-height-size-small;
|
|
|
|
}
|
|
|
|
}
|