diff --git a/lib/docs/index.html b/lib/docs/index.html
index bd88ed925c..785054ad0b 100644
--- a/lib/docs/index.html
+++ b/lib/docs/index.html
@@ -307,8 +307,14 @@
#searchPlaceholder {
position: absolute;
pointer-events: none;
- top: 5px;
- left: 5px;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ padding-left: 5px;
+ }
+
+ #searchPlaceholderTextMobile {
+ display: none;
}
#dotsPopover:before {
@@ -797,6 +803,12 @@
display: inline-block;
min-width: calc(100% - 2.8rem);
}
+ #searchPlaceholderText {
+ display: none;
+ }
+ #searchPlaceholderTextMobile {
+ display: inline;
+ }
}
.banner {
background-color: orange;
@@ -994,7 +1006,10 @@
-
+
+
+ Search
+
Use spaces instead of dots. See $resource for more info.
diff --git a/lib/docs/main.js b/lib/docs/main.js
index 5f090a3a49..3d258f4ce8 100644
--- a/lib/docs/main.js
+++ b/lib/docs/main.js
@@ -80,6 +80,7 @@ var scrollHistory = {};
const domSearchKeys = document.getElementById("searchKeys");
const domPrefsModal = document.getElementById("prefsModal");
const domSearchPlaceholder = document.getElementById("searchPlaceholder");
+ const domSearchPlaceholderText = document.getElementById("searchPlaceholderText");
const sourceFileUrlTemplate = "src/{{mod}}/{{file}}.html#L{{line}}"
const domLangRefLink = document.getElementById("langRefLink");
@@ -4739,7 +4740,7 @@ Happy writing!
domPrefSlashSearch.checked = enabled;
const searchKeys = enabled ? "/ or s" : "s";
domSearchKeys.innerHTML = searchKeys;
- domSearchPlaceholder.innerHTML = searchKeys + " to search, ? for more options";
+ domSearchPlaceholderText.innerHTML = searchKeys + " to search, ? for more options";
}
})();