mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
56 lines
1.2 KiB
SCSS
56 lines
1.2 KiB
SCSS
@import "./mixins/mixins.scss";
|
|
@import "./theme/default.scss";
|
|
|
|
@include b(table) {
|
|
width: 100%;
|
|
border-radius: 12px;
|
|
font-size: $table-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;
|
|
}
|
|
}
|
|
tr:hover {
|
|
background-color: #2b3147;
|
|
}
|
|
}
|
|
}
|
|
}
|