Skip to content

Commit

Permalink
restoring balance to the UI galaxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonCeci committed Dec 10, 2024
1 parent eacc6e3 commit 75483ab
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/app/settings/settings.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,58 @@
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--slider-background);
-webkit-transition: 0.4s;
transition: 0.4s;
}

.slider:before {
position: absolute;
content: "";
height: 21px;
width: 21px;
left: 2px;
bottom: 1px;
background-color: var(--dark-mode-anti-theme);
-webkit-transition: 0.4s;
transition: 0.4s;
}

.marking-type-input:checked + .slider {
background-color: var(--checked-green-color-theme);
}

.marking-type-input:focus + .slider {
box-shadow: 0 0 1px var(--checked-blue-color-theme);
}

.marking-type-input:checked + .slider:before {
-webkit-transform: translateX(15px);
-ms-transform: translateX(15px);
transform: translateX(15px);
}

.slider.round {
border-radius: 34px;
display: inline-block;
}

.slider.round:before {
border-radius: 50%;
}

.toggle-switch {
position: relative;
width: 3.1rem;
}

.dark-mode-setting-section {
margin: 3rem 0;
}
Expand Down

0 comments on commit 75483ab

Please sign in to comment.