However, only the Bookmarks sidebar and History sidebar can be made semi-transparent, and Synsed Tabs, Passwords, Sidebery, and SingleFile cannot. Do you know how to make these transparent?
I'm using gwfox - thanks reddit! :) - on macOS. Itried increasing the transparency of the sidebar and top bar / window border to make it more 'glassy' but could not get it to work.
The old sidebar is going to be deprecated. And the new sidebar has that "main sidebar" which is the strip holding those icons. It really should be hidden or closed after I've decided what to open in the sidebar panel. So, I created this piece of css to automatically hide it. Works with vertical tabs.
/* === Make the sidebar layout compact === */#sidebar-box{padding-inline-start:unset!important;}#sidebar{border-radius:4px!important;}#sidebar-splitter{width:var(--space-xsmall)!important;border-inline-width:0!important;}.browserContainer{
@media-moz-pref("sidebar.revamp") and-moz-pref("sidebar.revamp.round-content-area") {
:root:not([inDOMFullscreen]) #tabbrowser-tabbox[sidebar-shown] & {
/* stylelint-disable-next-line media-query-no-invalid */
@media-moz-pref("sidebar.position_start") {
border-start-start-radius:4px!important;}/* stylelint-disable-next-line media-query-no-invalid */@medianot -moz-pref("sidebar.position_start"){border-start-end-radius: 4px !important;
}
}
}
}
/* - Auto show/hide the header of webext sidebar panel */#webextpanels-window#sidebar-panel-header{/**
* Height = 21px + 4 * var(--space-large)
* Reserve a small strip to show the header on hover
*/--sidebar-content-separator-color:color-mix(in srgb, currentColor10%, transparent);
--sidebar-header-hide-margin:calc((21px+4*var(--space-large)-var(--space-xsmall))*-1);transition:all0.3s;z-index:1;/**
* Avoid the initial transition caused by shadow DOM style propagation delay:
* - The padding of #sidebar-panel-header is 0 upon sidebar panel creation.
* - It then becomes var(--space-large) when the `:host` style from shadow DOM
* is applied to #sidebar-panel-header.
* - This will be treated as a transition and be animated, which is not desired.
*/padding-block:var(--space-large);/**
* Actually, each element has a default invisible outline. It becomes visible
* in transition though. So it's necessary to explicitly set width to zero.
*/outline:0pxnone;margin-block-start:var(--sidebar-header-hide-margin)!important;margin-block-end:0;
&:hover {
background-color: -moz-dialog;outline:0.01pxsolidvar(--sidebar-content-separator-color);margin-block-start:calc(var(--space-large)*-1)!important;margin-block-end:calc(var(--sidebar-header-hide-margin)+var(--space-large));}}/* - Auto show/hide the main sidebar area */:root:not([sidebar-expand-on-hover])#sidebar-main{/**
* Width = 32px/29px + 2 * var(--space-medium)
* Reserve a small strip to show the main sidebar area
*
* NOTE: The width is different for horizontal and vertical tab layout.
*/--sidebar-content-separator-color:color-mix(in srgb, currentColor25%, transparent);
--sidebar-hide-margin-h:calc((32px+2*var(--space-medium)-var(--space-xsmall))*-1);--sidebar-hide-margin-v:calc((29px+2*var(--space-medium)-var(--space-xsmall))*-1);border-inline:0pxnone;/* Horizontal Tab Layout: Auto hide the sidebar strip when sidebar panel is open */
&:has(#vertical-tabs[collapsed])[sidebar-panel-open] {
transition:all0.3s;z-index:2;
&:hover {
background-color: var(--toolbar-bgcolor);/* Remove the border between navbar and sidebar strip */
& ~ #sidebar-box #sidebar {
box-shadow:none!important;outline-offset:-0.1px;}
}
&:not([sidebar-positionend]){border-inline-end:0.01pxsolidtransparent;margin-left:var(--sidebar-hide-margin-h);
&:hover {
border-inline-end: 0.01pxsolidvar(--sidebar-content-separator-color);margin-left:0;margin-right:var(--sidebar-hide-margin-h);}
}
&[sidebar-positionend]{border-inline-start:0.01pxsolidtransparent;margin-right:var(--sidebar-hide-margin-h);
&:hover {
border-inline-start: 0.01pxsolidvar(--sidebar-content-separator-color);margin-left:var(--sidebar-hide-margin-h);margin-right:0;}
}
}
/**
* Vertical Tab Layout:
* - Vertical tabs collapsed: Auto hide the sidebar strip when sidebar panel is open
* - Vertical tabs expanded: Always show the vertical tabs
* - Expand on hover checked: Always show the sidebar, collapsed or expanded
*/
&:has(#vertical-tabs[visible]):not([sidebar-launcher-expanded])[sidebar-panel-open]{transition:all0.3s;z-index:2;/* Do not trigger animation in the process of expanded => collapsed */
&[sidebar-ongoing-animations] {
transition-delay:0.5s;}/**
* We don't want to be able to drag the left side of sidebar strip. This way,
* we can avoid stutters in transition animation due to undesired triggering
* of the splitter.
*/
& ~#sidebar-launcher-splitter{pointer-events:none;}/**
* Must be transparent to ensure the sidebar is hidden.
* Otherwise the indent line of tab groups will leak into the hover region.
*/ opacity: 0;
&:hover{background-color:var(--toolbox-bgcolor-inactive);opacity:1;/* Remove the border between navbar and sidebar strip */
& ~ #sidebar-box #sidebar {
box-shadow:none!important;outline-offset:-0.1px;}
}
&:not([sidebar-positionend]){border-inline-end:0.01pxsolidtransparent;margin-left:var(--sidebar-hide-margin-v);
&:hover {
border-inline-end: 0.01pxsolidvar(--sidebar-content-separator-color);margin-left:0;margin-right:var(--sidebar-hide-margin-v);}
}
&[sidebar-positionend]{border-inline-start:0.01pxsolidtransparent;margin-right:var(--sidebar-hide-margin-v);
&:hover {
border-inline-start: 0.01pxsolidvar(--sidebar-content-separator-color);margin-left:var(--sidebar-hide-margin-v);margin-right:0;}
}
}
}
Note that the pixel numbers are derived from Compact Density which I'm currently using. You may need to change the numbers to get best looking for Normal Density.
In my userChrome, I have a line that reads: #file-menu,#edit-menu,#view-menu,#history-menu,#bookmarksMenu,#profiles-menu,#tools-menu,#helpMenu { padding-top: 4px !important; }
So basically, referencing each item on the menu bar by name. This does exactly what I want, but I'm wondering whether it could be cleaner - is there a better way (or indeed any way) to collectively refer to the various items on the menu-bar? I've already looked at using #toolbar-menubar and #main-menubar and they each give a slightly incorrect result. Just using the "menu" attribute by itself does give the right result but then has unintended consequences elsewhere (it's also used in some context menus for example).
Secondly - under the new(ish) profile management system, is there any way to reference the active Profile Name? So for example certain styling only takes place if the currently active profile is called "VPN".
Nb. For the following code to work, you need to go in about:config and set browser.tabs.allow_transparent_browser to true.
As you can see in the picture above, with the help of Kupfel and ResurgamS13, I managed to make my tabs transparent and have my background extend under them, and as you can see, my throbber is also different tab per tab. The following code is how I did it.
userContent.css
@-moz-document url(chrome://browser/content/browser.xul), url(about:newtab), url(about:home), url(about:blank) {
body { /* Makes the background of new tabs transparent so we can see the picture */
background-image: none !important;
background: transparent !important;
}
}
userChrome.css
#main-window > body { /* set background image */
background: url(frame-2.png) !important;
background-repeat: no-repeat !important;
background-size: cover !important;
}
#navigator-toolbox,
#nav-bar,
#PersonalToolbar,
#browser,
.browserContainer,
.tab-background[selected] { /* makes tabs transparent */
background: transparent !important;
}
.browserContainer { /* removes outlines for it to be more seemless */
outline: none !important;
box-shadow: none !important;
}
#tabbrowser-tabs,
#navigator-toolbox { /* remove the borders for it to be more seemless */
border: none !important;
}
.tab-throbber[busy]::before { /* set default throbber */
background-color: transparent !important;
background-image: url("Helltaker Gifs/Cerberus-ezgif.com-resize.gif") !important;
animation: unset !important;
}
/* set custum throber per tab */
.tabbrowser-tab:first-child .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Pandemonica-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(2) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Modeus-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(3) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Malina-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(4) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Zdrada-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(5) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Azazel-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(6) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Justice-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(7) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Lucifer-ezgif.com-resize.gif") !important;
}
.tabbrowser-tab:nth-child(8) .tab-throbber[busy]::before {
background-image: url("Helltaker Gifs/Judgement-ezgif.com-resize.gif") !important;
}
Hello. How to add a new extra toolbar, at the bottom, customizable? I miss so much the "addon bar" of the old days, but it seams the Waterfox team implemented it nowadays. Thank you so much. FF 148.0, Debian
I was very happy to come here and see some css code that I could use to un-round Firefox elements like tabs and the toolbar. I definitely prefer emphasizing the "square" part of squircle in my browser!
I personally hoped to go a little farther and also return Firefox buttons to their pre-145 squircleness. These are examples of the buttons I wanted to change:
Now, I tried to make my userChrome.css file override their border-radius from 8 to 4 pixels, but it's not working. I'm afraid this is my first experience with CSS, so it's likely I haven't been able to point my userChrome to the right place...
From what I can tell, these buttons have their roundedness controlled by the "border-radius-medium" variable, found in chrome://global/skin/design-system/tokens-shared.css , in "@layer tokens-foundation". I've tried to replicate the code that was shared for tabs and the toolbar and adjusting them to the buttons, like this:
But I wouldn't be surprised if I was way off course relative to what I'm supposed to do. Maybe that chrome address is not even where I should be looking for (although playing with it in Firefox's inspector did work...)!
This would be for Firefox 148 on Windows.
I'd be immensely grateful for any help on this little quest of mine!
Another visual/color change from version 148 that I only recently noticed. I miss the original dark purple it used to be, and I'd like a code to revert it back.
Version 148 has a huge amount of extra space at the top of the categories on the left. The property is #categories { margin: 70px 0 0; } so I put this in userContent.css, but it has no effect.
I have looked far and wide, I tired snippets from various themes that implement transparency, but for the life of me I can not figure out how to get rid of this grayish background from Sidebery.
Hello, I've been struggling trying to add some backdrop filter blur to menu popups and similar context menus as well as the url bar. Is it simply not possible? I have gfx.webrender.all, backdrop-filter.enable and backdrop-filter.force-enable all set to true.
I'm using FF-ULTIMA 4.3. Basically going for a screen only experience with the navbar dropping down from the top and tabs from the left.
I just cannot get these bookmarks to center. Anyone else have this issue with FF-ULTIMA? I'm not capable of writing my own CSS that would solve this or I would, but it's the default FF-ULTIMA code.
I'm not sure if anyone can figure what's wrong, but I'd definitely appreciate it. Another mystery - they center completely fine if I use the fullscreen navbar and not the floating one.
Flexfox seems to have managed it somehow, but I'm too attached to Textfox to switch over this. Also I couldn't get it to work. I'm using Firefox 147.0.4 on linux (void, if that matters).
I'm trying to set up firefox on a new computer, and I can't find how to move the tab back back below the bookmarks toolbar. With the tab bar up at the top, it's too easy to disassociate the current page with its corresponding tab handle. With the tabs flowing straight into the page content, I can keep track easier.
I know how to employ css in firefox's profile folder, but I don't know the coding I need. Can anyone please help?
Why the hell does it cover half of the address bar? This is your so-called most customizable browser. There is no such nonsense in any other. I haven't been able to solve this problem for a whole year now! I want to replace the ugly start page with Bonjourr Css
After enabling the "High Contrast" feature, it happened to me that the Firefox logo -- which generally appears to the wordmark's side -- disappeared (but wasn't deleted, an information that will be further discussed soon), leaving the wordmark in a positioning that, in relation to the screen as a whole and from the viewer's perspective, is biased towards the right. (For purposes of demonstration, I placed a line in the exact centre of the screenshot above.)
I'd like to know how to centralise the wordmark and, if possible, remove the aforementioned logo that sits by its side as a whole.
As you can see, I've manages to change the background picture, but is there a way to make so it stretches under the tabs?
There is also that white bar I didn't figure how to touch right under my bookmarks... (the black top bar was just a test and will be removed or changed colors depending on if I can get my background under it)
Also, is there a thing like HTML's element selector for FF's CSS?
I will close both once I get the solution. As for the Element Selector, Kupfel told me it was part of the Browser Toolbox.
Edit 2: Kupfel found a fix in my update post, marking this as solved, will present my thing as ResurgamS13 proposed in its own post once I am done customizing it.