naive-ui/styles/Thing.scss

68 lines
1.5 KiB
SCSS
Raw Normal View History

@import "./mixins/mixins.scss";
@include themes-mixin {
@include b(thing) {
2019-11-26 18:16:50 +08:00
@include once {
display: flex;
transition: color .3s $--n-ease-in-out-cubic-bezier;
2019-11-26 18:16:50 +08:00
font-size: 14px;
@include b(thing-avatar) {
2019-11-26 18:54:29 +08:00
margin-right: 12px;
2019-11-26 18:16:50 +08:00
margin-top: 2px;
}
2019-11-26 18:16:50 +08:00
@include b(thing-avatar-header-wrapper) {
display: flex;
2019-11-26 18:16:50 +08:00
flex-wrap: nowrap;
@include b(thing-header-wrapper) {
flex: 1;
}
}
2019-11-26 18:16:50 +08:00
@include b(thing-main) {
flex-grow: 1;
@include b(thing-header) {
display: flex;
margin-bottom: 4px;
2019-11-26 18:16:50 +08:00
@include e(title) {
font-size: 16px;
2019-12-23 16:48:49 +08:00
font-weight: 500;
transition: color .3s $--n-ease-in-out-cubic-bezier;
2019-11-26 18:16:50 +08:00
}
2019-12-17 18:09:46 +08:00
// @include e(extra) {
2019-11-26 18:16:50 +08:00
2019-12-17 18:09:46 +08:00
// }
2019-11-26 18:16:50 +08:00
justify-content: space-between;
align-items: center;
}
@include e(description) {
&:not(:last-child) {
margin-bottom: 4px;
}
}
@include e(content) {
&:not(:first-child) {
2019-11-26 18:54:29 +08:00
margin-top: 12px;
2019-11-26 18:16:50 +08:00
}
}
@include e(footer) {
&:not(:first-child) {
2019-11-26 18:54:29 +08:00
margin-top: 12px;
2019-11-26 18:16:50 +08:00
}
}
@include e(action) {
&:not(:first-child) {
2019-11-26 18:54:29 +08:00
margin-top: 12px;
2019-11-26 18:16:50 +08:00
}
}
}
2019-11-26 18:16:50 +08:00
}
color: $--thing-text-color;
@include b(thing-main) {
@include b(thing-header) {
@include e(title) {
color: $--thing-header-text-color;
}
}
}
}
}