naive-ui/styles/List.scss
songwanli2025@163.com fdf2af8eb5 merge
2020-02-24 16:25:02 +08:00

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;
}
}
}
}