mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-23 08:58:47 +00:00
switched theme
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// Component: Theme Toggle
|
||||
.theme-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
transition: var(--transition-smooth);
|
||||
|
||||
svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
html.dark .sun-icon {
|
||||
display: block;
|
||||
}
|
||||
html.dark .moon-icon {
|
||||
display: none;
|
||||
}
|
||||
html:not(.dark) .sun-icon {
|
||||
display: none;
|
||||
}
|
||||
html:not(.dark) .moon-icon {
|
||||
display: block;
|
||||
}
|
||||
Reference in New Issue
Block a user