Skip to content

Commit

Permalink
fix: add different background for dark mode on hover (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisSeckar committed Jul 11, 2024
1 parent c03f0a5 commit a4a84f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,17 @@ html:not(.dark) .accent,
linear-gradient(45deg, #42d392, #647eff) border-box;
border: 2px solid transparent;
}
.actions .security:hover {
background: linear-gradient(var(--vt-c-gray-light-4), var(--vt-c-gray-light-4)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
}
.dark .actions .security:hover {
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
}
.actions .security .icon {
width: 12px;
height: 12px;
Expand Down
4 changes: 4 additions & 0 deletions .vitepress/theme/components/SecurityUpdateBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
linear-gradient(45deg, #42d392, #647eff) border-box;
transition-duration: 0.2s;
}
.dark .container .security:hover {
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
}
.container .security .icon {
width: 12px;
height: 12px;
Expand Down

0 comments on commit a4a84f3

Please sign in to comment.