1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00
vault-frontend/src/components/input/Toggle/styles.module.scss
2023-03-16 11:00:29 +06:00

71 lines
1.1 KiB
SCSS

@import 'src/styles/variables.scss';
.toggle {
height: 24px;
width: 48px;
flex: 0 0 48px;
border-radius: 12px;
background-color: $gray_90;
display: flex;
border: none;
outline: none;
cursor: pointer;
position: relative;
&.white {
box-shadow: inset white 0 0 0 2px;
&::after {
width: 14px;
height: 14px;
top: 5px;
left: 5px;
background: none;
box-shadow: inset white 0 0 0 2px;
}
}
&::after {
content: ' ';
position: absolute;
left: 3px;
top: 3px;
height: 18px;
width: 18px;
border-radius: 11px;
background-color: $gray_50;
transform: translate(0, 0);
transition: transform 0.25s, color 0.25s, background-color;
}
&:disabled {
opacity: 0.5;
}
&.active {
&::after {
transform: translate(24px, 0);
background-color: white;
}
&.primary {
background-color: $color_primary;
}
&.secondary {
background-color: $gray_90;
}
&.lab {
background-color: $color_lab;
}
&.danger {
background-color: $color_danger;
}
&.monochrome {
background-color: white;
}
}
}