Skip to content

Commit

Permalink
fixed dark mode toggle button and added screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
fasih-mehmood committed Aug 13, 2021
1 parent f36dc20 commit 3446eec
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Binary file added screenshots/desktop-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/desktop-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/mobile-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/mobile-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ html {
background-color: var(--bs-Toggle);
transition: 0.4s;
}
.slider:before {
.slider:after {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
right: 4px;
bottom: 4px;
background-color: white;
transition: 0.3s;
Expand All @@ -71,15 +71,15 @@ input:checked + .slider {
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
transform: translateX(26px);
input:checked + .slider:after {
transform: translateX(-26px);
}

/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
.slider.round:after {
border-radius: 50%;
}

Expand Down
10 changes: 5 additions & 5 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ html {
background-color: var(--bs-Toggle);
transition: .4s;

&:before {
&:after {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
right: 4px;
bottom: 4px;
background-color: white;
transition: .3s;
Expand All @@ -79,16 +79,16 @@ input {
box-shadow: 0 0 1px #2196F3;
}

&:checked+.slider:before {
transform: translateX(26px);
&:checked+.slider:after {
transform: translateX(-26px);
}
}

/* Rounded sliders */
.slider.round {
border-radius: 34px;

&:before {
&:after {
border-radius: 50%;
}
}
Expand Down

0 comments on commit 3446eec

Please sign in to comment.