about summary refs log tree commit diff
path: root/modules/nixos/firefox/userChrome.css
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/firefox/userChrome.css106
1 files changed, 34 insertions, 72 deletions
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...
@@ -55,6 +27,13 @@
   }
 
   /*
+   * Disable the Firefox View button.
+   */
+  #firefox-view-button {
+    display: none !important;
+  }
+
+  /*
    * Disable borders and margins.
    */
   #tabbrowser-tabs {
@@ -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.
@@ -117,16 +96,6 @@
    */
 
   /*
-   * Remove useless buttons.
-   */
-  /* #forward-button, */
-  /* #back-button, */
-  /* #reload-button, */
-  /* #stop-button { */
-  /*     display: none !important; */
-  /* } */
-
-  /*
    * Remove padding between urlbar and side elements.
    */
   #customizableui-special-spring1,
@@ -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;
@@ -195,13 +164,6 @@
   }
 
   /*
-   * Disable all animations.
-   */
-  /* * { */
-  /*     transition: none !important; */
-  /* } */
-
-  /*
    * Remove dumb websites that Mozilla is forced to include.
    */
   .search-one-offs {

Consider giving Nix/NixOS a try! <3