r/FirefoxCSS • u/Jay33721 • 1d ago
Code Slightly less Nova'd compact one-line theme CSS
- Works great with all the new themes except Default. Especially nice with the new OLED theme.
- For use with compact density.
- Made corners not be so very round, but you can customize corner roundness to be even less by changing the border radius in the Nova Rounding Adjustments section at the bottom of the CSS.
/* ==========================================================
Combine Nav Bar and Tabs Bar
========================================================== */
#navigator-toolbox {
display: grid !important;
grid-template-columns: minmax(0, 35vw) minmax(0, 1fr) !important;
}
#nav-bar,
#nav-bar-customization-target,
#TabsToolbar {
min-width: 0 !important;
}
#urlbar-container {
flex-shrink: 1 !important;
min-width: 0 !important;
}
#nav-bar {
grid-column: 1 !important;
grid-row: 1 !important;
border-top: none !important;
padding-block: 0 !important;
height: 32px !important;
min-height: 32px !important;
max-height: 32px !important;
:root[uidensity="compact"] & {
height: 30px !important;
min-height: 30px !important;
max-height: 30px !important;
}
}
#TabsToolbar {
grid-column: 2 !important;
grid-row: 1 !important;
padding-block: 0 !important;
align-items: center !important;
height: 32px !important;
min-height: 32px !important;
max-height: 32px !important;
:root[uidensity="compact"] & {
height: 30px !important;
min-height: 30px !important;
max-height: 30px !important;
}
}
/* ==========================================================
Move Menu Button To The Left
========================================================== */
#PanelUI-button {
order: -999 !important;
margin-inline-start: 0 !important;
}
#nav-bar-customization-target {
& > :is(toolbarbutton, toolbaritem):first-child,
& > toolbarpaletteitem:first-child > :is(toolbarbutton, toolbaritem) {
padding-inline-start: 0px !important;
}
}
/* ==========================================================
Compact Bar Height
========================================================== */
:root {
--toolbarbutton-padding-inner-compact: 4px !important;
--toolbarbutton-padding-inner-narrow: 4px !important;
}
toolbarbutton {
:root[uidensity="compact"] & {
padding-block: 0 !important;
max-height: 40px !important;
}
}
.tab-content {
:root[uidensity="compact"] & {
padding-block: 0 !important;
}
}
#tabbrowser-tabs,
.tabbrowser-tab,
.tab-stack {
min-height: 28px !important;
:root[uidensity="compact"] & {
min-height: 26px !important;
}
}
.tab-background {
height: 28px !important;
min-height: 28px !important;
max-height: 28px !important;
:root[uidensity="compact"] & {
height: 26px !important;
min-height: 26px !important;
max-height: 26px !important;
}
}
.tabbrowser-tab[fadein]:not([style^="max-width"]) {
max-width: 10vw !important;
}
#urlbar {
:root[uidensity="compact"] & {
--urlbar-height: 26px !important;
}
}
/* ==========================================================
Minimalism Stuff
========================================================== */
/* Remove Search Switcher */
.searchmode-switcher {
visibility: collapse !important;
}
/* Hide Extension Name in the identity area unless hovered for half a second (updated for Fx80) */
#identity-box.extensionPage #identity-icon-labels,
#identity-box.extensionPage #identity-icon-label {
visibility: collapse !important;
transition: visibility 250ms ease-in-out;
}
#identity-box.extensionPage:hover #identity-icon-labels,
#identity-box.extensionPage:hover #identity-icon-label {
visibility: visible !important;
transition: visibility 250ms ease-in-out 500ms;
}
/* Hide Back and Forward buttons when disabled */
#back-button[disabled="true"],
#forward-button[disabled="true"] {
display: none !important;
}
/* ==========================================================
System Buttons Fix
========================================================== */
.titlebar-buttonbox-container {
margin-left: 21px !important;
height: 100% !important;
}
.titlebar-spacer {
display: none !important;
}
.titlebar-button {
padding-right: 10px !important;
padding-left: 10px !important;
}
/* ==========================================================
Some Fancy Tab Stuff
========================================================== */
.tabbrowser-tab:not([selected]) .tab-icon-image,
.tabbrowser-tab:not([selected]) .tab-text,
.tabbrowser-tab:not([selected]) .tab-throbber[busy] {
opacity: 0.5 !important;
}
.tabbrowser-tab:hover .tab-icon-image,
.tabbrowser-tab:hover .tab-text {
opacity: 1.0 !important;
}
.tabbrowser-tab .tab-close-button {
visibility: hidden !important;
}
.tabbrowser-tab:hover .tab-close-button {
visibility: visible !important;
}
/* ==========================================================
Remove White Line
========================================================== */
.browserContainer {
border: 0px !important;
}
/* ==========================================================
Theme Tweaks
========================================================== */
:root {
--toolbarbutton-icon-fill-attention: var(--toolbarbutton-icon-fill) !important;
--tab-background-color-hover: transparent !important;
--toolbar-background-color: var(--toolbox-background-color) !important;
--toolbox-background-color-inactive: var(--toolbox-background-color) !important;
--urlbarview-background-color-selected: var(--tab-background-color-selected) !important;
--tab-border-color-selected: transparent !important;
--tab-background-color-selected: var(--button-background-color-ghost-hover) !important;
--panel-border-radius: var(--border-radius-large) !important;
--panel-menuitem-border-radius: var(--border-radius-large) !important;
}
.urlbar .urlbar-background {
--urlbar-background-border-focused: var(--toolbox-background-color) !important;
--urlbar-background-border: var(--toolbox-background-color) !important;
--urlbar-background-color: var(--toolbox-background-color) !important;
--urlbar-background-color-focus: var(--toolbox-background-color) !important;
}
.urlbarView-background {
background-color: var(--toolbox-background-color) !important;
}
/* Remove tab bar background */
:root:not([theme-image-in-toolbox]) body, :root[theme-image-in-toolbox] #navigator-toolbox {
background-image: none !important;
}
/* Nova Rounding Adjustments */
:root {
--border-radius-xsmall: 7px !important;
--border-radius-small: 7px !important;
--border-radius-medium: 7px !important;
--border-radius-large: 7px !important;
--border-radius-xlarge: 7px !important;
--urlbar-inner-border-radius: 7px !important;
}
3
Upvotes




1
u/Great-Reference5389 1d ago edited 1d ago
Been looking for this a lot. I'll try it. Thx in advance
Edit: it 'd be great if you can move the bookmark tab to this empty space