2024-11-13 03:43:51 -05:00
|
|
|
/* try increasing if you encounter problems */
|
|
|
|
--urlbar-height-setting: 24px;
|
|
|
|
--tab-min-height: 20px !important;
|
2024-12-02 00:25:14 -05:00
|
|
|
|
|
|
|
/* I don't recommend you touch this unless you know what you're doing */
|
2024-11-13 03:43:51 -05:00
|
|
|
--arrowpanel-menuitem-padding: 2px !important;
|
|
|
|
--arrowpanel-border-radius: 0px !important;
|
|
|
|
--arrowpanel-menuitem-border-radius: 0px !important;
|
|
|
|
--toolbarbutton-border-radius: 0px !important;
|
|
|
|
--toolbarbutton-inner-padding: 0px 2px !important;
|
|
|
|
--toolbar-field-focus-background-color: var(--urlbar-focused-bg-color) !important;
|
|
|
|
--toolbar-field-background-color: var(--urlbar-not-focused-bg-color) !important;
|
|
|
|
--toolbar-field-focus-border-color: transparent !important;
|
|
|
|
}
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* --- GENERAL DEBLOAT ---------------------------------- */
|
2024-11-13 03:43:51 -05:00
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* Bottom left page loading status or url preview */
|
2024-11-13 03:43:51 -05:00
|
|
|
#statuspanel { display: none !important; }
|
|
|
|
|
|
|
|
/* remove radius from right-click popup */
|
|
|
|
menupopup, panel { --panel-border-radius: 0px !important; }
|
|
|
|
menu, menuitem, menucaption { border-radius: 0px !important; }
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* no stupid large buttons in right-click menu */
|
2024-11-13 03:43:51 -05:00
|
|
|
menupopup > #context-navigation { display: none !important; }
|
|
|
|
menupopup > #context-sep-navigation { display: none !important; }
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* --- DEBLOAT NAVBAR ----------------------------------- */
|
2024-11-13 03:43:51 -05:00
|
|
|
|
|
|
|
#back-button { display: none; }
|
|
|
|
#forward-button { display: none; }
|
|
|
|
#reload-button { display: none; }
|
|
|
|
#stop-button { display: none; }
|
|
|
|
#home-button { display: none; }
|
|
|
|
#library-button { display: none; }
|
|
|
|
#fxa-toolbar-menu-button { display: none; }
|
|
|
|
/* empty space before and after the url bar */
|
|
|
|
#customizableui-special-spring1, #customizableui-special-spring2 { display: none; }
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* --- STYLE NAVBAR ------------------------------------ */
|
2024-11-13 03:43:51 -05:00
|
|
|
|
|
|
|
/* remove padding between toolbar buttons */
|
|
|
|
toolbar .toolbarbutton-1 { padding: 0 0 !important; }
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* add it back to the downloads button, otherwise it's too close to the urlbar */
|
|
|
|
#downloads-button {
|
|
|
|
margin-left: 2px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* add padding to the right of the last button so that it doesn't touch the edge of the window */
|
|
|
|
#PanelUI-menu-button {
|
|
|
|
padding: 0px 4px 0px 0px !important;
|
|
|
|
}
|
|
|
|
|
2024-11-13 03:43:51 -05:00
|
|
|
#urlbar-container {
|
|
|
|
--urlbar-container-height: var(--urlbar-height-setting) !important;
|
|
|
|
margin-left: 0 !important;
|
|
|
|
margin-right: 0 !important;
|
|
|
|
padding-top: 0 !important;
|
|
|
|
padding-bottom: 0 !important;
|
|
|
|
font-family: var(--urlbar-font, 'monospace');
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#urlbar {
|
|
|
|
--urlbar-height: var(--urlbar-height-setting) !important;
|
|
|
|
--urlbar-toolbar-height: var(--urlbar-height-setting) !important;
|
|
|
|
min-height: var(--urlbar-height-setting) !important;
|
|
|
|
border-color: var(--lwt-toolbar-field-border-color, hsla(240,5%,5%,.25)) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#urlbar-input {
|
|
|
|
margin-left: 0.8em !important;
|
|
|
|
margin-right: 0.4em !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#navigator-toolbox {
|
|
|
|
border: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* keep pop-up menus from overlapping with navbar */
|
2024-12-02 00:25:14 -05:00
|
|
|
#widget-overflow { margin: 4px !important; }
|
|
|
|
#customizationui-widget-panel { margin: 4px !important; }
|
|
|
|
#unified-extensions-panel { margin-top: 4px !important; }
|
|
|
|
#appMenu-popup { margin-top: 4px !important; }
|
2024-11-13 03:43:51 -05:00
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* --- UNIFIED EXTENSIONS BUTTON ------------------------ */
|
2024-11-13 03:43:51 -05:00
|
|
|
|
|
|
|
/* make extension icons smaller */
|
|
|
|
#unified-extensions-view {
|
2024-12-02 00:25:14 -05:00
|
|
|
--uei-icon-size: 16px;
|
2024-11-13 03:43:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* hide bloat */
|
|
|
|
.unified-extensions-item-message-deck,
|
|
|
|
#unified-extensions-view > .panel-header,
|
|
|
|
#unified-extensions-view > toolbarseparator,
|
|
|
|
#unified-extensions-manage-extensions {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* add 3px padding on the top and the bottom of the box */
|
|
|
|
.panel-subview-body {
|
|
|
|
padding: 3px 0px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#unified-extensions-view .toolbarbutton-icon {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.unified-extensions-item-contents {
|
|
|
|
line-height: 1 !important;
|
|
|
|
white-space: nowrap !important;
|
|
|
|
}
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
#unified-extensions-panel .unified-extensions-item {
|
|
|
|
margin-block: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-menupopup :is(menu, menuitem), .subview-subheader, panelview
|
|
|
|
.toolbarbutton-1, .subviewbutton, .widget-overflow-list .toolbarbutton-1 {
|
|
|
|
padding: 4px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --- DEBLOAT URLBAR ----------------------------------- */
|
2024-11-13 03:43:51 -05:00
|
|
|
|
|
|
|
#identity-box { display: none; }
|
|
|
|
#pageActionButton { display: none; }
|
|
|
|
#pocket-button { display: none; }
|
|
|
|
#urlbar-zoom-button { display: none; }
|
|
|
|
#tracking-protection-icon-container { display: none !important; }
|
|
|
|
#reader-mode-button{ display: none !important; }
|
|
|
|
#star-button { display: none; }
|
|
|
|
#star-button-box:hover { background: inherit !important; }
|
|
|
|
|
|
|
|
/* Go to arrow button at the end of the urlbar when searching */
|
|
|
|
#urlbar-go-button { display: none; }
|
|
|
|
|
|
|
|
/* remove container indicator from urlbar */
|
|
|
|
#userContext-label, #userContext-indicator { display: none !important;}
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* --- STYLE TAB TOOLBAR -------------------------------- */
|
2024-11-13 03:43:51 -05:00
|
|
|
|
|
|
|
#titlebar {
|
|
|
|
--proton-tab-block-margin: 0px !important;
|
|
|
|
--tab-block-margin: 0px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar, .tabbrowser-tab {
|
|
|
|
max-height: var(--tab-min-height) !important;
|
|
|
|
font-size: 14px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Change color of normal tabs */
|
|
|
|
tab:not([selected="true"]) {
|
|
|
|
background-color: var(--tab-inactive-bg-color) !important;
|
|
|
|
color: var(--identity-icon-color, var(--tab-inactive-fg-fallback-color)) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
tab {
|
|
|
|
font-family: var(--tab-font, monospace);
|
|
|
|
border: none !important;
|
2024-12-02 00:25:14 -05:00
|
|
|
padding-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content {
|
|
|
|
padding: 0 0 0 var(--tab-inline-padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background {
|
|
|
|
margin-block: 0 !important;
|
|
|
|
min-height: var(--tab-min-height);
|
|
|
|
outline-offset: 0 !important;
|
2024-11-13 03:43:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* safari style tab width */
|
|
|
|
.tabbrowser-tab[fadein] {
|
|
|
|
max-width: 100vw !important;
|
|
|
|
border: none
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide close button on tabs */
|
|
|
|
#tabbrowser-tabs .tabbrowser-tab .tab-close-button { display: none !important; }
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* disable favicons in tab */
|
|
|
|
/* .tab-icon-stack:not([pinned]) { display: none !important; } */
|
|
|
|
|
2024-11-13 03:43:51 -05:00
|
|
|
.tabbrowser-tab {
|
|
|
|
/* remove border between tabs */
|
|
|
|
padding-inline: 0px !important;
|
|
|
|
/* reduce fade effect of tab text */
|
|
|
|
--tab-label-mask-size: 1em !important;
|
|
|
|
/* fix pinned tab behaviour on overflow */
|
|
|
|
overflow-clip-margin: 0px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tab: selected colors */
|
|
|
|
#tabbrowser-tabs .tabbrowser-tab[selected] .tab-content {
|
|
|
|
background: var(--tab-active-bg-color) !important;
|
|
|
|
color: var(--identity-icon-color, var(--tab-active-fg-fallback-color)) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tab: hovered colors */
|
|
|
|
#tabbrowser-tabs .tabbrowser-tab:hover:not([selected]) .tab-content {
|
2024-12-02 00:25:14 -05:00
|
|
|
background: var(--tab-active-bg-color) !important;
|
2024-11-13 03:43:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* hide window controls */
|
|
|
|
.titlebar-buttonbox-container { display: none; }
|
|
|
|
|
|
|
|
/* remove titlebar spacers */
|
|
|
|
.titlebar-spacer { display: none !important; }
|
|
|
|
|
|
|
|
/* disable tab shadow */
|
|
|
|
#tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remove dark space between pinned tab and first non-pinned tab */
|
|
|
|
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) >
|
|
|
|
#tabbrowser-arrowscrollbox >
|
|
|
|
.tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) {
|
|
|
|
margin-inline-start: 0px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remove dropdown menu button which displays all tabs on overflow */
|
|
|
|
#alltabs-button { display: none !important }
|
|
|
|
|
|
|
|
/* fix displaying of pinned tabs on overflow */
|
|
|
|
#tabbrowser-tabs:not([secondarytext-unsupported]) .tab-label-container {
|
|
|
|
height: var(--tab-min-height) !important;
|
|
|
|
}
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
#tabbrowser-tabs {
|
|
|
|
min-height: var(--tab-min-height) !important;
|
|
|
|
}
|
|
|
|
|
2024-11-13 03:43:51 -05:00
|
|
|
/* remove overflow scroll buttons */
|
|
|
|
#scrollbutton-up, #scrollbutton-down { display: none !important; }
|
|
|
|
|
|
|
|
/* remove new tab button */
|
|
|
|
#tabs-newtab-button {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* hide private browsing indicator */
|
|
|
|
#private-browsing-indicator-with-label {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-11-13 03:43:51 -05:00
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
/* --- AUTOHIDE NAVBAR ---------------------------------- */
|
|
|
|
|
|
|
|
#nav-bar,
|
|
|
|
#urlbar {
|
|
|
|
transform: translateY(calc(0px - var(--urlbar-height-setting)));
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#navigator-toolbox {
|
|
|
|
min-height: var(--tab-min-height) !important;
|
|
|
|
height: var(--tab-min-height) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#navigator-toolbox:focus-within {
|
|
|
|
min-height: calc(var(--urlbar-height-setting) + var(--tab-min-height)) !important;
|
|
|
|
height: calc(var(--urlbar-height-setting) + var(--tab-min-height)) !important;
|
|
|
|
transform: translateY(calc(0px - var(--tab-min-height)));
|
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar {
|
|
|
|
transform: translateY(var(--tab-min-height));
|
2024-11-13 03:43:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#nav-bar:focus-within {
|
2024-12-02 00:25:14 -05:00
|
|
|
transform: translateY(var(--tab-min-height));
|
|
|
|
opacity: 1;
|
2024-11-13 03:43:51 -05:00
|
|
|
}
|
|
|
|
|
2024-12-02 00:25:14 -05:00
|
|
|
#urlbar:focus-within {
|
2024-11-13 03:43:51 -05:00
|
|
|
transform: translateY(0);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --- Hide tab bar on single tab ------------------- */
|
|
|
|
|
|
|
|
#tabbrowser-tabs .tabbrowser-tab:only-of-type,
|
|
|
|
#tabbrowser-tabs .tabbrowser-tab:only-of-type + #tabbrowser-arrowscrollbox-periphery{
|
|
|
|
display:none !important;
|
|
|
|
}
|
|
|
|
#tabbrowser-tabs, #tabbrowser-arrowscrollbox {min-height:0!important;}
|
|
|
|
#alltabs-button {display:none !important;}
|
|
|
|
|
|
|
|
/* --- Prevent tab folding -------------------------- */
|
|
|
|
|
|
|
|
.tabbrowser-tab {
|
|
|
|
min-width: initial !important;
|
|
|
|
}
|
|
|
|
.tab-content {
|
|
|
|
overflow: hidden !important;
|
|
|
|
}
|