From c39e2b1c472cf70ea6ea317d148705f9256a5f5b Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 17 Aug 2021 19:12:57 +0300 Subject: [PATCH] create textual_searchbar_one-offs.css --- chrome/textual_searchbar_one-offs.css | 31 +++++++++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 chrome/textual_searchbar_one-offs.css diff --git a/chrome/textual_searchbar_one-offs.css b/chrome/textual_searchbar_one-offs.css new file mode 100644 index 0000000..6a789cb --- /dev/null +++ b/chrome/textual_searchbar_one-offs.css @@ -0,0 +1,31 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/textual_searchbar_one-offs.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Makes the one-off search buttons in the searchbar popup show vertically with a label */ + +#PopupSearchAutoComplete .search-panel-one-offs{ + display: -moz-box !important; + -moz-box-orient: vertical; +} + +#PopupSearchAutoComplete .search-panel-one-offs-container{ + flex-direction: column !important; +} + +#PopupSearchAutoComplete .searchbar-engine-one-off-item{ + display: -moz-box !important; + margin-inline: 8px !important; + -moz-box-orient: horizontal; + -moz-box-align: center; + align-self: unset !important; +} + +#PopupSearchAutoComplete .searchbar-engine-one-off-item > .button-box{ max-width: 30px; } + +#PopupSearchAutoComplete .search-panel-one-offs{ max-width: unset !important; } + +#PopupSearchAutoComplete .searchbar-engine-one-off-item::after{ + content: attr(tooltiptext); + display: -moz-inline-box; + -moz-box-flex: 1; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 54481ad..c76034c 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -138,5 +138,6 @@ "loading_indicator_rotating_image.css":["navigation","effect","status"], "menupopup_forced_color_schemes.css":["popup","colors","menu"], "centered_tab_label.css":["tab"], -"dark_date_picker_panel.css":["popup","dark-mode"] +"dark_date_picker_panel.css":["popup","dark-mode"], +"textual_searchbar_one-offs.css":["popup","menu"] } diff --git a/tags.csv b/tags.csv index df1fddf..7ea91a2 100644 --- a/tags.csv +++ b/tags.csv @@ -138,3 +138,4 @@ loading_indicator_rotating_image.css,navigation,effect,status menupopup_forced_color_schemes.css,popup,colors,menu centered_tab_label.css,tab dark_date_picker_panel.css,popup,dark-mode +textual_searchbar_one-offs.css,popup,menu