summaryrefslogtreecommitdiff
path: root/modules/firefox/userChrome.css
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-04-21 02:15:42 +0300
committerAzat Bahawi <azat@bahawi.net>2024-04-21 02:15:42 +0300
commite6ed60548397627bf10f561f9438201dbba0a36e (patch)
treef9a84c5957d2cc4fcd148065ee9365a0c851ae1c /modules/firefox/userChrome.css
parent9ac64328603d44bd272175942d3ea3eaadcabd04 (diff)
2024-04-21
Diffstat (limited to 'modules/firefox/userChrome.css')
-rw-r--r--modules/firefox/userChrome.css172
1 files changed, 172 insertions, 0 deletions
diff --git a/modules/firefox/userChrome.css b/modules/firefox/userChrome.css
new file mode 100644
index 0000000..80d1f7a
--- /dev/null
+++ b/modules/firefox/userChrome.css
@@ -0,0 +1,172 @@
+@-moz-document url(chrome://browser/content/browser.xhtml)
+{
+ /*
+ ***
+ * Tabbar
+ ***
+ */
+
+ /*
+ * 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;
+ }
+
+ /*
+ * Not sure why is this shit even exists...
+ */
+ .titlebar-spacer {
+ display: none !important;
+ }
+
+ /*
+ * Disable the Firefox View button.
+ */
+ #firefox-view-button {
+ display: none !important;
+ }
+
+ /*
+ * Disable borders and margins.
+ */
+ #tabbrowser-tabs {
+ border-inline-start: 0 !important;
+ /* padding-inline-start: 0 !important; */
+ margin-inline-start: 0 !important;
+ }
+ #tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])
+ > #tabbrowser-arrowscrollbox
+ > .tabbrowser-tab[first-visible-unpinned-tab] {
+ margin-inline-start: none !important;
+ }
+ .tabbrowser-tab::after,
+ .tabbrowser-tab::before {
+ border: none !important;
+ }
+
+ /*
+ * Make tabs backgroundless.
+ */
+ /* .tab-background, */
+ /* .tab-line { */
+ /* display: none !important; */
+ /* } */
+
+ /*
+ * Stretch tabs to the max by default.
+ */
+ .tabbrowser-tab[fadein]:not([pinned="true"]) {
+ max-width: 100% !important;
+ }
+
+ /*
+ * Fix favicon location.
+ */
+ .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;
+ }
+
+ /*
+ * "C-w" exists.
+ */
+ .tab-close-button {
+ display: none !important;
+ }
+
+ /*
+ ***
+ * Navbar & urlbar.
+ ***
+ */
+
+ /*
+ * Remove padding between urlbar and side elements.
+ */
+ #customizableui-special-spring1,
+ #customizableui-special-spring2 {
+ 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:not(:-moz-lwtheme):not([focused="true"]) > #urlbar-background, */
+ /* #searchbar:not(:-moz-lwtheme):not(:focus-within) { */
+ /* border: none !important; */
+ /* } */
+
+ /* #urlbar *|*.textbox-input::-moz-placeholder { */
+ /* color: transparent !important; */
+ /* } */
+
+ /* .urlbar-icon:hover:not([disabled]), */
+ /* .urlbar-icon-wrapper:hover:not([disabled]) { */
+ /* background-color: var(--background-alt) !important; */
+ /* } */
+
+ /* #urlbar-background { */
+ /* background: transparent !important; */
+ /* } */
+
+ /* .urlbarView-tags, */
+ /* .urlbarView-url, */
+ /* .urlbarView-title:not(:empty) ~ .urlbarView-action { */
+ /* font-size: var(--sans-serif-font-size) !important; */
+ /* } */
+
+ .urlbarView-row[label="Firefox Suggest"] {
+ margin-block-start: 0 !important;
+ }
+ .urlbarView-row[label="Firefox Suggest"]::before {
+ display: none !important;
+ }
+
+ /*
+ ***
+ * Misc.
+ ***
+ */
+
+ /*
+ * Call indicator that some "designer" decided to make floating and impossible
+ * to hide.
+ */
+ #webrtcIndicator {
+ display: none !important;
+ }
+
+ /*
+ * Disable some context menu entries.
+ */
+ #context-navigation {
+ display: none !important;
+ }
+
+ /*
+ * Remove dumb websites that Mozilla is forced to include.
+ */
+ .search-one-offs {
+ display: none !important;
+ }
+}