naive-ui/styles/Log.scss

61 lines
1.6 KiB
SCSS
Raw Normal View History

@import './mixins/mixins.scss';
2019-12-16 19:00:34 +08:00
@include themes-mixin {
@include b(log) {
2020-02-21 14:59:17 +08:00
@include once {
position: relative;
font-family: $--n-mono-font-family;
font-size: 14px;
box-sizing: border-box;
transition:
border-color .3s $--n-ease-in-out-cubic-bezier,
color .3s $--n-ease-in-out-cubic-bezier;
@include e(lines) {
margin: 0;
white-space: pre-wrap;
}
2020-02-21 14:59:17 +08:00
@include e(line) {
margin: 0;
}
2019-12-16 19:00:34 +08:00
}
2020-02-21 14:59:17 +08:00
color: $--log-text-color;
2019-12-16 19:00:34 +08:00
@include b(log-loader) {
2020-02-21 14:59:17 +08:00
@include once {
@include fade-in-width-expand-transition($duration: .3s, $delay: 0s);
transition:
color .3s $--n-ease-in-out-cubic-bezier,
background-color .3s $--n-ease-in-out-cubic-bezier;
box-sizing: border-box;
position: absolute;
right: 16px;
top: 8px;
height: 34px;
border-radius: 17px;
2019-12-16 19:00:34 +08:00
line-height: 34px;
white-space: nowrap;
2020-02-21 14:59:17 +08:00
overflow: hidden;
@include e(content) {
display: inline-block;
vertical-align: bottom;
line-height: 34px;
padding-left: 40px;
padding-right: 20px;
white-space: nowrap;
}
@include b(base-loading) {
position: absolute;
left: 12px;
top: calc(50% - 10px);
font-size: 20px;
width: 20px;
height: 20px;
display: inline-block;
}
2019-12-16 19:00:34 +08:00
}
2020-02-21 14:59:17 +08:00
border: 1px solid $--log-loader-border-color;
color: $--log-loader-text-color;
background-color: $--log-loader-background-color;
2019-12-16 19:00:34 +08:00
}
}
2019-12-16 19:00:34 +08:00
}