2021-07-14 09:27:52 +08:00
|
|
|
@import 'mixins/mixins';
|
|
|
|
@import 'common/var';
|
|
|
|
@import './image-viewer.scss';
|
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) {
|
|
|
|
@extend %size;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
@include m(center) {
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(placeholder) {
|
|
|
|
@extend %size;
|
|
|
|
background: $--background-color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(error) {
|
|
|
|
@extend %size;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 14px;
|
|
|
|
background: $--background-color-base;
|
|
|
|
color: $--color-text-placeholder;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(preview) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|