2021-09-28 20:42:12 +08:00
|
|
|
@use 'mixins/mixins' as *;
|
|
|
|
@use 'common/var' as *;
|
2020-08-28 11:09:05 +08:00
|
|
|
|
|
|
|
%size {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(image) {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@include e(inner) {
|
2021-12-01 16:26:00 +08:00
|
|
|
@extend %size !optional;
|
2020-08-28 11:09:05 +08:00
|
|
|
vertical-align: top;
|
2022-06-09 10:23:58 +08:00
|
|
|
opacity: 1;
|
|
|
|
@include when(loading) {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(wrapper) {
|
|
|
|
@extend %size !optional;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2020-08-28 11:09:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include e(placeholder) {
|
2021-12-15 16:28:09 +08:00
|
|
|
@extend %size !optional;
|
2022-03-13 20:10:07 +08:00
|
|
|
background: getCssVar('fill-color', 'light');
|
2020-08-28 11:09:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include e(error) {
|
2021-12-01 16:26:00 +08:00
|
|
|
@extend %size !optional;
|
2020-08-28 11:09:05 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 14px;
|
2022-03-13 20:10:07 +08:00
|
|
|
background: getCssVar('fill-color', 'light');
|
2022-04-26 17:19:09 +08:00
|
|
|
color: getCssVar('text-color', 'placeholder');
|
2020-08-28 11:09:05 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(preview) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|