Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Increase toggle-switch size a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ppacher committed Feb 2, 2022
1 parent 6b773ff commit 483aced
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
label {
@apply inline-block w-8 h-4 relative bg-gray-500 rounded-full;
@apply inline-block w-10 h-5 relative bg-gray-500 rounded-full;
}

.slider {
Expand All @@ -8,8 +8,8 @@ label {

.dot {
@apply absolute transition-all duration-200 rounded-full bg-white;
height: 14px;
width: 14px;
height: 18px;
width: 18px;
bottom: 1px;
left: 1px;
}
Expand All @@ -19,5 +19,5 @@ input:checked+.slider {
}

.dot.checked {
transform: translateX(calc(32px - 14px - 2px));
transform: translateX(calc(40px - 18px - 2px));
}

0 comments on commit 483aced

Please sign in to comment.