mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
59 lines
881 B
SCSS
59 lines
881 B
SCSS
.wrap {
|
|
background: lighten($content_bg, 4%);
|
|
padding-bottom: 100%;
|
|
border-radius: $radius;
|
|
position: relative;
|
|
user-select: none;
|
|
}
|
|
|
|
.thumb_wrap {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
border-radius: $radius;
|
|
overflow: hidden;
|
|
|
|
&:global(.is_uploading) {
|
|
.thumb {
|
|
filter: blur(16px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.thumb {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
border-radius: $radius;
|
|
background: no-repeat 50% 50%;
|
|
background-size: cover;
|
|
opacity: 1;
|
|
filter: saturate(0);
|
|
}
|
|
|
|
.progress {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 2;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparentize(black, 0.5);
|
|
|
|
svg {
|
|
fill: none;
|
|
// stroke: white
|
|
fill: white;
|
|
}
|
|
}
|
|
|
|
.helper {
|
|
opacity: 0.3;
|
|
}
|