mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1522115 - Prevent the new "about:config" search field from moving slightly when the page is scrolled. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D17392 --HG-- extra : rebase_source : 9112bb0d5d5d353e91a8a828e4ff4f03aaaa213f
This commit is contained in:
parent
ee415d487e
commit
d5f7d8afde
@ -24,13 +24,20 @@ body.config-warning {
|
||||
fill: #fcd100;
|
||||
}
|
||||
|
||||
#search {
|
||||
#search-container {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
margin: 10px;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 20px);
|
||||
width: 100%;
|
||||
background-color: var(--in-content-page-background);
|
||||
padding: 10px;
|
||||
padding-bottom: 0;
|
||||
min-width: 644px;
|
||||
}
|
||||
|
||||
#search {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
background-image: url("chrome://global/skin/icons/search-textbox.svg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 9px center;
|
||||
|
@ -325,11 +325,14 @@ function loadPrefs() {
|
||||
[...document.styleSheets].find(s => s.title == "infop").disabled = true;
|
||||
|
||||
document.body.textContent = "";
|
||||
let searchContainer = document.createElement("div");
|
||||
searchContainer.id = "search-container";
|
||||
let search = document.createElement("input");
|
||||
search.type = "text";
|
||||
search.id = "search";
|
||||
document.l10n.setAttributes(search, "about-config-search");
|
||||
document.body.appendChild(search);
|
||||
searchContainer.appendChild(search);
|
||||
document.body.appendChild(searchContainer);
|
||||
search.focus();
|
||||
|
||||
let prefs = document.createElement("table");
|
||||
|
Loading…
Reference in New Issue
Block a user