Skip to content

Commit

Permalink
improve ui
Browse files Browse the repository at this point in the history
  • Loading branch information
f committed Feb 5, 2025
1 parent ffcfd9c commit 3a1d66c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,10 @@
transition: .4s;
}

.dark-mode .slider {
background-color: #555;
}

.slider:before {
position: absolute;
content: "";
Expand All @@ -1136,14 +1140,26 @@
transition: .4s;
}

.dark-mode .slider:before {
background-color: #e1e1e1;
}

input:checked + .slider {
background-color: var(--accent-color);
}

.dark-mode input:checked + .slider {
background-color: var(--accent-color);
}

input:focus + .slider {
box-shadow: 0 0 1px var(--accent-color);
}

.dark-mode input:focus + .slider {
box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider:before {
transform: translateX(20px);
}
Expand All @@ -1156,6 +1172,16 @@
border-radius: 50%;
}

.dev-mode-label {
color: var(--text-color-light);
margin-left: 8px;
font-size: 0.9rem;
}

.dark-mode .dev-mode-label {
color: var(--text-color-dark);
}

@media (max-width: 768px) {
.dev-mode-label {
display: none;
Expand Down

0 comments on commit 3a1d66c

Please sign in to comment.