Skip to content

Commit

Permalink
fix: style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Sep 6, 2024
1 parent cb51393 commit 7bdb019
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
4 changes: 0 additions & 4 deletions paragon/_extras.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
opacity: 0;
width: 0;
height: 0;

&:checked + .slider:before{
transform: translateX(19px);
}
}

/* The slider */
Expand Down
14 changes: 3 additions & 11 deletions themes/dark/_extras.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1465,20 +1465,12 @@ section[data-testid=sidebar-NOTIFICATIONS], section[data-testid=sidebar-DISCUSSI
}
.toggle-switch {
.switch {
/* Hide default HTML checkbox */
input {
&:checked + .slider{
background-color: #ccc;
}

&:focus + .slider{
box-shadow: 0 0 1px #ccc;
}
}

/* The slider */
.slider {
background-color: #ccc;
box-shadow: 0 0 1px #ccc;
&::before{
transform: translateX(19px);
background-color: $text-color-primary;
}
}
Expand Down
3 changes: 3 additions & 0 deletions themes/dark/_learning.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
&.complete {
color: $success;
}
&.active::after {
background: $primary;
}
}
}

Expand Down

0 comments on commit 7bdb019

Please sign in to comment.