From df8cfb1273e7b99ff5de0164c676d291191a72c6 Mon Sep 17 00:00:00 2001 From: r00ster91 Date: Sat, 6 Aug 2022 15:09:26 +0200 Subject: [PATCH] feat: new search placeholder This new search placeholder looks much nicer because it allows HTML inside it which the `placeholder` attribute on ``s doesn't allow. I tested it for all kinds of cases and it seems to work pretty well. --- lib/docs/index.html | 17 ++++++++++------- lib/docs/main.js | 12 ++++++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/lib/docs/index.html b/lib/docs/index.html index 5d6f381863..48af4ab585 100644 --- a/lib/docs/index.html +++ b/lib/docs/index.html @@ -190,11 +190,11 @@ box-shadow: 0 0.3em 1em 0.125em var(--search-sh-color); } - .docs .search::placeholder { - font-size: 1rem; - font-family: var(--ui); - color: var(--tx-color); - opacity: 0.5; + #searchPlaceholder { + position: absolute; + pointer-events: none; + top: 5px; + left: 5px; } .docs a { @@ -334,7 +334,7 @@ margin-right: 0.5em; } - .help-modal kbd { + kbd { display: inline-block; padding: 0.3em 0.2em; font-size: 1.2em; @@ -614,7 +614,10 @@
- +
+ S to search, ? for more options + +

Loading...