mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-01 23:56:41 +07:00
91 lines
1.5 KiB
SCSS
91 lines
1.5 KiB
SCSS
.wrap {
|
|
overflow: hidden;
|
|
position: relative;
|
|
min-width: 0;
|
|
width: 100%;
|
|
transition: height 0.25s;
|
|
border-radius: $radius;
|
|
|
|
.is_loading {
|
|
.placeholder {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.image_container {
|
|
// background: $node_image_bg;
|
|
border-radius: $panel_radius 0 0 $panel_radius;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
position: relative;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
will-change: transform, height;
|
|
transition: height 500ms, transform 500ms;
|
|
padding: 0 0 20px 0;
|
|
|
|
&:active {
|
|
transition: none;
|
|
}
|
|
|
|
.image {
|
|
// that was for containered image:
|
|
// max-height: 960px;
|
|
// max-height: 120vh !important;
|
|
// max-width: 100%;
|
|
opacity: 1;
|
|
border-radius: $radius;
|
|
box-shadow: transparentize($color: white, $amount: 0.95) 0 -1px,
|
|
transparentize($color: #000000, $amount: 0.5) 0 4px 10px;
|
|
}
|
|
|
|
&.is_dragging {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.image_wrap {
|
|
width: 100%;
|
|
// top: 0;
|
|
// left: 0;
|
|
// opacity: 0;
|
|
pointer-events: none;
|
|
touch-action: none;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
&:global(.is_active) {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.placeholder {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: $content_bg;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
touch-action: none;
|
|
transition: opacity 2s;
|
|
z-index: 2;
|
|
opacity: 0;
|
|
|
|
&.is_loading {
|
|
opacity: 1;
|
|
}
|
|
|
|
svg {
|
|
opacity: 0.025;
|
|
fill: white;
|
|
}
|
|
}
|