Skip to content

Commit 90c4f73

Browse files
committed
Update Search input and Kbd styles
1 parent b7ac078 commit 90c4f73

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

src/components/navbar/navbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ export function Navbar({ items }: NavBarProps): ReactElement {
183183

184184
{process.env.NEXTRA_SEARCH &&
185185
renderComponent(themeConfig.search.component, {
186-
className: "max-md:_hidden",
186+
className:
187+
"max-md:_hidden [&>input]:bg-neu-0/[.55] [&>input::placeholder]:text-neu-700 [&>input]:text-neu-900",
187188
})}
188189

189190
{themeConfig.project.link ? (

src/nextra-theme-docs.css

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -681,18 +681,6 @@ video {
681681
._rounded-full {
682682
border-radius: 9999px;
683683
}
684-
._rounded-lg {
685-
border-radius: 0.5rem;
686-
}
687-
._rounded-md {
688-
border-radius: 0.375rem;
689-
}
690-
._rounded-sm {
691-
border-radius: 0.125rem;
692-
}
693-
._rounded-xl {
694-
border-radius: 0.75rem;
695-
}
696684
._rounded-b-md {
697685
border-bottom-right-radius: 0.375rem;
698686
border-bottom-left-radius: 0.375rem;
@@ -957,15 +945,7 @@ video {
957945
text-align: center;
958946
}
959947
._font-mono {
960-
font-family:
961-
ui-monospace,
962-
SFMono-Regular,
963-
Menlo,
964-
Monaco,
965-
Consolas,
966-
Liberation Mono,
967-
Courier New,
968-
monospace;
948+
@apply font-mono;
969949
}
970950
._text-2xl {
971951
font-size: 1.5rem;
@@ -2994,3 +2974,9 @@ body.nextra-banner-hidden .\[body\.nextra-banner-hidden_\&\]\:_hidden {
29942974
div:hover > .\[div\:hover\>\&\]\:_opacity-100 {
29952975
opacity: 1;
29962976
}
2977+
2978+
kbd._border._gap-1 {
2979+
border-bottom-width: 2px;
2980+
border-color: hsl(var(--color-neu-300));
2981+
gap: 0.125rem;
2982+
}

0 commit comments

Comments
 (0)