Add theme toggle button with dark mode icon visibility
This commit is contained in:
@@ -54,3 +54,17 @@ nav a:first-of-type img {
|
||||
body:where(.dark) {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
/* Theme toggle icon visibility */
|
||||
.theme-toggle-dark {
|
||||
display: none;
|
||||
}
|
||||
.theme-toggle-light {
|
||||
display: inline;
|
||||
}
|
||||
html.dark .theme-toggle-dark {
|
||||
display: inline;
|
||||
}
|
||||
html.dark .theme-toggle-light {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user