Skip to content

Commit 8263f97

Browse files
committed
fix: add different background for dark mode on hover for herodevs buttons
1 parent 5a02126 commit 8263f97

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.vitepress/theme/components/Home.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,21 @@ html:not(.dark) .accent,
162162
linear-gradient(45deg, #42d392, #647eff) border-box;
163163
border: 2px solid transparent;
164164
}
165+
165166
.actions .security:hover {
166167
background: linear-gradient(var(--vt-c-gray-light-4), var(--vt-c-gray-light-4)) padding-box,
167168
linear-gradient(45deg, #42d392, #647eff) border-box;
168169
}
169170
171+
.dark .actions .security:hover {
172+
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
173+
linear-gradient(45deg, #42d392, #647eff) border-box;
174+
}
175+
170176
.actions .security .icon {
171177
width: 12px;
172178
height: 12px;
173179
margin-left: 4px;
174-
175180
}
176181
177182
.actions .get-started,

.vitepress/theme/components/SecurityUpdateBtn.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
linear-gradient(45deg, #42d392, #647eff) border-box;
4444
transition-duration: 0.2s;
4545
}
46+
.dark .container .security:hover {
47+
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
48+
linear-gradient(45deg, #42d392, #647eff) border-box;
49+
}
4650
.container .security .icon {
4751
width: 12px;
4852
height: 12px;

0 commit comments

Comments
 (0)