Skip to content

Commit b8aff10

Browse files
committed
docs: replace intercepted search shortcut (AdminForth/1862)
1 parent dec2085 commit b8aff10

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

adminforth/documentation/src/css/custom.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,21 @@ html[data-theme="dark"] .fakeScreen {
455455
gap: 10px;
456456
}
457457

458+
/* DocSearch supports `/` natively; unlike Ctrl+K, Chrome does not intercept it. */
459+
.DocSearch-Button-Keys {
460+
align-items: center;
461+
display: flex;
462+
min-width: 20px;
463+
}
464+
465+
.DocSearch-Button-Keys kbd {
466+
display: none;
467+
}
468+
469+
.DocSearch-Button-Keys::after {
470+
content: '/';
471+
}
472+
458473
.hidden-sidebar {
459474
display: none
460475
;
@@ -490,4 +505,4 @@ html[data-theme="dark"] .fakeScreen {
490505
}
491506

492507

493-
}
508+
}

0 commit comments

Comments
 (0)