forked from extern/the-glorious-startpage
add magnifying glass unicode on placeholders
This commit is contained in:
parent
db66c1d957
commit
9e61d679f0
@ -28,6 +28,10 @@
|
|||||||
pointer-events var(--transition-speed);
|
pointer-events var(--transition-speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#searchBox::placeholder {
|
||||||
|
font-family: roboto-bold, fantasque-sans-mono;
|
||||||
|
}
|
||||||
|
|
||||||
.showSearchBox {
|
.showSearchBox {
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
top: 100% !important;
|
top: 100% !important;
|
||||||
|
@ -107,6 +107,12 @@ html, body {
|
|||||||
url('../fonts/roboto-v20-latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
|
url('../fonts/roboto-v20-latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'fantasque-sans-mono';
|
||||||
|
font-style: normal;
|
||||||
|
src: url('../fonts/fantasque-sans-mono-bold-italic-nerd-font-complete.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
/*Scrollbar*/
|
/*Scrollbar*/
|
||||||
|
|
||||||
/*Placeholder*/
|
/*Placeholder*/
|
||||||
|
@ -80,6 +80,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#webMenuSearchBox::placeholder {
|
||||||
|
font-family: roboto-bold, fantasque-sans-mono;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 580px) {
|
@media screen and (max-width: 580px) {
|
||||||
#webMenuSearchBox {
|
#webMenuSearchBox {
|
||||||
width: 50vw;
|
width: 50vw;
|
||||||
|
BIN
fonts/fantasque-sans-mono-bold-italic-nerd-font-complete.ttf
Normal file
BIN
fonts/fantasque-sans-mono-bold-italic-nerd-font-complete.ttf
Normal file
Binary file not shown.
@ -51,7 +51,7 @@
|
|||||||
<div id='profileImageContainer'>
|
<div id='profileImageContainer'>
|
||||||
<div id='profileImage'></div>
|
<div id='profileImage'></div>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" id="searchBox" autocomplete="off" autofocus="off" placeholder="Type to search"/>
|
<input type="text" id="searchBox" autocomplete="off" autofocus="off" placeholder=" Search with HiddenWiki"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -204,7 +204,7 @@
|
|||||||
<div id="webMenu">
|
<div id="webMenu">
|
||||||
<div id="webMenuContainer">
|
<div id="webMenuContainer">
|
||||||
<div id="webMenuSearchBoxContainer">
|
<div id="webMenuSearchBoxContainer">
|
||||||
<input type="text" id="webMenuSearchBox" autocomplete="off" placeholder="Type to search">
|
<input type="text" id="webMenuSearchBox" autocomplete="off" placeholder=" Type to search">
|
||||||
</div>
|
</div>
|
||||||
<div id="webMenuListContainer">
|
<div id="webMenuListContainer">
|
||||||
|
|
||||||
|
@ -9,32 +9,34 @@ var defaultEngine = localStorage.getItem('searchEngine') || 'google';
|
|||||||
|
|
||||||
let searchQueryPrefix;
|
let searchQueryPrefix;
|
||||||
|
|
||||||
|
var placeholderPrefix = " Search with ";
|
||||||
|
|
||||||
// Update query string and placeholder
|
// Update query string and placeholder
|
||||||
const selectQueryString = () => {
|
const selectQueryString = () => {
|
||||||
|
|
||||||
if (defaultEngine === "google") {
|
if (defaultEngine === "google") {
|
||||||
searchQueryPrefix = 'http://www.google.com/search?q=';
|
searchQueryPrefix = 'http://www.google.com/search?q=';
|
||||||
searchBox.placeholder = "Search with Google";
|
searchBox.placeholder = placeholderPrefix + "Google";
|
||||||
|
|
||||||
} else if (defaultEngine === "duckduckgo") {
|
} else if (defaultEngine === "duckduckgo") {
|
||||||
searchQueryPrefix = 'https://duckduckgo.com/?q=';
|
searchQueryPrefix = 'https://duckduckgo.com/?q=';
|
||||||
searchBox.placeholder = "Search with Duckduckgo";
|
searchBox.placeholder = placeholderPrefix + "Duckduckgo";
|
||||||
|
|
||||||
} else if (defaultEngine === "ecosia") {
|
} else if (defaultEngine === "ecosia") {
|
||||||
searchQueryPrefix = 'https://www.ecosia.org/search?q=';
|
searchQueryPrefix = 'https://www.ecosia.org/search?q=';
|
||||||
searchBox.placeholder = "Search with Ecosia";
|
searchBox.placeholder = placeholderPrefix + "Ecosia";
|
||||||
|
|
||||||
} else if (defaultEngine === "yahoo") {
|
} else if (defaultEngine === "yahoo") {
|
||||||
searchQueryPrefix = 'http://search.yahoo.com/search?p=';
|
searchQueryPrefix = 'http://search.yahoo.com/search?p=';
|
||||||
searchBox.placeholder = "Search with Yahoo";
|
searchBox.placeholder = placeholderPrefix + "Yahoo";
|
||||||
|
|
||||||
} else if (defaultEngine === "bing") {
|
} else if (defaultEngine === "bing") {
|
||||||
searchQueryPrefix = 'https://www.bing.com/search?q=';
|
searchQueryPrefix = 'https://www.bing.com/search?q=';
|
||||||
searchBox.placeholder = "Search with Bing";
|
searchBox.placeholder = placeholderPrefix + "Bing";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
searchQueryPrefix = 'http://www.google.com/search?q=';
|
searchQueryPrefix = 'http://www.google.com/search?q=';
|
||||||
searchBox.placeholder = "Search with Google";
|
searchBox.placeholder = placeholderPrefix + "Google";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user