From d710bed16af7bc390a5d010a48dbd210dc8f26aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 5 Sep 2024 22:13:38 -0300 Subject: [PATCH] firefox: improve theme --- user/firefox.nix | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/user/firefox.nix b/user/firefox.nix index 9650b73..e2c0f4f 100644 --- a/user/firefox.nix +++ b/user/firefox.nix @@ -64,28 +64,19 @@ in .toolbar-items { display: none; } - #private-browsing-indicator-with-label { - display: none; - } - - /* Create a horizontal container */ - #navigator-toolbox { - display: grid; - grid-template-columns: 1fr 50px; - } /* Make the url bar occupy the entire size of the container */ #nav-bar { - grid-column: 1 / 3; - grid-row: 1; z-index: 1; padding-right: 29px !important; } /* shrink the tab bar to a small size, since it's only the window close button basically */ #titlebar { + position: absolute; + right: 0; + top: 10px; max-width: 50px; - grid-area: 1 / 2; z-index: 10; } @@ -94,6 +85,19 @@ in border-top-left-radius: 10px; border-top-right-radius: 10px; } + + /* Make the private browser indicator look nice, over the close-window button */ + #private-browsing-indicator-with-label { + position: absolute; + top: 4px; + left: 15px; + z-index: 20; + pointer-events: none; + } + + #private-browsing-indicator-with-label > label { + display: none; + } ''; }; };