mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 19:27:04 +00:00
51 lines
1.2 KiB
SCSS
51 lines
1.2 KiB
SCSS
.settings-slider {
|
|
@apply relative flex items-center bg-bolt-elements-prompt-background rounded-lg;
|
|
|
|
&__thumb {
|
|
@apply absolute h-full transition-all duration-300 rounded-lg;
|
|
background-color: var(--bolt-elements-button-primary-background);
|
|
|
|
&--left {
|
|
@apply left-0 w-1/2;
|
|
}
|
|
|
|
&--right {
|
|
@apply right-0 w-1/2;
|
|
}
|
|
}
|
|
|
|
&__button {
|
|
@apply relative z-10 flex-1 p-2 rounded-lg text-sm transition-colors duration-200;
|
|
|
|
&--selected {
|
|
@apply text-bolt-elements-textPrimary;
|
|
}
|
|
|
|
&--unselected {
|
|
@apply text-bolt-elements-textSecondary hover:text-bolt-elements-textPrimary;
|
|
}
|
|
}
|
|
}
|
|
|
|
.settings-toggle {
|
|
&__track {
|
|
@apply w-11 h-6 rounded-full shadow-inner transition-colors duration-200;
|
|
|
|
&--enabled {
|
|
background-color: var(--bolt-elements-item-contentAccent);
|
|
}
|
|
|
|
&--disabled {
|
|
background-color: var(--bolt-elements-bg-depth-3);
|
|
}
|
|
}
|
|
|
|
&__thumb {
|
|
@apply absolute left-0 w-6 h-6 rounded-full shadow transition-transform duration-200 ease-in-out;
|
|
background-color: var(--bolt-elements-textPrimary);
|
|
|
|
&--enabled {
|
|
@apply transform translate-x-full;
|
|
}
|
|
}
|
|
} |