2020-02-11 20:47:29 +08:00
|
|
|
/**
|
|
|
|
* Author: Sivan [sun.sivan@gmail.com]
|
2020-02-11 21:01:13 +08:00
|
|
|
* Description: table styles.
|
2020-02-11 20:47:29 +08:00
|
|
|
*/
|
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
@mixin hetiTable {
|
|
|
|
table {
|
|
|
|
box-sizing: border-box;
|
|
|
|
table-layout: fixed;
|
|
|
|
border-collapse: collapse;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
margin-block-start: $std-block-unit / 2;
|
|
|
|
margin-block-end: $std-block-unit;
|
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: auto;
|
2020-02-18 19:59:53 +08:00
|
|
|
word-break: break-word;
|
2020-02-11 20:47:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border: 1px solid #ccc;
|
2020-02-18 19:59:53 +08:00
|
|
|
padding-block-start: $std-block-unit / 4;
|
|
|
|
padding-block-end: $std-block-unit / 4;
|
|
|
|
padding-inline-start: $std-inline-unit / 2;
|
|
|
|
padding-inline-end: $std-inline-unit / 2;
|
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;
|
|
|
|
}
|
|
|
|
}
|