From 53376afaf1ee4eb5d8e0ffb1ace1ee8f48c71235 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 3 Mar 2024 14:20:46 +0300 Subject: 2024-03-03 --- modules/nixos/firefox/userChrome.css | 106 +++++++++++------------------------ 1 file changed, 34 insertions(+), 72 deletions(-) (limited to 'modules/nixos/firefox/userChrome.css') diff --git a/modules/nixos/firefox/userChrome.css b/modules/nixos/firefox/userChrome.css index 4fd1d3f..80d1f7a 100644 --- a/modules/nixos/firefox/userChrome.css +++ b/modules/nixos/firefox/userChrome.css @@ -1,33 +1,5 @@ -@-moz-document url(chrome://browser/content/browser.xul), url(chrome://browser/content/browser.xhtml) +@-moz-document url(chrome://browser/content/browser.xhtml) { - /* :root { */ - /* /\* */ - /* * Helper colours. */ - /* *\/ */ - /* --background: var(--black) !important; */ - /* --foreground: var(--white) !important; */ - /* --background-alt: var(--bright-black) !important; */ - /* --foreground-alt: var(--bright-white) !important; */ - - /* /\* */ - /* * Various root values that can be redefined. */ - /* *\/ */ - /* --arrowpanel-border-radius: 0 !important; */ - /* --autocomplete-popup-highlight-background: var(--background) !important; */ - /* --autocomplete-popup-highlight-color: var(--foreground) !important; */ - /* --backbutton-background: transparent !important; */ - /* --backbutton-border-color: transparent !important; */ - /* --tab-block-margin: 0 !important; */ - /* --tab-border-radius: 0 !important; */ - /* --tabs-border-color: transparent !important; */ - /* --tabs-top-border-width: 0 !important; */ - /* --toolbar-field-focus-border-color: var(--background) !important; */ - /* --toolbar-non-lwt-bgcolor: var(--background) !important; */ - /* --toolbar-non-lwt-bgimage: none !important; */ - /* --toolbar-non-lwt-textcolor: var(--foreground) !important; */ - /* --toolbarbutton-border-radius: 0 !important; */ - /* } */ - /* *** * Tabbar @@ -37,15 +9,15 @@ /* * Apply colours and fonts. */ - /* .tabbrowser-tab { */ - /* color: var(--background-alt) !important; */ - /* font-family: var(--sans-serif-font-family) !important; */ - /* font-size: var(--sans-serif-font-size) !important; */ - /* } */ - /* .tabbrowser-tab[visuallyselected="true"] { */ - /* background: var(--background) !important; */ - /* color: var(--foreground) !important; */ - /* } */ + .tabbrowser-tab { + color: var(--background-alt) !important; + font-family: var(--sans-serif-font-family) !important; + font-size: var(--sans-serif-font-size) !important; + } + .tabbrowser-tab[visuallyselected="true"] { + background: var(--background) !important; + color: var(--foreground) !important; + } /* * Not sure why is this shit even exists... @@ -54,6 +26,13 @@ display: none !important; } + /* + * Disable the Firefox View button. + */ + #firefox-view-button { + display: none !important; + } + /* * Disable borders and margins. */ @@ -90,18 +69,18 @@ /* * Fix favicon location. */ - /* .tab-icon-image { */ - /* margin-inline-end: 10px !important; */ - /* margin-top: 0px !important; */ - /* } */ + .tab-icon-image { + margin-inline-end: 10px !important; + margin-top: 0px !important; + } /* * "C-t" exists. */ - /* #tabs-newtab-button, */ - /* #TabsToolbar #new-tab-button { */ - /* display: none !important; */ - /* } */ + #tabs-newtab-button, + #TabsToolbar #new-tab-button { + display: none !important; + } /* * "C-w" exists. @@ -116,16 +95,6 @@ *** */ - /* - * Remove useless buttons. - */ - /* #forward-button, */ - /* #back-button, */ - /* #reload-button, */ - /* #stop-button { */ - /* display: none !important; */ - /* } */ - /* * Remove padding between urlbar and side elements. */ @@ -134,13 +103,13 @@ display: none !important; } - /* #urlbar { */ - /* background: var(--background) !important; */ - /* color: var(--foreground) !important; */ - /* font-family: var(--sans-serif-font-family) !important; */ - /* font-size: var(--sans-serif-font-size) !important; */ - /* border-color: transparent !important; */ - /* } */ + #urlbar { + background: var(--background) !important; + color: var(--foreground) !important; + font-family: var(--sans-serif-font-family) !important; + font-size: var(--sans-serif-font-size) !important; + border-color: transparent !important; + } /* #urlbar:not(:-moz-lwtheme):not([focused="true"]) > #urlbar-background, */ /* #searchbar:not(:-moz-lwtheme):not(:focus-within) { */ @@ -180,8 +149,8 @@ */ /* - * Call indicator that some "designer" decided to make floating and - * impossible to hide. + * Call indicator that some "designer" decided to make floating and impossible + * to hide. */ #webrtcIndicator { display: none !important; @@ -194,13 +163,6 @@ display: none !important; } - /* - * Disable all animations. - */ - /* * { */ - /* transition: none !important; */ - /* } */ - /* * Remove dumb websites that Mozilla is forced to include. */ -- cgit v1.2.3