From bd90ebae8fb18d7b44322579af859bbf7dbf306a Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 24 Feb 2021 16:55:23 +0200 Subject: [PATCH] add some changes to make proton nice and compact --- chrome/compact_proton.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/chrome/compact_proton.css b/chrome/compact_proton.css index 2aa3e9d..7de2cd2 100644 --- a/chrome/compact_proton.css +++ b/chrome/compact_proton.css @@ -1,3 +1,20 @@ /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/compact_proton.css made available under Mozilla Public License v. 2.0 See the above repository for updates as well as full license text. */ +/* Small changes to make proton roughly as compact as the old compact mode */ + +:root{ + --toolbarbutton-inner-padding: 6px !important; + --proton-tab-block-margin: 2px !important; + --tabs-shadow-size: 0px !important; + --arrowpanel-menuitem-padding: 5px !important; +} + +menupopup > menuitem, +menupopup > menu{ padding-block: 0.3em !important; } + +#urlbar-container{ padding-block: 3px !important; } +/* This is kinda weird, but it makes the horizontal line between tabs and nav-bar render "inside" nav-bar thus tabs are more visibily separated even if there is less space there */ +#nav-bar{ + box-shadow: inset 0 var(--tabs-shadow-size) 0 var(--tabs-border-color) !important; +} \ No newline at end of file