From 1869d813b4e342b7cccc5b8937a0d2b917612dac Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 4 Jun 2020 16:20:32 +0300 Subject: [PATCH] add fake_urlbar_dropmarker.css --- chrome/fake_urlbar_dropmarker.css | 23 +++++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 chrome/fake_urlbar_dropmarker.css diff --git a/chrome/fake_urlbar_dropmarker.css b/chrome/fake_urlbar_dropmarker.css new file mode 100644 index 0000000..3f4e589 --- /dev/null +++ b/chrome/fake_urlbar_dropmarker.css @@ -0,0 +1,23 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/fake_urlbar_dropmarker.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Icon won't have a background when hovered and the cursor will be text selection cursor, unfortunately */ + +#page-action-buttons::before{ + display: -moz-inline-box; + content: ""; + height: 28px; + width: 28px; + padding: var(--urlbar-icon-padding); + fill: var(--lwt-toolbar-field-color, black); + fill-opacity: 0.6; + -moz-context-properties: fill, fill-opacity; + background: no-repeat center url(chrome://global/skin/icons/arrow-dropdown-16.svg); + cursor: normal; + opacity: 0; + transition: opacity 150ms linear +} +#urlbar-input-container:hover > #page-action-buttons::before{ opacity: 1 } +.urlbar-input-box:not(:focus-within){ margin-inline-end: -24px; } +#urlbar-input:not(:focus-within){ padding-inline-end: 24px !important; } +.urlbar-input-box:focus-within ~ #page-action-buttons::before{ -moz-user-focus: normal } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 00519f4..5a9b800 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -92,5 +92,6 @@ "vertical_context_navigation_v2.css":["navigation","menu","popup"], "vertical_menubar.css":["menubar","hack"], "window_control_placeholder_support.css":["window-control","patch"], -"fake_statusbar_w_bookmarksbar.css":["hack","status","toolbar","bookmarks"] +"fake_statusbar_w_bookmarksbar.css":["hack","status","toolbar","bookmarks"], +"fake_urlbar_dropmarker.css":["urlbar","hack"] } diff --git a/tags.csv b/tags.csv index 4f678d1..fa276d2 100644 --- a/tags.csv +++ b/tags.csv @@ -92,3 +92,4 @@ vertical_context_navigation_v2.css,navigation,menu,popup vertical_menubar.css,menubar,hack window_control_placeholder_support.css,window-control,patch fake_statusbar_w_bookmarksbar.css,hack,status,toolbar,bookmarks +fake_urlbar_dropmarker.css,urlbar,hack