mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
79 lines
2.2 KiB
SCSS
79 lines
2.2 KiB
SCSS
@import "./mixins/mixins.scss";
|
|
|
|
@include themes-mixin {
|
|
@include b(table) {
|
|
@include once {
|
|
font-size: 14px;
|
|
width: 100%;
|
|
border-radius: 6px 6px 0 0;
|
|
text-align: left;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
overflow: hidden;
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
border-color .3s $--n-ease-in-out-cubic-bezier,
|
|
color .3s $--n-ease-in-out-cubic-bezier;
|
|
}
|
|
background: $--table-body-background-color;
|
|
@include e(th) {
|
|
@include once {
|
|
background-clip: padding-box;
|
|
white-space: nowrap;
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
border-color .3s $--n-ease-in-out-cubic-bezier,
|
|
color .3s $--n-ease-in-out-cubic-bezier;
|
|
text-align: inherit;
|
|
padding: 14px 12px;
|
|
vertical-align: inherit;
|
|
text-transform: none;
|
|
border: none;
|
|
font-weight: 500;
|
|
}
|
|
color: $--table-header-text-color;
|
|
background-color: $--table-header-background-color;
|
|
border-color: $--table-border-color;
|
|
border-bottom: 1px solid $--table-border-color;
|
|
border-right: 1px solid $--table-border-color;
|
|
&:last-child {
|
|
border-right: none;
|
|
}
|
|
}
|
|
@include e(td) {
|
|
@include once {
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
border-color .3s $--n-ease-in-out-cubic-bezier,
|
|
color .3s $--n-ease-in-out-cubic-bezier;
|
|
padding: 12px;
|
|
}
|
|
color: $--table-body-text-color;
|
|
background-color: $--n-table-body-background-color;
|
|
border-right: 1px solid $--table-border-color;
|
|
border-bottom: 1px solid $--table-border-color;
|
|
&:last-child {
|
|
border-right: none;
|
|
}
|
|
}
|
|
@include m(bordered) {
|
|
border: 1px solid $--table-border-color;
|
|
border-radius: 6px;
|
|
@include e(tr) {
|
|
&:last-child {
|
|
@include e(td) {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@include m(single-line) {
|
|
@include e(th) {
|
|
border-right: none;
|
|
}
|
|
@include e(td) {
|
|
border-right: none;
|
|
}
|
|
}
|
|
}
|
|
} |