mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
73 lines
1.8 KiB
SCSS
73 lines
1.8 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(list) {
|
|
@include once {
|
|
font-size: 14px;
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
color .3s $--n-ease-in-out-cubic-bezier,
|
|
border-color .3s $--n-ease-in-out-cubic-bezier;
|
|
padding: 0;
|
|
list-style-type: none;
|
|
}
|
|
color: $--list-text-color;
|
|
background-color: $--list-background-color;
|
|
@include m(bordered) {
|
|
@include once {
|
|
border-radius: 6px;
|
|
}
|
|
border: 1px solid $--list-border-color;
|
|
@include b(list-item) {
|
|
@include once {
|
|
padding: 12px 20px;
|
|
}
|
|
&:not(:last-child) {
|
|
border-bottom: 1px solid $--list-border-color;
|
|
}
|
|
}
|
|
@include e(header, footer) {
|
|
@include once {
|
|
padding: 12px 20px;
|
|
}
|
|
&:not(:last-child) {
|
|
border-bottom: 1px solid $--list-border-color;
|
|
}
|
|
}
|
|
}
|
|
@include e(header, footer) {
|
|
@include once {
|
|
padding: 12px 0;
|
|
box-sizing: border-box;
|
|
transition: border-color .3s $--n-ease-in-out-cubic-bezier;
|
|
}
|
|
&:not(:last-child) {
|
|
border-bottom: 1px solid $--list-border-color;
|
|
}
|
|
}
|
|
@include b(list-item) {
|
|
@include once {
|
|
padding: 12px 0;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
transition: border-color .3s $--n-ease-in-out-cubic-bezier;
|
|
@include e(prefix) {
|
|
margin-right: 20px;
|
|
flex: 0;
|
|
}
|
|
@include e(suffix) {
|
|
margin-left: 20px;
|
|
flex: 0;
|
|
}
|
|
@include e(main) {
|
|
flex: 1;
|
|
}
|
|
}
|
|
&:not(:last-child) {
|
|
border-bottom: 1px solid $--list-border-color;
|
|
}
|
|
}
|
|
}
|
|
} |