Skip to content

Commit

Permalink
fix(Sleek): improve setting toggles (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChilledBuffalo authored Dec 17, 2023
1 parent 8b6a801 commit fb207b5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Sleek/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,40 @@ NEW HOME LAYOUT
.nav-alt .x-searchInput-searchInputInput:focus {
box-shadow: none;
}
/*
-------
TOGGLE
-------
*/
.x-toggle-indicatorWrapper {
background-color: transparent;
height: 20px;
width: 40px;
box-shadow: 0 0 0 1px var(--spice-subtext);
}

input:hover:not([disabled], :active) ~ .x-toggle-indicatorWrapper {
background-color: var(--spice-main-secondary);
}

input:checked ~ .x-toggle-indicatorWrapper {
background-color: var(--spice-button);
box-shadow: none;
}

.x-toggle-indicator {
background-color: var(--spice-subtext);
height: 12px;
width: 12px;
top: 4px;
left: 3px;
}

input:not([disabled]) ~ .x-toggle-indicatorWrapper:hover .x-toggle-indicator {
transform: scale(1.2);
}

input:checked ~ .x-toggle-indicatorWrapper .x-toggle-indicator {
background-color: var(--spice-main);
right: 4px;
}

0 comments on commit fb207b5

Please sign in to comment.