naive-ui/styles/List.scss

58 lines
1.5 KiB
SCSS
Raw Normal View History

2019-11-13 00:02:42 +08:00
@import './mixins/mixins.scss';
@include themes-mixin {
@include b(list) {
font-size: 14px;
color: $--n-secondary-text-color;
background-color: $--n-card-color;
2019-11-22 16:54:32 +08:00
transition: background-color .3s $default-cubic-bezier, color .3s $default-cubic-bezier, border-color .3s $default-cubic-bezier;
2019-11-13 00:02:42 +08:00
padding: 0;
list-style-type: none;
@include m(bordered) {
border-radius: 6px;
border: 1px solid $--n-border-color;
@include b(list-item) {
2019-11-22 16:54:32 +08:00
padding: 12px 20px;
2019-11-13 00:02:42 +08:00
&:not(:last-child) {
border-bottom: 1px solid $--n-border-color;
}
}
@include e(header, footer) {
2019-11-22 16:54:32 +08:00
padding: 12px 20px;
2019-11-13 00:02:42 +08:00
&:not(:last-child) {
border-bottom: 1px solid $--n-border-color;
}
}
}
@include e(header, footer) {
2019-11-22 16:54:32 +08:00
padding: 12px 0;
2019-11-13 00:02:42 +08:00
box-sizing: border-box;
2019-11-22 16:54:32 +08:00
transition: border-color .3s $default-cubic-bezier;
&:not(:last-child) {
border-bottom: 1px solid $--n-border-color;
}
2019-11-13 00:02:42 +08:00
}
2019-11-22 16:54:32 +08:00
@include b(list-item) {
padding: 12px 0;
2019-11-13 00:02:42 +08:00
box-sizing: border-box;
2019-11-22 16:54:32 +08:00
display: flex;
flex-wrap: nowrap;
align-items: center;
transition: border-color .3s $default-cubic-bezier;
&:not(:last-child) {
border-bottom: 1px solid $--n-border-color;
}
@include e(prefix) {
margin-right: 20px;
flex: 0;
}
@include e(suffix) {
margin-left: 20px;
flex: 0;
}
@include e(main) {
flex: 1;
}
2019-11-13 00:02:42 +08:00
}
}
}