From 8f7e3dfca931a309338dd9451723f00d9d46630e Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Tue, 16 Jan 2024 14:16:45 -0400 Subject: [PATCH] STILL. MORE. CSS. --- home/applications/browsers/default.nix | 56 +++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/home/applications/browsers/default.nix b/home/applications/browsers/default.nix index 308e9bb..a3ad6bd 100644 --- a/home/applications/browsers/default.nix +++ b/home/applications/browsers/default.nix @@ -284,9 +284,38 @@ "widget.use-xdg-desktop-portal.file-picker" = 1; }; userChrome = '' - #TabsToolbar{ visibility: collapse !important } + /* Sidebery */ + #main-window .tabbrowser-tab { + visibility: collapse !important; + } - #sidebar-header {visibility: collapse !important} + #main-window .titlebar-button { + height: 40px !important; + } + + #main-window #nav-bar { + margin-top: -40px; + margin-right: 137px; + box-shadow: none !important; + } + #main-window #titlebar-spacer { + background-color: var(--chrome-secondary-background-color); + } + + #main-window #titlebar-buttonbox-container { + background-color: var(--chrome-secondary-background-color); + } + + #main-window .titlebar-color { + background-color: var(--toolbar-bgcolor); + } + + #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] #sidebar-header { + visibility: collapse; + } + + /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0 + See the above repository for updates as well as full license text. */ /* Show sidebar only when the cursor is over it */ /* The border controlling sidebar width will be removed so you'll need to modify these values to change width */ @@ -316,6 +345,29 @@ min-width: var(--uc-sidebar-hover-width) !important; transition-delay: 0ms !important } + + /* Add sidebar divider and give it background */ + + #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] > #sidebar, + #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] > #sidebar-header { + background-color: var(--toolbar-bgcolor) !important; + /* border-inline: 1px solid var(--sidebar-border-color) !important;*/ + border-inline: 1px solid var(--chrome-content-separator-color) !important; + border-inline-width: 0px 1px; + } + #sidebar-box[positionend]{ + direction: rtl + } + #sidebar-box[positionend] > *{ + direction: ltr + } + + #sidebar-box[positionend]:-moz-locale-dir(rtl){ + direction: ltr + } + #sidebar-box[positionend]:-moz-locale-dir(rtl) > *{ + direction: rtl + } ''; }; /*