Skip to content

Commit

Permalink
docs: better transition colors
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 5, 2021
1 parent d9485a4 commit bae331e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/.vitepress/theme/custom.css
Expand Up @@ -18,17 +18,18 @@
}

.action.alt .item.item.item {
background-color: var(--c-bg);
background-color: transparent;
color: var(--c-text);
border-color: var(--c-text);
/* transition when toggling dark mode */
transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out,
color 150ms ease-in-out;
}

.action.alt .item.item.item:hover {
background-color: var(--c-brand-light);
border-color: var(--c-brand-light);
color: var(--c-brand-text);
/* override the dark mode animation */
transition-duration: 100ms;
}

.nav-bar.nav-bar {
Expand Down

0 comments on commit bae331e

Please sign in to comment.