fix: give toggle inactive state a solid background
This commit is contained in:
@@ -80,14 +80,14 @@
|
||||
<span class="text-[15px] font-normal text-foreground">Autoplay</span>
|
||||
<label class="relative inline-flex cursor-pointer items-center">
|
||||
<input id="player-autoplay" type="checkbox" data-autoplay class="peer sr-only" checked />
|
||||
<div class="peer-checked:bg-accent peer h-5 w-9 rounded-full bg-foreground-muted/20 transition-colors after:absolute after:top-[2px] after:left-[2px] after:h-4 after:w-4 after:rounded-full after:bg-white after:transition-all peer-checked:after:translate-x-full"></div>
|
||||
<div class="peer-checked:bg-accent peer h-5 w-9 rounded-full bg-black/60 ring-1 ring-white/10 transition-colors after:absolute after:top-[2px] after:left-[2px] after:h-4 after:w-4 after:rounded-full after:bg-white after:transition-all peer-checked:after:translate-x-full"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex items-center justify-between px-5 py-2.5">
|
||||
<span class="text-[15px] font-normal text-foreground">Auto-skip</span>
|
||||
<label class="relative inline-flex cursor-pointer items-center">
|
||||
<input id="player-autoskip" type="checkbox" data-autoskip class="peer sr-only" />
|
||||
<div class="peer-checked:bg-accent peer h-5 w-9 rounded-full bg-foreground-muted/20 transition-colors after:absolute after:top-[2px] after:left-[2px] after:h-4 after:w-4 after:rounded-full after:bg-white after:transition-all peer-checked:after:translate-x-full"></div>
|
||||
<div class="peer-checked:bg-accent peer h-5 w-9 rounded-full bg-black/60 ring-1 ring-white/10 transition-colors after:absolute after:top-[2px] after:left-[2px] after:h-4 after:w-4 after:rounded-full after:bg-white after:transition-all peer-checked:after:translate-x-full"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="my-1 h-px w-full bg-white/10"></div>
|
||||
|
||||
Reference in New Issue
Block a user