Files
taimed-international-app/uni_modules/wot-design-uni/components/wd-message-box/index.scss
2025-11-04 12:37:04 +08:00

109 lines
2.0 KiB
SCSS

@import "../common/abstracts/variable.scss";
@import "../common/abstracts/_mixin.scss";
.wot-theme-dark {
@include b(message-box) {
@include e(body) {
background-color: $-dark-background2;
}
@include e(title) {
color: $-dark-color;
}
@include e(content) {
color: $-dark-color3;
&::-webkit-scrollbar-thumb {
background: $-dark-border-color;
}
}
}
}
:deep(.wd-message-box){
border-radius: $-message-box-radius;
overflow: hidden;
}
@include b(message-box) {
border-radius: $-message-box-radius;
overflow: hidden;
@include e(container) {
width: $-message-box-width;
box-sizing: border-box;
}
@include e(body) {
background-color: $-message-box-bg;
padding: $-message-box-padding;
@include when(no-title) {
padding: 25px 24px 0px;
}
}
@include e(title) {
text-align: center;
font-size: $-message-box-title-fs;
color: $-message-box-title-color;
line-height: 20px;
font-weight: 500;
padding-top: 5px;
padding-bottom: 10px;
}
@include e(content) {
max-height: $-message-box-content-max-height;
color: $-message-box-content-color;
font-size: $-message-box-content-fs;
text-align: center;
overflow: auto;
line-height: 20px;
&::-webkit-scrollbar {
width: $-message-box-content-scrollbar-width;
}
&::-webkit-scrollbar-thumb {
width: $-message-box-content-scrollbar-width;
background: $-message-box-content-scrollbar-color;
border-radius: calc($-message-box-content-scrollbar-width / 2);
}
}
@include e(input-error) {
min-height: 18px;
margin-top: 2px;
color: $-message-box-input-error-color;
text-align: left;
@include when(hidden) {
visibility: hidden;
}
}
@include e(actions) {
padding: 24px;
}
@include edeep(actions-btn) {
&:not(:last-child) {
margin-right: 16px;
}
}
@include e(flex) {
display: flex;
}
@include e(block) {
display: block;
}
@include e(cancel) {
margin-right: 16px;
}
}