naive-ui/styles/List.scss

70 lines
1.8 KiB
SCSS
Raw Normal View History

2019-11-13 00:02:42 +08:00
@import './mixins/mixins.scss';
@include themes-mixin {
@include b(list) {
2019-12-12 18:36:30 +08:00
@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;
2019-12-12 18:36:30 +08:00
padding: 0;
list-style-type: none;
}
2019-11-13 00:02:42 +08:00
color: $--n-secondary-text-color;
background-color: $--n-card-color;
@include m(bordered) {
2019-12-12 18:36:30 +08:00
@include once {
border-radius: 6px;
}
2019-11-13 00:02:42 +08:00
border: 1px solid $--n-border-color;
@include b(list-item) {
2019-12-12 18:36:30 +08:00
@include once {
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-12-12 18:36:30 +08:00
@include once {
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-12-12 18:36:30 +08:00
@include once {
padding: 12px 0;
box-sizing: border-box;
transition: border-color .3s $--n-ease-in-out-cubic-bezier;
2019-12-12 18:36:30 +08:00
}
2019-11-22 16:54:32 +08:00
&: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) {
2019-12-12 18:36:30 +08:00
@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;
2019-12-12 18:36:30 +08:00
@include e(prefix) {
margin-right: 20px;
flex: 0;
}
@include e(suffix) {
margin-left: 20px;
flex: 0;
}
@include e(main) {
flex: 1;
}
}
2019-11-22 16:54:32 +08:00
&:not(:last-child) {
border-bottom: 1px solid $--n-border-color;
}
2019-11-13 00:02:42 +08:00
}
}
}