master
userChrome.css
1* {
2 border-radius: 0px !important;
3}
4
5:root {
6 --tab-active-bg-color: #282828;
7 --tab-inactive-bg-color: var(--tab-active-bg-color);
8 --tab-active-fg-fallback-color: #ebdbb2; /* color of text in an active tab without a container */
9 --tab-inactive-fg-fallback-color: #aaa; /* color of text in an inactive tab without a container */
10 --urlbar-focused-bg-color: var(--tab-active-bg-color);
11 --urlbar-not-focused-bg-color: var(--urlbar-focused-bg-color);
12 --toolbar-bgcolor: var(--tab-active-bg-color) !important;
13 --tab-font: 'Screen';
14 --urlbar-font: 'Screen';
15
16 /* try increasing if you encounter problems */
17 --urlbar-height-setting: 22px;
18 --tab-min-height: 22px !important;
19
20 /* I don't recommend you touch this unless you know what you're doing */
21 --arrowpanel-menuitem-padding: 2px !important;
22 --arrowpanel-border-radius: 0px !important;
23 --arrowpanel-menuitem-border-radius: 0px !important;
24 --toolbarbutton-border-radius: 0px !important;
25 --toolbarbutton-inner-padding: 0px 2px !important;
26 --toolbar-field-focus-background-color: var(--urlbar-focused-bg-color) !important;
27 --toolbar-field-background-color: var(--urlbar-not-focused-bg-color) !important;
28 --toolbar-field-focus-border-color: transparent !important;
29}
30
31/* --- GENERAL DEBLOAT ---------------------------------- */
32
33/* Bottom left page loading status or url preview */
34#statuspanel { display: none !important; }
35
36/* remove radius from right-click popup */
37menupopup, panel { --panel-border-radius: 0px !important; }
38menu, menuitem, menucaption { border-radius: 0px !important; }
39
40/* no stupid large buttons in right-click menu */
41menupopup > #context-navigation { display: none !important; }
42menupopup > #context-sep-navigation { display: none !important; }
43
44/* --- DEBLOAT NAVBAR ----------------------------------- */
45
46#back-button { display: none; } #forward-button { display: none; }
47#identity-box { display: none; }
48#tracking-protection-icon-container { display: none !important; }
49#tracking-protection-icon-box { display: none !important; }
50#reader-mode-button { display: none; }
51#star-button { display: none; }
52#reload-button { display: none; }
53#stop-button { display: none; }
54#home-button { display: none; }
55#library-button { display: none; }
56/* #fxa-toolbar-menu-button { display: none; } */
57/* empty space before and after the url bar */
58#customizableui-special-spring1, #customizableui-special-spring2 { display: none; }
59.private-browsing-indicator-with-label { display: none; }
60
61/* --- STYLE NAVBAR ------------------------------------ */
62
63/* remove padding between toolbar buttons */
64toolbar .toolbarbutton-1 { padding: 0 0 !important; }
65
66/* add it back to the downloads button, otherwise it's too close to the urlbar */
67#downloads-button {
68 margin-left: 2px !important;
69}
70
71/* add padding to the right of the last button so that it doesn't touch the edge of the window */
72#PanelUI-menu-button {
73 padding: 0px 4px 0px 0px !important;
74}
75
76#urlbar-container {
77 --urlbar-container-height: var(--urlbar-height-setting) !important;
78 margin-left: 0 !important;
79 margin-right: 0 !important;
80 padding-top: 0 !important;
81 padding-bottom: 0 !important;
82 font-family: var(--urlbar-font, 'monospace');
83 font-size: 11px;
84}
85
86#urlbar {
87 --urlbar-height: var(--urlbar-height-setting) !important;
88 --urlbar-toolbar-height: var(--urlbar-height-setting) !important;
89 min-height: var(--urlbar-height-setting) !important;
90}
91
92#urlbar-input {
93 margin-left: 0.4em !important;
94 margin-right: 0.4em !important;
95}
96#urlbar > .urlbar-input-container {
97 padding: 0 !important;
98}
99
100#navigator-toolbox {
101 border: none !important;
102}
103
104/* keep pop-up menus from overlapping with navbar */
105#widget-overflow { margin: 3px !important; }
106#customizationui-widget-panel { margin: 3px !important; }
107#unified-extensions-panel { margin-top: 3px !important; }
108#appMenu-popup { margin-top: 3px !important; }
109
110/* --- UNIFIED EXTENSIONS BUTTON ------------------------ */
111
112/* make extension icons smaller */
113#unified-extensions-view {
114 --uei-icon-size: 16px;
115}
116
117/* hide bloat */
118.unified-extensions-item-message-deck,
119#unified-extensions-view > .panel-header,
120#unified-extensions-view > toolbarseparator,
121#unified-extensions-manage-extensions {
122 display: none !important;
123}
124
125/* add 3px padding on the top and the bottom of the box */
126.panel-subview-body {
127 padding: 3px 0px !important;
128}
129
130#unified-extensions-view .toolbarbutton-icon {
131 padding: 0 !important;
132}
133
134.unified-extensions-item-contents {
135 line-height: 1 !important;
136 white-space: nowrap !important;
137}
138
139#unified-extensions-panel .unified-extensions-item {
140 margin-block: 0 !important;
141}
142
143.toolbar-menupopup :is(menu, menuitem), .subview-subheader, panelview
144.toolbarbutton-1, .subviewbutton, .widget-overflow-list .toolbarbutton-1 {
145 padding: 4px !important;
146}
147
148/* --- QUICK BOOKMARK POPUP ----------------------------- */
149
150menupopup, panel { &::part(content) { height: auto !important; } }
151
152#editBMPanel_folderTree, #editBMPanel_tagsSelector {
153 height: 40vh !important;
154}
155
156#editBMPanel_folderMenuList {
157 display: none !important;
158}
159
160/* --- DEBLOAT URLBAR ----------------------------------- */
161
162#pageActionButton { display: none; }
163#pocket-button { display: none; }
164#urlbar-zoom-button { display: none; }
165#tracking-protection-icon-container { display: none !important; }
166/* #reader-mode-button{ display: none !important; } */
167/* #star-button { display: none; } */
168/* #star-button-box:hover { background: inherit !important; } */
169#urlbar-searchmode-switcher { display: none; }
170#searchmode-switcher-chicklet { display: none !important; }
171
172/* hide container indicators; we indicate container by changing tab title text color */
173#identity-icon-box {
174 margin-inline-end: 0 !important;
175 padding: 0 4px !important;
176}
177.tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
178 display: none !important;
179}
180
181/* Go to arrow button at the end of the urlbar when searching */
182#urlbar-go-button { display: none; }
183
184/* remove container indicator from urlbar */
185#userContext-label, #userContext-indicator { display: none !important;}
186
187/* --- STYLE TAB TOOLBAR -------------------------------- */
188
189#titlebar {
190 --proton-tab-block-margin: 0px !important;
191 --tab-block-margin: 0px !important;
192}
193
194#TabsToolbar, .tabbrowser-tab {
195 max-height: var(--tab-min-height) !important;
196 font-size: 11px !important;
197}
198
199/* Change color of normal tabs */
200tab:not([selected="true"]) {
201 background-color: var(--tab-inactive-bg-color) !important;
202 color: var(--identity-icon-color, var(--tab-inactive-fg-fallback-color)) !important;
203}
204
205tab {
206 font-family: var(--tab-font, monospace);
207 font-weight: bold;
208 border: none !important;
209 padding-top: 0 !important;
210}
211
212.tab-content {
213 padding: 0 0 0 var(--tab-inline-padding);
214}
215
216.tab-background {
217 margin-block: 0 !important;
218 min-height: var(--tab-min-height);
219 outline-offset: 0 !important;
220}
221
222/* safari style tab width */
223.tabbrowser-tab[fadein] {
224 max-width: 100vw !important;
225 border: none
226}
227
228/* Hide close button on tabs
229#tabbrowser-tabs .tabbrowser-tab .tab-close-button { display: none !important; }
230*/
231
232/* disable favicons in tab */
233.tab-icon-stack:not([pinned]):not([busy]) { display: none !important; }
234
235.tabbrowser-tab {
236 /* remove border between tabs */
237 padding-inline: 0px !important;
238 /* reduce fade effect of tab text */
239 --tab-label-mask-size: 1em !important;
240 /* fix pinned tab behaviour on overflow */
241 overflow-clip-margin: 0px !important;
242}
243
244/* Tab: selected colors */
245#tabbrowser-tabs .tabbrowser-tab[selected] .tab-content {
246 background: var(--tab-active-bg-color) !important;
247 color: var(--identity-icon-color, var(--tab-active-fg-fallback-color)) !important;
248}
249
250/* Tab: hovered colors */
251#tabbrowser-tabs .tabbrowser-tab:hover:not([selected]) .tab-content {
252 background: var(--tab-active-bg-color) !important;
253 color: var(--tab-inactive-bg-color) !important;
254}
255
256/* hide window controls */
257.titlebar-buttonbox-container { display: none; }
258
259/* remove titlebar spacers */
260.titlebar-spacer { display: none !important; }
261
262/* disable tab shadow */
263#tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
264 box-shadow: none !important;
265}
266
267/* remove dark space between pinned tab and first non-pinned tab */
268#pinned-tabs-container {
269 margin-inline-end: 0 !important;
270}
271
272/* remove dropdown menu button which displays all tabs on overflow */
273#alltabs-button { display: none !important }
274
275/* fix displaying of pinned tabs on overflow */
276#tabbrowser-tabs:not([secondarytext-unsupported]) .tab-label-container {
277 height: var(--tab-min-height) !important;
278}
279
280#tabbrowser-tabs {
281 min-height: var(--tab-min-height) !important;
282}
283
284/* remove overflow scroll buttons */
285#scrollbutton-up, #scrollbutton-down { display: none !important; }
286
287/* remove new tab button */
288#tabs-newtab-button {
289 display: none !important;
290}
291
292/* hide private browsing indicator */
293#private-browsing-indicator-with-label {
294 display: none;
295}
296
297/* numbering tabs
298#tabbrowser-tabs { counter-reset: tab-counter; }
299.tabbrowser-tab { counter-increment: tab-counter; }
300.tabbrowser-tab .tab-content {
301 padding-left: 0 !important;
302}
303.tabbrowser-tab .tab-content::before {
304 content: counter(tab-counter);
305 margin-right: 0.5em;
306 padding: var(--tab-min-height) 0.4em;
307 color: #a38e5d;
308 background-color: #151312;
309}
310
311:root[inFullscreen] > body > #browser {
312 margin-top: 0 !important;
313}
314*/
315
316/* --- AUTOHIDE NAVBAR ---------------------------------- */
317
318/* :root { */
319/* --uc-navbar-transform: calc(0px - var(--urlbar-height-setting)); */
320/* } */
321
322/* #navigator-toolbox > div { */
323/* display: contents; */
324/* } */
325
326/* :root[sessionrestored] :where( */
327/* #nav-bar, */
328/* #PersonalToolbar, */
329/* #tab-notification-deck, */
330/* .global-notificationbox */
331/* ) { */
332/* transform: translateY(var(--uc-navbar-transform)); */
333/* } */
334
335/* :root:is([customizing], [chromehidden*="toolbar"]) :where( */
336/* #nav-bar, */
337/* #PersonalToolbar, */
338/* #tab-notification-deck, */
339/* .global-notificationbox */
340/* ) { */
341/* transform: none !important; */
342/* opacity: 1 !important; */
343/* } */
344
345/* #nav-bar:not([customizing]) { */
346/* opacity: 0; */
347/* position: relative; */
348/* z-index: 2; */
349/* } */
350
351/* #titlebar { */
352/* position: relative; */
353/* z-index: 3; */
354/* } */
355
356/* #navigator-toolbox, */
357/* #sidebar-box, */
358/* #sidebar-main, */
359/* #sidebar-splitter, */
360/* #tabbrowser-tabbox { */
361/* z-index: auto !important; */
362/* } */
363
364/* /1* Show when toolbox is focused, like when urlbar has received focus *1/ */
365/* #navigator-toolbox:focus-within > .browser-toolbar { */
366/* transform: translateY(0); */
367/* opacity: 1; */
368/* } */
369
370/* /1* Show when toolbox is hovered *1/ */
371/* #titlebar:hover ~ .browser-toolbar, */
372/* .browser-titlebar:hover ~ :is(#nav-bar, #PersonalToolbar), */
373/* #nav-bar:hover, */
374/* #nav-bar:hover + #PersonalToolbar { */
375/* transform: translateY(0); */
376/* opacity: 1; */
377/* } */
378
379/* :root[sessionrestored] #urlbar[popover] { */
380/* opacity: 0; */
381/* pointer-events: none; */
382/* transform: translateY(var(--uc-navbar-transform)); */
383/* } */
384
385/* #mainPopupSet:has(> [panelopen]:not( */
386/* #ask-chat-shortcuts, */
387/* #selection-shortcut-action-panel, */
388/* #chat-shortcuts-options-panel, */
389/* #tab-preview-panel */
390/* )) ~ toolbox #urlbar[popover], */
391/* .browser-titlebar:is(:hover, :focus-within) ~ #nav-bar #urlbar[popover], */
392/* #nav-bar:is(:hover, :focus-within) #urlbar[popover], */
393/* #urlbar-container > #urlbar[popover]:is([focused], [open]) { */
394/* opacity: 1; */
395/* pointer-events: auto; */
396/* transform: translateY(0); */
397/* } */
398
399/* /1* This ruleset is separate, because not having :has support breaks other selectors as well *1/ */
400/* #mainPopupSet:has(> [panelopen]:not( */
401/* #ask-chat-shortcuts, */
402/* #selection-shortcut-action-panel, */
403/* #chat-shortcuts-options-panel, */
404/* #tab-preview-panel */
405/* )) ~ #navigator-toolbox > .browser-toolbar { */
406/* transform: translateY(0); */
407/* opacity: 1; */
408/* } */
409
410/* /1* Move up the content view *1/ */
411/* :root[sessionrestored]:not([chromehidden~="toolbar"]) > body > #browser { */
412/* margin-top: var(--uc-navbar-transform); */
413/* } */
414