mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added fallback for single images
This commit is contained in:
parent
45c935af3b
commit
83e1902e83
8 changed files with 16 additions and 4 deletions
|
@ -0,0 +1,56 @@
|
|||
@import "src/styles/variables";
|
||||
|
||||
.wrap {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.switcher {
|
||||
position: absolute;
|
||||
// background: darken($content_bg, 2%);
|
||||
background: url('../../../../src/sprites/noise.png') $main_bg_color;
|
||||
display: flex;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
top: -60px;
|
||||
border-radius: 24px;
|
||||
padding: 0 3px;
|
||||
// flex-wrap: wrap;
|
||||
transition: background-color 0.5s;
|
||||
transform: translate(-50%, 0);
|
||||
|
||||
& > div {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: opacity 0.25s;
|
||||
opacity: 0.5;
|
||||
|
||||
&::after {
|
||||
content: ' ';
|
||||
display: block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 8px;
|
||||
box-shadow: inset white 0 0 0 2px;
|
||||
transform: scale(0.5);
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
|
||||
&:global(.is_active) {
|
||||
&::after {
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
|
||||
&:global(.is_loaded)::after {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue