Skip to content

Instantly share code, notes, and snippets.

@skarabasakis
Last active June 4, 2022 15:08
Show Gist options
  • Save skarabasakis/529a516fd0f06f199163433e49888d6e to your computer and use it in GitHub Desktop.
Save skarabasakis/529a516fd0f06f199163433e49888d6e to your computer and use it in GitHub Desktop.
paxmod.css
#TabsToolbar #tabbrowser-tabs .tabbrowser-tab:not([pinned]) .tab-close-button {
visibility: hidden !important;
display: block !important;
opacity: 0 !important;
-moz-margin-end: -16px !important;
}
#TabsToolbar #tabbrowser-tabs .tabbrowser-tab[pinned] .tab-close-button {
visibility: hidden !important;
display: block !important;
opacity: 0 !important;
-moz-margin-start: -18px !important;
}
.tab-label {
display:none;
}
.tab-content:not([pinned]) {
padding-left: 10px !important;
padding-right: 0px !important;
}
.tab-background {
/* Remove the round bubble effect for selected tabs. */
border-radius: unset !important;
/* Add tab separators between all tabs. */
border-right: 1px solid var(--tabs-border-color) !important;
/* Remove margins, which in particular merges the selected tab with the address bar. */
margin: 0 !important;
}
.tabbrowser-tab {
/* Remove padding between tabs so tab separators are evenly spaced. */
padding-inline: unset !important;
border-top: 1px solid var(--tabs-border-color) !important;
border-left: 1px solid var(--active-tab-color) !important;
}
.tab-content[pinned] {
/* Give pinned tabs some horizontal breathing room (was 8px). */
padding: 0 12px !important;
}
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[first-visible-unpinned-tab] {
/* Remove gap between pinned tabs and first regular tab. */
margin-inline-start: unset !important;
}
.tabbrowser-tab:is([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected="true"]),
.tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected="true"]) {
/* Pull pinned tab attention blip down so it doesn't overlap the favicon. */
background-position: center bottom calc(2px + var(--tabs-navbar-shadow-size));
}
/* Add top line accent to selected tabs. */
.tabbrowser-tab[visuallyselected="true"] .tab-context-line,
.tabbrowser-tab[multiselected="true"] .tab-context-line {
background-color: -moz-accent-color;
height: 2px;
}
.tabbrowser-tab[multiselected="true"]:not([selected="true"]) > .tab-stack > .tab-background {
/* Darken multiselected tabs that aren't the selected tab. */
background-color: color-mix(in srgb, currentColor 50%, transparent) !important;
}
#TabsToolbar:not([brighttext]) #tabbrowser-tabs:not([noshadowfortests]) .tabbrowser-tab:is([visuallyselected="true"], [multiselected]) > .tab-stack > .tab-background {
/* Remove box shadow for multiselected tabs... */
box-shadow: unset !important;
}
#TabsToolbar:not([brighttext]) #tabbrowser-tabs:not([noshadowfortests], [multiselected]) .tabbrowser-tab:is([visuallyselected="true"]) > .tab-stack > .tab-background {
/* .. and restore the box shadow solely for the visually selected tab. */
box-shadow: 0 0 1px var(--tab-line-color, rgba(128,128,142,0.9)), 0 0 4px rgba(128,128,142,0.5) !important;;
}
#scrollbutton-up, #scrollbutton-down {
/* Remove borders from tab overflow arrows to match height of tabs with removed margins. */
border-top: 0 !important;
border-bottom: 0 !important;
}
/* show favicon for tabs without favicons */
.tabbrowser-tab:not([pinned]) .tab-icon-image:not([src]) {
display: inline !important;
}
#main-window .tabbrowser-tab[pinned] .tab-icon-image:not([src]),
#main-window .tabbrowser-tab:not([pinned]) .tab-icon-image:not([src]) {
list-style-image: url('./../../image/tab_favicon_sheet.png') !important;
}
.tabbrowser-tab:not([pinned])[busy] .tab-icon-image {
display: none !important;
}
/* Dim unloaded tabs */
tab[pending], #alltabs-popup menuitem[pending]
{
opacity: 0.6 !important;
}
#sidebar {
max-width: none !important;
min-width: 0px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment