Skip to content

Commit ef40c94

Browse files
committed
fix search bar hover
1 parent 9af8b59 commit ef40c94

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DefaultTheme from "vitepress/theme";
22
import "@catppuccin/vitepress/theme/mocha/blue.css";
33
import './styles/keyboard-shortcuts.css'
4+
import './styles/custom.css'
45
import { h } from "vue";
56
import AnnouncementBanner from './components/AnnouncementBanner.vue'
67

.vitepress/theme/styles/custom.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Fix search bar hover animation */
2+
.DocSearch-Button {
3+
transition: all 0.2s ease;
4+
}
5+
6+
.DocSearch-Button:hover {
7+
background-color: var(--vp-c-gray-2) !important;
8+
box-shadow: inset 0 0 0 1px var(--vp-c-brand-1) !important;
9+
}
10+
11+
.dark .DocSearch-Button:hover {
12+
background-color: var(--vp-c-bg) !important;
13+
}
14+
15+
/* Ensure the icon and text colors are correct on hover */
16+
.DocSearch-Button:hover .DocSearch-Search-Icon,
17+
.DocSearch-Button:hover .DocSearch-Button-Placeholder {
18+
color: var(--vp-c-text-1) !important;
19+
}

docs/stylesheets/extra.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)