Skip to content

Commit

Permalink
Make dark mode transition more pleasant
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jul 2, 2024
1 parent 7811e1e commit 3a39bb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
.lf-navbar-logo {
margin-left: 20px;

transition: 300ms;
transition: 200ms;
transition-timing-function: ease-out;
}

/* If light theme, re-colour SVG to all dark */
Expand All @@ -80,10 +81,10 @@

[data-theme='dark'] .lf-navbar-logo {
/* Same filter above, and invert(1) makes it 100% light */
filter: contrast(0) brightness(0) invert(1);
filter: contrast(0) brightness(1.8);
}

.lf-navbar-logo:hover {
/* On hover disable filters so there's colour */
filter: inherit;
}
}

0 comments on commit 3a39bb8

Please sign in to comment.