Created
June 10, 2024 19:02
-
-
Save hepplerj/fee1e82811b09a402e7a9d4128f8013e to your computer and use it in GitHub Desktop.
Custom Firefox user chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*===COLORS===*/ | |
:root { | |
--accent-color: 48, 48, 48; | |
--tab-color: 240, 240, 244; | |
--tab-text-color: 255, 255, 255; | |
--secondary-accent-color: 127, 127, 127; | |
--second-tab-text-color: 127, 127, 127; | |
--third-accent-color: 235, 219, 178; | |
--light-color: 255, 255, 255; | |
--dark-color: 0, 0, 0; | |
--url-back: 249, 249, 251; | |
--caption-min-color: 255, 255, 255; | |
--caption-max-color: 255, 255, 255; | |
--caption-close-color: 255, 255, 255; | |
} | |
/* MIN MAX CLOSE Remove */ | |
/*#TabsToolbar > .titlebar-buttonbox-container { | |
visibility: collapse !important;} | |
*/ | |
/*Basic Settings*/ | |
:root { | |
--navbarWidth: 35vw; | |
/* Set width of navbar. Use px for a fixed width | |
or vw for a percentage of your window. */ | |
--animationSpeed: 0.5s; | |
} | |
#TabsToolbar { | |
margin-left: var(--navbarWidth) !important; | |
} | |
#nav-bar { | |
margin-right: calc(100vw - var(--navbarWidth)) !important; | |
} | |
#urlbar-container { | |
min-width: 0px !important; | |
} | |
:root[uidensity="compact"] #nav-bar { | |
margin-top: -37px !important; | |
height: 37px !important; | |
} | |
:root:not([uidensity="compact"]):not([uidensity="touch"]) #nav-bar { | |
margin-top: -44px !important; | |
height: 44px !important; | |
} | |
:root[uidensity="touch"] #nav-bar { | |
margin-top: -49px !important; | |
height: 49px !important; | |
} | |
/* Back Hide */ | |
#back-button[disabled="true"] { | |
display: none !important | |
} | |
/* Forward Hide */ | |
#forward-button[disabled="true"] { | |
display: none !important | |
} | |
/* Site information button */ | |
#identity-box { | |
display: none !important | |
} | |
/* "Shield" icon */ | |
#tracking-protection-icon-container { | |
display: none !important | |
} | |
/* Simplifying interface */ | |
/* always hide Tabs dropdown overflow */ | |
/*#alltabs-button {display: none !important;}*/ | |
#nav-bar { | |
background: none !important; | |
box-shadow: none !important; | |
} | |
#navigator-toolbox { | |
border: none !important; | |
} | |
.titlebar-spacer { | |
display: none !important; | |
} | |
#urlbar-background { | |
border: none !important; | |
} | |
#urlbar:not(:hover):not([breakout][breakout-extend])>#urlbar-background { | |
/*box-shadow : none !important; | |
background : none !important;*/ | |
} | |
/* Element Hiding stuff */ | |
.urlbar-icon, | |
#userContext-indicator, | |
#userContext-label { | |
fill: transparent !important; | |
background: transparent !important; | |
color: transparent !important; | |
} | |
#urlbar:hover .urlbar-icon, | |
#urlbar:active .urlbar-icon, | |
#urlbar[focused] .urlbar-icon { | |
fill: var(--toolbar-color) !important; | |
} | |
/*================== TABS BAR ==================*/ | |
#titlebar #TabsToolbar { | |
/*background: rgba(var(--dark-color), 1) !important;*/ | |
} | |
#PersonalToolbar { | |
/*background: rgba(var(--dark-color), 1) !important; | |
color: rgba(var(--light-color), 1) !important;*/ | |
padding-bottom: 6px !important; | |
padding-top: 1px !important; | |
} | |
toolbar#nav-bar { | |
/*background: rgba(var(--dark-color), 1) !important;*/ | |
box-shadow: none !important; | |
padding-bottom: 4px !important; | |
} | |
/* Change text color for inactive tabs */ | |
.tabbrowser-tab:not([selected]) .tab-text { | |
/*color: rgb(var(--second-tab-text-color)) !important;*/ | |
} | |
/* Change the color of the loading icon for inactive tabs */ | |
.tabbrowser-tab:not([selected]) .tab-throbber[busy] { | |
/*fill: rgb(var(--second-tab-text-color)) !important;*/ | |
} | |
/* Change the color of the close button on inactive tabs when the tab is hovered */ | |
.tabbrowser-tab:hover .tab-close-button { | |
/*fill: rgb(var(--second-tab-text-color)) !important;*/ | |
} | |
/*================ DARK THEME ================*/ | |
:root:-moz-lwtheme-brighttext, | |
.sidebar-panel[lwt-sidebar-brighttext], | |
body[lwt-sidebar-brighttext] { | |
/* --main-bgcolor: var(--dark-color); | |
--transparent-bgcolor: var(--dark-color); | |
*/ | |
} | |
tab[selected="true"] .tab-content { | |
/* color: rgba(var(--secondary-accent-color), 1) !important; */ | |
} | |
tab[selected="true"] .tab-background { | |
/* background: rgba(var(--accent-color), 1) !important; */ | |
} | |
.tabbrowser-tab>.tab-stack>.tab-background:not([selected="true"]) { | |
transition: all 0.3s ease !important; | |
} | |
.tabbrowser-tab:hover>.tab-stack>.tab-background:not([selected="true"]) { | |
/* background-color: rgba(var(--transparent-bgcolor), 0.7) !important; */ | |
} | |
.tab-line { | |
height: 0px !important; | |
} | |
.tabbrowser-tab { | |
margin-right: 5px !important; | |
} | |
.tabbrowser-tab:not([visuallyselected="true"]), | |
.tabbrowser-tab:-moz-lwtheme { | |
/* color: rgba(var(--second-tab-text-color), 1) !important; */ | |
} | |
tab[selected="true"] .tab-content { | |
/* color: rgba(var(--tab-text-color), 1) !important; */ | |
} | |
tab[selected="true"] .tab-background { | |
/* background: rgba(var(--accent-color), 1) !important; */ | |
} | |
.tabbrowser-tab::after, | |
.tabbrowser-tab::before { | |
border-left: 0 !important; | |
opacity: 0 !important; | |
} | |
.tab-close-button { | |
transition: all 0.3s ease !important; | |
border-radius: 4px !important; | |
} | |
.tabbrowser-tab .tab-label { | |
/* color: var(--uc-inverted-colour) !important; */ | |
} | |
.tab-close-button { | |
/* fill: var(--uc-inverted-colour) !important */ | |
} | |
/*Keep Min, Max, Close buttons white*/ | |
.titlebar-button>.toolbarbutton-icon { | |
/* color: white !important; */ | |
/* or opacity: 1 !important; */ | |
/* or fill: white !important; */ | |
/*or filter: invert(100%) !important; */ | |
/* background: transparent !important; */ | |
} | |
/*Make dragging space next to Min, Max, Close buttons*/ | |
.titlebar-buttonbox-container { | |
margin-left: 21px !important; | |
} | |
/*Make tabs smaller*/ | |
.tabbrowser-tab[fadein]:not([style^="max-width"]) { | |
max-width: 8vw !important; | |
} | |
.titlebar-spacer { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: this is currently buggy on macOS. It places the close/minimize/maximize buttons in between the search bar and the browser tabs.