Bug 1593664 - Add urlbar.megabar.expandTextOnFocus pref and increase font size to the equivalent of 15px on focus. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D53723

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Harry Twyford 2019-11-21 09:15:21 +00:00
Родитель d89d3711ad
Коммит d3de0e27da
4 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -326,6 +326,8 @@ pref("browser.urlbar.usepreloadedtopurls.expire_days", 14);
// Whether the quantum bar displays the major design update.
pref("browser.urlbar.megabar", false);
// Whether we expand the font size when the megabar is focused.
pref("browser.urlbar.megabar.expandTextOnFocus", false);
// Whether the megabar displays the permanent search icon.
pref("browser.urlbar.searchIcon", false);
pref("browser.urlbar.view.stripHttps", false);

Просмотреть файл

@ -281,6 +281,16 @@ notification[value="translation"] menulist > .menulist-dropmarker {
font-size: 1.05em;
}
@supports -moz-bool-pref("browser.urlbar.megabar.expandTextOnFocus") {
.urlbarView {
font-size: inherit;
}
#urlbar[breakout-extend] {
font-size: 1.14em;
}
}
/* Bookmarking panel */
%include ../shared/places/editBookmarkPanel.inc.css

Просмотреть файл

@ -300,6 +300,16 @@
font-size: 14px;
}
@supports -moz-bool-pref("browser.urlbar.megabar.expandTextOnFocus") {
.urlbarView {
font-size: inherit;
}
#urlbar[breakout-extend] {
font-size: 1.36em;
}
}
#BMB_bookmarksPopup[side="top"],
#BMB_bookmarksPopup[side="bottom"] {
margin-left: -26px;

Просмотреть файл

@ -554,6 +554,12 @@ menuitem.bookmark-item {
}
}
@supports -moz-bool-pref("browser.urlbar.megabar.expandTextOnFocus") {
#urlbar[breakout-extend] {
font-size: 1.25em;
}
}
/* bookmarking panel */
%include ../shared/places/editBookmarkPanel.inc.css