mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
52 lines
1.1 KiB
SCSS
52 lines
1.1 KiB
SCSS
@import './mixins/mixins.scss';
|
|
@import './theme/default.scss';
|
|
|
|
@include b(table) {
|
|
width: 100%;
|
|
border-radius: 12px;
|
|
font-size: $small-font-size;
|
|
overflow: hidden;
|
|
box-shadow: $table-box-shadow;
|
|
padding-bottom: 8px;
|
|
background-color: $table-body-background-color;
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
thead {
|
|
background-color: $table-header-background-color;
|
|
color: $primary-text-color;
|
|
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;
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |