naive-ui/styles/Table.scss

142 lines
3.3 KiB
SCSS
Raw Normal View History

2019-12-16 15:51:13 +08:00
@import "./mixins/mixins.scss";
@import "./themes/vars.scss";
2019-06-06 16:44:10 +08:00
@include themes-mixin {
@include b(table) {
@include once {
width: 100%;
2019-12-16 15:51:13 +08:00
border-radius: 6px;
font-size: $table-font-size;
overflow: hidden;
padding-bottom: 8px;
table {
border-collapse: collapse;
width: 100%;
thead {
tr {
th {
padding: 12px 6px 12px 19px;
text-align: left;
border: none;
font-weight: 400;
}
th:nth-child(1) {
padding-left: 21px;
border-radius: 12px 0 0 0;
}
th:nth-last-child(1) {
padding-left: 21px;
border-radius: 0 12px 0 0;
}
}
2019-06-06 16:44:10 +08:00
}
tbody {
2019-10-10 22:38:29 +08:00
background-color: $--table-body-background-color;
color: $--table-body-color;
tr {
transition: background-color 0.3s;
td {
padding: 16px 6px 12px 19px;
text-align: left;
border: none;
}
td:nth-child(1) {
padding-left: 21px;
}
td:nth-last-child(1) {
padding-left: 21px;
}
}
tr:hover {
background-color: $--table-row-hover;
}
2019-06-06 16:44:10 +08:00
}
}
}
2019-10-10 22:38:29 +08:00
background-color: $--table-body-background-color;
box-shadow: $--table-box-shadow;
table {
border-collapse: separate;
thead {
2019-10-10 22:38:29 +08:00
background-color: $--table-header-background-color;
color: $--table-header-color;
tr {
th {
&:last-of-type {
border-right: 0;
}
}
}
2019-06-06 16:44:10 +08:00
}
tbody {
2019-10-10 22:38:29 +08:00
background-color: $--table-body-background-color;
color: $--table-body-color;
tr:hover {
background-color: $--table-row-hover;
}
tr {
td {
&:last-of-type {
border-right: 0;
}
}
}
2019-06-26 20:16:11 +08:00
}
2019-06-06 16:44:10 +08:00
}
}
2019-06-26 20:16:11 +08:00
}
// @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;
2019-10-12 14:23:40 +08:00
// 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;
// }
// }
// }
// }