mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
56 lines
1.1 KiB
SCSS
56 lines
1.1 KiB
SCSS
@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);
|
|
}
|
|
}
|
|
}
|