diff --git a/assets/app.css b/assets/app.css index 392bbe6..2a1b279 100644 --- a/assets/app.css +++ b/assets/app.css @@ -65,8 +65,7 @@ body > * { } .not-ready, -.not-ready *, -.not-ready *::before { +.not-ready * { transition: none !important; } @@ -183,21 +182,17 @@ img { } .btn-theme { + align-self: center; width: 3rem; + height: 3rem; margin-left: 2rem; - overflow: hidden; - font-size: 3rem; cursor: pointer; + background: url(./theme.png) left / cover no-repeat; + transition: background-position 0.4s steps(6); } -.btn-theme::before { - white-space: nowrap; - content: '☀️🌕🌖🌗🌘🌑🌙'; - transition: transform 0.4s steps(6); -} - -.dark .btn-theme::before { - transform: translateX(-18rem); +.dark .btn-theme { + background-position: right; } .menu { @@ -210,6 +205,10 @@ img { margin-left: var(--gap); } +.menu a.active { + opacity: 0.4; +} + .social-icon { width: 3rem; margin-left: 3rem; diff --git a/static/theme.png b/static/theme.png new file mode 100644 index 0000000..fe63476 Binary files /dev/null and b/static/theme.png differ