From 7f669db932ec7948fd72c6920d568d6cd082dc30 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 28 Apr 2021 20:33:52 +0300 Subject: [PATCH] Make styling match proton compatible --- chrome/floating_findbar_on_top.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chrome/floating_findbar_on_top.css b/chrome/floating_findbar_on_top.css index b54fc95..018d3ed 100644 --- a/chrome/floating_findbar_on_top.css +++ b/chrome/floating_findbar_on_top.css @@ -1,11 +1,14 @@ /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/floating_findbar_on_top.css made available under Mozilla Public License v. 2.0 See the above repository for updates as well as full license text. */ +/* Note that privacy.resistFingerprinting.letterboxing prevents this from working properly */ + findbar{ -moz-box-ordinal-group: 0; - margin-bottom: calc(0px - 2 * var(--toolbarbutton-inner-padding) - 25px); + margin-bottom: -33px; position: relative; border-top: none !important; + padding: 0 !important; transition: transform 82ms linear, opacity 82ms linear 32ms !important; background: none !important; pointer-events: none; @@ -29,8 +32,12 @@ findbar > .close-icon{ findbar > .findbar-container{ -moz-box-direction: reverse; border-left-width: 1px; + border-bottom-left-radius: 4px; } +.findbar-closebutton{ margin: 0 !important; border-radius: 0 !important; padding: 5px !important; } +.findbar-closebutton > image{ padding: 3px } +.findbar-closebutton:hover > image{ background: var(--toolbarbutton-hover-background) !important; border-radius: 4px } findbar > .findbar-container > hbox{ margin: 0 5px } findbar::before{