Skip to content

Commit

Permalink
fix: add different background for dark mode on hover for herodevs but…
Browse files Browse the repository at this point in the history
…tons
  • Loading branch information
ShelbyKelley committed Jul 10, 2024
1 parent 5a02126 commit 8263f97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,21 @@ 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;
margin-left: 4px;
}
.actions .get-started,
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 @@ -43,6 +43,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 8263f97

Please sign in to comment.