mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
48 lines
789 B
SCSS
48 lines
789 B
SCSS
.wrap {
|
|
width: 100%;
|
|
height: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.switcher {
|
|
position: absolute;
|
|
background: transparentize(black, 0.5);
|
|
display: flex;
|
|
right: $gap;
|
|
top: $gap;
|
|
border-radius: 24px;
|
|
padding: 0 3px;
|
|
flex-wrap: wrap;
|
|
|
|
& > div {
|
|
width: 30px;
|
|
height: 30px;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: .5;
|
|
transition: opacity 0.25s;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
&::after {
|
|
content: ' ';
|
|
display: block;
|
|
width: 14px;
|
|
height: 14px;
|
|
// background: white;
|
|
border-radius: 8px;
|
|
box-shadow: inset white 0 0 0 2px;
|
|
}
|
|
|
|
&:global(.is_active) {
|
|
&::after {
|
|
background: white;
|
|
}
|
|
}
|
|
}
|
|
}
|