From b38bb474912c599057aa3d39ef0c526f8f53820c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 28 Sep 2023 11:59:31 -0700 Subject: [PATCH] Show docs search shortcut key --- docs/assets/extra.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/assets/extra.css b/docs/assets/extra.css index 31e07f295..95e33ec96 100644 --- a/docs/assets/extra.css +++ b/docs/assets/extra.css @@ -55,3 +55,18 @@ h4 code { border-top: .05rem solid var(--md-default-fg-color--lightest); } } + +/* Show search shortcut key */ +[data-md-toggle="search"]:not(:checked) ~ .md-header .md-search__form::after { + position: absolute; + top: .3rem; + right: .3rem; + display: block; + padding: .1rem .4rem; + color: var(--md-default-fg-color--lighter); + font-weight: bold; + font-size: .8rem; + border: .05rem solid var(--md-default-fg-color--lighter); + border-radius: .1rem; + content: "/"; + }