Created
January 9, 2020 00:53
-
-
Save kverb/ff2c65594d06f48d10e25fe58ef6535b to your computer and use it in GitHub Desktop.
modified userChrome.css from https://github.com/turing753/minimal-functional-fox
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
/* | |
original : https://github.com/turing753/minimal-functional-fox | |
*/ | |
window#main-window { | |
/* ******************************************************************* | |
You can tweak the major colors here, the names should | |
be self explanatory. If you want you can also import the stylesheet | |
generated by pywal and pass the variables from that stylesheet on to | |
--color-* vars. | |
*/ | |
--color-fg : #fefefa; | |
/* --color-bg : #282a36; */ | |
--color-bg : #242424; | |
--color-0 : #43c9cf; | |
--color-1 : #d0d01e; | |
--color-2 : #fc6b89; | |
--color-3 : #bc6ccc; | |
--color-4 : #f79130; | |
--color-5 : #ead2ef; | |
--color-tab-active-end : var(--color-4); | |
--color-tab-active-start : var(--color-2); | |
--color-tab-hover-end : var(--color-0); | |
--color-tab-hover-start : var(--color-3); | |
--color-tab-normal-end : var(--color-bg); | |
--color-tab-normal-start : var(--color-bg); | |
--color-tab-pinned-active : var(--color-2); | |
--color-tab-pinned-normal : var(--color-5); | |
--color-urlbar-buttons-bg : #fc6b89; | |
--color-urlbar-text : var(--color-5); | |
/* Easy way to tweak most params */ | |
--gap-between-tabs : 10px; | |
--margin-around-urlbar : 5px; | |
--margin-before-back-button : 9px; | |
--padding-around-searchengine-opts : 5px; | |
/* --pinned-tab-favicon-dim : 27px; */ | |
--pinned-tab-favicon-dim : 0px; | |
--tab-height : 0px; | |
/* --tab-height : 40px; */ | |
--tabs-container-height : 0px; | |
/* --tabs-container-height : 135px; */ | |
--tab-text-font : "Roboto Mono", "System-ui", sans-serif; | |
--tab-text-font-size : 14pt; | |
/* --margin-before-tab-list : 16px; */ | |
--margin-before-tab-list : 0px; | |
--margin-after-tab-list : -17px; | |
--urlbar-text-font : "Roboto Mono", "mononoki Nerd Font", sans-serif; | |
--urlbar-text-size : 14pt; | |
--urlbar-text-weight : 600; | |
--urlbar-list-width : 50%; | |
--urlbar-container-margin : 5px; | |
/* --urlbar-container-margin : 12px; */ | |
/* ******************************************************************* */ | |
--arrowpanel-background: var(--color-bg) !important; | |
--arrowpanel-border-color: var(--color-bg) !important; | |
--arrowpanel-color: var(--color-fg) !important; | |
--arrowpanel-dimmed-even-further: rgba(249, 249, 250, .2); | |
--arrowpanel-dimmed-further: rgba(249, 249, 250, .15); | |
--arrowpanel-dimmed: rgba(249, 249, 250, .1); | |
--autocomplete-popup-background: var(--color-bg) !important; | |
--autocomplete-popup-color: var(--color-fg) !important; | |
--autocomplete-popup-highlight-background: var(--color-bg) !important; | |
--backbutton-active-background: var(--color-fg) !important; | |
--backbutton-background: var(--color-fg) !important; | |
--backbutton-border-color: var(--color-bg) !important; | |
--backbutton-hover-background: var(--color-fg) !important; | |
--chrome-content-separator-color: var(--color-bg) !important; | |
--chrome-content-separator-color: var(--color-bg) !important; | |
--downloads-item-details-opacity: 0.6; | |
--downloads-item-font-size-factor: 0.9; | |
--downloads-item-height: 5.5em; | |
--drag-drop-transition-duration: .3s; | |
--in-content-button-background-active: var(--color-bg) !important; | |
--in-content-button-background-hover: var(--color-bg) !important; | |
--lwt-accent-color: var(--color-fg) !important; | |
--lwt-text-color: var(--color-fg) !important; | |
--lwt-toolbar-field-background-color: var(--color-bg) !important; | |
--lwt-toolbar-field-color: var(--color-bg) !important; | |
--lwt-toolbar-field-color: var(--color-fg) !important; | |
--lwt-toolbarbutton-icon-fill: var(--color-5) !important; | |
--panel-disabled-color: var(--color-0) !important; | |
--panel-separator-color: var(--color-bg) !important; | |
--tab-min-height: 33px; | |
--tabs-top-border-width: 1px; | |
--toolbar-bgcolor: var(--color-bg) !important; | |
--toolbar-bgimage: none; | |
--toolbar-color: var(--color-fg) !important; | |
--toolbar-non-lwt-bgimage: var(--color-bg) !important; | |
--toolbarbutton-active-background: var(--color-bg) !important; | |
--toolbarbutton-focus-outline: var(--color-bg) !important; | |
--toolbarbutton-height: 0; | |
--toolbarbutton-hover-background: var(--color-bg) !important; | |
--toolbarbutton-hover-transition-duration: 150ms; | |
--toolbarbutton-icon-fill-opacity: 1; | |
--toolbarbutton-inner-padding: 12px !important; | |
--toolbarbutton-outer-padding: 4px !important; | |
--urlbar-popup-action-color: var(--color-fg) !important; | |
--urlbar-popup-url-color: var(--color-fg) !important; | |
--urlbar-separator-color: var(--color-bg) !important; | |
--urlbar-separator-color: var(--color-bg) !important; | |
} | |
window#bookmarksPanel { | |
--lwt-sidebar-background-color: var(--color-bg) !important; | |
} | |
window#history-panel { | |
--lwt-sidebar-background-color: var(--color-bg) !important; | |
--lwt-sidebar-text-color: var(--color-fg) !important; | |
} | |
/* | |
====================================================================== | |
* Rules for side bar stuff | |
====================================================================== | |
*/ | |
vbox#sidebar-box { | |
--sidebar-background-color: var(--color-bg) !important; | |
--sidebar-text-color: var(--color-fg) !important; | |
} | |
hbox#browser { | |
--sidebar-border-color: var(--color-bg) !important; | |
} | |
.sidebar-splitter { | |
display: none !important; | |
} | |
/* | |
====================================================================== | |
* Rules for urlbar + navbar buttons etc | |
====================================================================== | |
*/ | |
#urlbar-container { | |
margin: var(--urlbar-container-margin) !important; | |
} | |
.toolbarbutton-1 { | |
color: inherit !important; | |
fill: var(--color-fg) !important; | |
fill-opacity: 1 !important; | |
} | |
#nav-bar-customization-target { | |
background-color: var(--color-bg) !important; | |
} | |
/* This positions the tabs under the navaigator container */ | |
#titlebar { | |
-moz-box-ordinal-group: 3 !important; | |
} | |
#back-button { | |
list-style-image: url("left-arrow.svg") !important; | |
margin-left: var(--margin-before-back-button) !important; | |
opacity: 1 !important; | |
} | |
#forward-button { | |
list-style-image: url("right-arrow.svg") !important; | |
opacity: 1 !important; | |
} | |
#navigator-toolbox { | |
--tabs-border-color: var(--color-bg) !important; | |
background-color: var(--color-bg) !important; | |
border: none !important; | |
border: none !important; | |
box-shadow: none !important; | |
height: var(--tabs-container-height); /*This controls the height of the container that holds the tabs*/ | |
} | |
:root:not([uidensity="compact"]):not([chromehidden~="toolbar"]) #PanelUI-button { | |
border-image-slice: 0 !important; | |
} | |
.titlebar-spacer { | |
display: none !important; | |
} | |
/* Hacky way to make the url input bar centered */ | |
input#urlbar-input { | |
caret-color: transparent !important; | |
width: 99999px !important; | |
text-align: center !important; | |
font-weight: var(--urlbar-text-weight) !important; | |
font-family: var(--urlbar-text-font) !important; | |
font-size: var(--urlbar-text-size) !important; | |
} | |
hbox#urlbar[focused=true] { | |
color: var(--color-urlbar-text) !important; | |
} | |
#urlbar:not(.megabar), | |
#urlbar.megabar > #urlbar-background, | |
#searchbar { | |
border: none !important; | |
box-shadow: none !important; | |
} | |
.urlbar-history-dropmarker, | |
#star-button, | |
#identity-box { | |
display: none !important; | |
} | |
#urlbar { | |
background-color: var(--color-fg); | |
background: none !important; | |
border: none !important; | |
margin: var(--margin-around-urlbar) !important; | |
} | |
.urlbar-one-offs-header-label { | |
color: var(--color-fg) !important; | |
} | |
.search-one-offs { | |
padding: var(--padding-around-searchengine-opts) !important; | |
} | |
.chromeclass-location { | |
border: none !important; | |
box-shadow: none !important; | |
background-image: none !important; | |
} | |
/* This centers the reduces the width of the urlbar list */ | |
.urlbarView:not(.megabar) { | |
box-shadow: none !important; | |
background-color: var(--color-bg) !important; | |
width: var(--urlbar-list-width) !important; | |
margin-left: calc(var(--urlbar-list-width) / 2) !important; | |
border-radius: 0 8px 8px !important; | |
box-shadow: 0px 0px 40px rgba(0, 0, 0, 25%) !important; | |
} | |
.urlbarView-favicon { | |
display: none !important; | |
} | |
.urlbarView-row { | |
text-align: center !important; | |
} | |
.urlbarView-row[selected] { | |
background: var(--color-5) !important; | |
color: var(--color-bg) !important; | |
fill-opacity: 1 !important; | |
} | |
.panel-arrowbox { | |
margin: 0 !important; | |
display: none !important; | |
} | |
.panel-arrowcontent { | |
margin: 0 !important; | |
} | |
:root:not([uidensity="compact"]) #back-button > .toolbarbutton-icon { | |
background-color: var(--color-bg) !important; | |
} | |
/* | |
====================================================================== | |
* Rules for Tabs | |
====================================================================== | |
*/ | |
.tab-line, | |
.tab-background, | |
.tabbrowser-tab::before, | |
.tabbrowser-tab::after, | |
.tabbrowser-tab .tab-icon-image { | |
display: none !important; | |
} | |
.tab-loading-burst { | |
border-radius: var(--tab-height) !important; | |
} | |
.tabbrowser-tab { | |
margin-inline-end: var(--gap-between-tabs) !important; | |
--tab-line-color: none !important; | |
background-color: var(--color-bg) !important; | |
background-image: linear-gradient(to left, var(--color-tab-normal-start), var(--color-tab-normal-end)) !important; | |
border-radius: var(--tab-height) !important; | |
max-height: var(--tab-height) !important; | |
min-height: var(--tab-height) !important; | |
} | |
.tabbrowser-tab[pinned=true] { | |
background-image: linear-gradient( | |
to left, | |
var(--color-tab-pinned-normal), | |
var(--color-tab-pinned-normal) | |
) !important; | |
} | |
.tab-content { | |
text-align: center; | |
font-family: var(--tab-text-font) !important; | |
font-size: var(--tab-text-font-size) !important; | |
} | |
.tabbrowser-tab:hover { | |
background-image: linear-gradient(77deg, var(--color-tab-hover-start), var(--color-tab-hover-end)) !important; | |
border-radius: var(--tab-height) !important; | |
} | |
/* Pinned tabs */ | |
/* TODO: Find a way to add spacing between the pinned tabs when tab list scrolling is triggered. Adding a margin just screws everything up */ | |
.tabbrowser-tab:hover[pinned="true"] { | |
background-image: linear-gradient(to left, var(--color-tab-hover-start), var(--color-tab-hover-end)) !important; | |
} | |
.tabbrowser-tab[pinned="true"] { | |
/* border-bottom-right-radius: 4px !important; */ | |
color: #1d1d1d !important; | |
min-width: var(--tab-height) !important; | |
max-width: var(--tab-height) !important; | |
} | |
.tabbrowser-tab[selected="true"] { | |
background-image: linear-gradient(77deg, var(--color-tab-active-start), var(--color-tab-active-end)) !important; | |
border: none !important; | |
border-radius: var(--tab-height); | |
} | |
/* The round pinned tab favicon */ | |
.tabbrowser-tab[pinned="true"] .tab-icon-image { | |
display: inline-block !important; | |
align-items: center !important; | |
min-width: var(--pinned-tab-favicon-dim) !important; | |
min-height: var(--pinned-tab-favicon-dim) !important; | |
} | |
.tabbrowser-tab[pinned="true"] .tab-label-container { | |
display: none !important; | |
} | |
.tabbrowser-tab[pinned="true"][selected="true"] { | |
background-image: linear-gradient( | |
to left, | |
var(--color-tab-pinned-active), | |
var(--color-tab-pinned-active) | |
) !important; | |
} | |
#tabs-newtab-button { | |
background-image: none !important; | |
} | |
#tabs-newtab-button:hover { | |
background: none !important; | |
background-image: none !important; | |
border-radius: 50%; | |
} | |
.tab-close-button { | |
opacity: 0; | |
transition: opacity 0.25s; | |
} | |
.tab-stack { | |
display: flex !important; | |
justify-content: center !important; | |
} | |
/* Modify these values to tweak the start point of the tab list */ | |
.tabbrowser-arrowscrollbox { | |
margin-inline-start: var(--margin-before-tab-list) !important; | |
margin-inline-end: var(--margin-after-tab-list) !important; | |
} | |
/* hides the native tabs */ | |
#TabsToolbar { | |
visibility: collapse; | |
} | |
#titlebar { | |
visibility: collapse; | |
} | |
#sidebar-header { | |
visibility: collapse !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment