naive-ui/styles/Table.scss

52 lines
1.1 KiB
SCSS
Raw Normal View History

2019-06-06 16:44:10 +08:00
@import './mixins/mixins.scss';
@import './theme/default.scss';
2019-06-06 16:44:10 +08:00
@include b(table) {
width: 100%;
border-radius: 12px;
font-size: $small-font-size;
2019-06-06 16:44:10 +08:00
overflow: hidden;
box-shadow: $table-box-shadow;
2019-06-06 16:44:10 +08:00
padding-bottom: 8px;
background-color: $table-body-background-color;
2019-06-06 16:44:10 +08:00
table {
border-collapse: collapse;
width: 100%;
thead {
background-color: $table-header-background-color;
color: $primary-text-color;
2019-06-06 16:44:10 +08:00
tr {
th {
padding: 16px 6px 16px 6px;
text-align: left;
border: none;
}
th:nth-child(1) {
padding-left: 32px;
border-radius: 12px 0 0 0;
}
th:nth-last-child(1) {
padding-left: 32px;
border-radius: 0 12px 0 0;
}
}
}
tbody {
background-color: $table-body-background-color;
color: $regular-text-color;
2019-06-06 16:44:10 +08:00
tr {
td {
padding: 16px 6px 12px 6px;
text-align: left;
border: none;
}
td:nth-child(1) {
padding-left: 32px;
}
td:nth-last-child(1) {
padding-left: 32px;
}
}
}
}
}