Skip to content

Commit 147d6e6

Browse files
committed
fix: restore red hover color for buttons after VitePress update
Set --vp-c-brand CSS variables to red and add !important to brand button hover styles to override VitePress 1.6 scoped defaults. Remove overly broad button:hover rule. https://claude.ai/code/session_0146mVomWtPuDpvbHcB6VQwy
1 parent 09a3596 commit 147d6e6

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

docs/.vitepress/theme/style.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
--vp-button-brand-text: #ffffff;
66
--vp-button-brand-bg-hover: #a83232;
77
--vp-button-brand-border-hover: #a83232;
8+
--vp-c-brand-1: #d03c4a;
9+
--vp-c-brand-2: #a83232;
10+
--vp-c-brand-3: #d03c4a;
811
}
912

1013
.VPButton.brand:hover {
11-
background-color: var(--vp-button-brand-bg-hover);
12-
border-color: var(--vp-button-brand-border-hover);
13-
color: var(--vp-button-brand-text);
14-
}
15-
16-
button:hover {
17-
background-color: darkred;
14+
background-color: var(--vp-button-brand-bg-hover) !important;
15+
border-color: var(--vp-button-brand-border-hover) !important;
16+
color: var(--vp-button-brand-text) !important;
1817
}

0 commit comments

Comments
 (0)