General discussions, feedback, questions belong here (v3)
Continued from here https://github.com/Aris-t2/CustomCSSforFx/issues/3 and here https://github.com/Aris-t2/CustomCSSforFx/issues/41
Instead of opening new "issues" for general talk we can use this area for discussions, feedback and questions. Open new "issues" for real bugs and problems.
Trying to make CSS code ready for Firefox Photon (57+)?
Remove all @namespace references. They are the reason, if your code refuses to work.
Application/hamburger button in tabs toolbar? Look here: #46
Things this project will not target/recreate
- curved tabs
- old complete themes
- ...
Things not possible with CSS
- more toolbars like add-on/status bar (CSS can not create new toolbars)
- displaying full sized status popup below window content is possible
- moving bookmarks toolbar to windows bottom is possible
- new buttons (CSS can not create new buttons)
- additional menuitems (CSS can not create new items)
- custom/new/different functions for buttons/menuitems/menus
- activity indicator
- preferences window
- additional location bar
- favicon in location bar
- moving menubar items to a different toolbar
- restart button
- ... many more
Your mod for the overflow add-ons was great but it requires being selective with add-ons. Some add-ons need more width to fully function. Poisencity post a wider horizontal alternative on Reddit/FirefoxCSS that includes the search bar.
I made a few small px tweaks. When customizing, the overflow drop tray is ugly and icons must be dropped at the top of the tray. Search bar should be first, at top.
overflow_menu_horizontal.zip
I tried modifying bookmarks_toolbar_multiple_lines.css. by replacing both "999px" values with "78px" to get 3 lines of bookmarks on the toolbar. I continued to have only one row. Then I downloaded and installed version 1.5.0.1 and I still only have one row. Before I upgraded to Firefox 57 I had 3 rows. When I installed 57 it gave me one row and the other bookmarks are on the bookmark overflow line. What am I doing wrong?
@Pizzapops I have added an own version of this as a new option. It is just a simple line and not a grid with fixed values, because this would be too complicated to adjust for every OS / OS theme. Anyway this "feature" was not meant to work with all buttons especially those, that offer sub menus.
@radiotech1
Backup and remove your current code from chrome folder.
Download and extract v1.5.1 https://github.com/Aris-t2/CustomCSSforFx/releases and only edit one line in userChrome.css to enable multiline bookmarks. Does it work now?
If you edit 1.5.1s bookmarks_toolbar_multiple_lines.css file and change
:root {
--bookmark_items_height: 26px;
--bookmark_items_lines: 3;
}
to
:root {
--bookmark_items_height: 999px;
--bookmark_items_lines: 1;
}
it will behave like in previous builds (if you need to test this).
Make sure you are not trying to combine "multiple bookmarks lines" and "simulated add-on bar" option.
I edited userChome.css for multilines and I now have about 12 rows of Bookmarks and I cant change them. When I modified bookmarks_toolbar_multiple_lines.css with the above code, I still have the 12 rows, but the actual web page content has no room to display. I see the top of them at the bottom of the window and the window is mostly all white.
Ok I went back to the original bookmarks_toolbar_multiple_lines.css and then edited the bookmarks by creating a new folder. It let me move the bookmarks from rows 4-12 in this new folder and I ended up with 3 rows. So I tried creating more book marks and instead of having the overflow chevron on the right it started making a new row of bookmarks.
Consider a persona based sidebar option. There is no perfect way to do it without themes containing a dedicated graphic. I use solid color themes with my persona_sidebar.css is OK. It is a modified dark sidebar (found elsewhere). Using the footer graphic for the background works most of the time.
background-image: var(--lwt-footer-image) !important;
background-size: cover;
background-repeat: no-repeat !important;
I still have to pull in the theme font colors. I may post it after some more polish.
@radiotech1 Sorry, I don't know how to help you. The code works fine here on every system I tested. Post a screenshot.
@Pizzapops Personas top/bottom background images are way to small for the sidebars, aren't they?
After installing Firefox Quantum (portable) did some experiments with CustomCSS and I've pretty much replicated my old-school firefox view (I'm using win7 classic theme). It is indeed much faster, and there are already major addons available that I need, however, I'm still waiting for stuff like Flashgot, Tab Mix Plus, Scrapbook, Add bookmark here 2, Add to Search etc. It turned out better than I expected, I decided to stay on 52ESR for now, but I'm pretty positive about eventual move to Quantum. Thank you for your great work.
@Aris-t2 Yes, the top and bottom backgrounds are the wrong size for the sidebar. Solids can be manipulated to work without looking ugly. There are lot of themes that should be purged from the Firefox system.
My modified working FxQ59
@Aris-t2
- Apparently I do not count as contributor, hence short answer here: In issue #41, comment-350507118
All toolbar jump like this without "appbutton in titlebar" or this projects files in general too, don't they? Once another bar is present everything has to move
Now that you tell it …
- How about adding support for tabs just loading (busy tabs) in
custom_text_settings.css, maybe commented, but present? My actual code is derived from your’s for other tab states:
.tabbrowser-tab[busy="true"] .tab-label {
color: #9933CC !important;
font-style: italic !important;
font-weight: initial !important;
text-shadow: 0px 1px 0px #FFCCFF, 0px 1px 4px #FFCCFF !important;
}
Set after the rule for active tabs it works also for them, and just for these I added the font-weight: initial rule, because these are set in bold weight.
- My original goal was to add an animation in the tabline for busy tabs, but I am not able to get it visible for unselected tabs (when loading in background). Do you have an idea? I tried to overwrite the browser rule (for testing without
busy):
.tab-line:not([selected="true"]) {
opacity: 1 !important;
transform: none !important;
}
This is also the style for hovered tabs where it works.
is there any way to integrate curved tabs like this https://github.com/wilfredwee/photon-australis into this and it be below the content?
@Pizzapops Your configuration looks great. There is no way to distinguish between "light" and "dark" lw-themes for "tree entries / bookmarks" or at least I have not found one. Switching between different lw-themes has no effect on sidebars text color. I believe bookmarks/history content does not or can not check lw-theme states, so we only can change the background and top button label based automatically based on lw-theme. Everything else has to be done manually for light and dark lw-themes.
Edit: I ran some tests and the only "solution" I can currently come up with is adding two different files for sidebar lw-themes, one for dark and one for bright themes.
@Speravir
- What exactly are you referring to?
- I can add "busy" rules to that file.
- I went through the code like a berserker and created this monster example. I hope it helps you find a perfect solution (most code is probably not needed):
.tabbrowser-tab:not([busy="true"]):not(:hover) > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab:not([busy="true"]):hover > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab:not([busy="true"]) > .tab-stack > .tab-background > .tab-line[selected=true],
.tabbrowser-tab:not([busy="true"]) > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab:not([busy="true"]) > .tab-stack > .tab-background > .tab-line {
height: 2px !important;
opacity: 1 !important;
transform: unset !important;
transition: unset !important;
}
.tabbrowser-tab[busy="true"]:not(:hover) > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab[busy="true"]:hover > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab[busy="true"] > .tab-stack > .tab-background > .tab-line[selected=true],
.tabbrowser-tab[busy="true"] > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab[busy="true"] > .tab-stack > .tab-background > .tab-line {
height: 2px !important;
opacity: 1 !important;
transform: scaleX(0) !important;
transition: transform 2500ms var(--animation-easing-function), opacity 2500ms var(--animation-easing-function) !important;
}
.tabbrowser-tab > .tab-stack > .tab-background > .tab-line[selected=true] {
background-color: green !important;
}
.tabbrowser-tab:not(:hover) > .tab-stack > .tab-background > .tab-line:not([selected=true]),
.tabbrowser-tab:hover > .tab-stack > .tab-background > .tab-line:not([selected=true]) {
background-color: red !important;
}
@aflove65 Sorry, curved tabs won't be part of this project, but you can copy&paste their code in userChrome.css or my_userChrome.css of this project. Unset this projects squared tabs first.
Sorry, curved tabs won't be part of this project, but you can copy&paste their code in userChrome.css or my_userChrome.css of this project. Unset this projects squared tabs first.
@aflove65: ⚠️
Dark compact theme example:
| Active | hover |
|---|---|
![]() |
![]() |
Maybe use, because better contrast compared to "classic squared tabs".
What exactly are you referring to?
I thought I cited what I referred to, but it’s not that important: It was about the small content jump when activating the menu.
I went through the code like a berserker and created this monster example. I hope it helps you find a perfect solution (most code is probably not needed)
Whoa, this is awesome, you are awesome! May I have been successful myself if I had thought of unset? :-) Now I just have to do some fine tuning (I am really only interested in adding something for busy tabs). You could nonetheless after your investigation add this as style file.
Update: For busy tabs the following is enough (the height could be omitted because I didn’t change it) – with animation instead of transition.
.tabbrowser-tab:not([busy="true"]) > .tab-stack > .tab-background > .tab-line:not([selected="true"]) {
opacity: 1 !important;
transform: unset !important;
transition: unset !important;
}
@keyframes busytabs {
from { transform: scaleX(1); }
to { transform: scaleX(100); }
}
.tabbrowser-tab[busy="true"]:not(:hover) > .tab-stack > .tab-background > .tab-line:not([selected="true"]),
.tabbrowser-tab[busy="true"]:hover > .tab-stack > .tab-background > .tab-line:not([selected="true"]),
.tabbrowser-tab[busy="true"] > .tab-stack > .tab-background > .tab-line[selected="true"],
.tabbrowser-tab[busy="true"] > .tab-stack > .tab-background > .tab-line:not([selected="true"]),
.tabbrowser-tab[busy="true"] > .tab-stack > .tab-background > .tab-line {
background-color: #0033FF !important;
background-image: linear-gradient(to right, transparent 49%, #CCFFFF 50%, transparent 51%) !important;
animation: busytabs 1s infinite linear alternate !important;
}
The scale factor scaleX(100) has to be adjusted to the width of the linear gradient (the wider the less scale factor). The colours are a matter of taste and depending on the environment, of course. Originally I wanted a moving linear gradient, but this is not possible, because they are not considered an animatable property.
(End of update.)
Regarding fine tuning: This would be one-time hard work for you, but how about adding a style file with lots of variables that will be imported first. These variables then are all over the styles used.
With hard work I mean beside the pure typing thinking of good variable names, commenting these and replacing values where needed.
Another thing that probably would need adjustment: For better delimitation *) I have added some border on top and on bottom of main content:
#content {
border-top: 2px groove var(--tab-line-color) !important;
border-bottom: 2px ridge var(--tab-line-color) !important;
}
This looks good here with the light theme I use, but presumably not with the dark theme and other light themes. Also for the default without a statusbar the bottom border probably not should be added.
*) Especially when accidentally the web content has similar colours like the top bars it can be hard to differentiate (I had this case and got the idea then).
And almost forgotten: You could add an optional top border roundness for default tabs, of course only useful, if the border style is activated, but then it looks good, I think. I copied the code from your squared tabs styles, but made the radius slightly bigger, because this looks better in my eyes for default tabs because of the tab line:
/* tab top border roundness */
#TabsToolbar .tabs-newtab-button,
#TabsToolbar .tabbrowser-tab,
#TabsToolbar .tabbrowser-tab .tab-stack,
#TabsToolbar .tabbrowser-tab .tab-background,
#TabsToolbar .tabbrowser-tab .tab-content {
border-top-left-radius: 5px !important;
border-top-right-radius: 5px !important;
}
@import url(./css/aboutaddons/addonlists_show_addon_version_number.css);
## Just one line in my own file userContent.css
## I had just discover the other file userChrome.css and for now it seem's to work fine.
Do you have one trouble on the page about:addons ? Because I can't load it (entirely with Firefox_v58 and that's the reason ?)... In fact, I don't see my list of addons (totally white or empty). Do you have an idea to correct it ?
PS : Does it exist (one anchor HTML) ? At least, it seem's to be true about:addons#Extensions (for Cyberfox and not Firefox. Unless it's another bug ?).
@Speravir Wasn't that 'line jump' fixed on on of the last releases? The only 'jump' I saw was with 'tabs below titlebar' option and I fixed it (at least for me).
Good you figured out the optimal 'tab busy' configuration for you.
I will add global configuration files for tab and toolbar color settings and more, so we can get rig of all the extra files *_aero.css, *_classic_grey.css etc. Only one file per color has to be imported and it affects all areas like tabs, general toolbars, tabs not on top mode, tabs below content mode etc.
The additional 2px above and below #content may be good for some rare cases, but in general they create an unnecessary gap.
Tab top border roundness for 'default tabs' sound like a good thing to add.
@WagnerGMD Did you also copy the correct xml file? The mentioned css files binds the code in /smladdonversion_fx57.xml/ and if it is missing, you break the add-ons manager. Make sure you have extracted all files from zip archive to /chrome/ folder correctly.
can someone knows how to fixed about:blank it look like this white shit.
On 14 December 2017 at 11:47, Aris [email protected] wrote:
@Speravir https://github.com/speravir Wasn't that 'line jump' fixed on on of the last releases? The only 'jump' I saw was with 'tabs below titlebar' option and I fixed it (at least for me).
Good you figured out the optimal 'tab busy' configuration for you.
I will add global configuration files for tab and toolbar color settings and more, so we can get rig of all the extra files *_aero.css, *_classic_grey.css etc. Only one file per color has to be imported and it affects all areas like tabs, general toolbars, tabs not on top mode, tabs below content mode etc.
The additional 2px above and below #content may be good for some rare cases, but in general they create an unnecessary gap.
Tab top border roundness for 'default tabs' sound like a good thing to add.
@WagnerGMD https://github.com/wagnergmd Did you also copy the correct xml file? The mentioned css files binds the code in /smladdonversion_fx57.xml/ and if it is missing, you break the add-ons manager. Make sure you have extracted all files from zip archive to /chrome/ folder correctly.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Aris-t2/CustomCSSforFx/issues/88#issuecomment-351633499, or mute the thread https://github.com/notifications/unsubscribe-auth/ANXvJbfnclW-TXT2FOmX02kVc6svBAtQks5tANKUgaJpZM4Q8efO .
@LionWrathz How is it supposed to look? It was white even before Firefox 57 release.
Add this to your userContent.css to change its color:
@-moz-document url-prefix(about:blank) {
* {
background: red !important;
}
}
it supposed to be like this when you open a new-tab completely transparent about blank i run this code on ff6 now its gone
- the addons
https://addons.mozilla.org/en-US/firefox/addon/blank-new-tab/?src=api
@namespace url("
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @media all and (-moz-windows-compositor) { #main-window[stylish-url="about:blank"]: not([onclose="PrintUtils.exitPrintPreview(); return false;"]) #content browser { opacity: 0 !important; background-color: transparent !important; }
#main-window[stylish-url="about:blank"]:not([onclose="PrintUtils.exitPrintPreview(); return false;"]) #content { background-color: rgba(255, 255, 127, .0) !important; } #appcontent, #content> tabbox> tabpanels { background-color: transparent !important; } }
v1.1 fixed
@namespace url("
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @media all and (-moz-windows-compositor) {
#main-window[stylish-url="about:blank"]:not([onclose="PrintUtils.exitPrintPreview(); return false;"]) #content browser { opacity: 0 !important; background-color: transparent !important; }
#main-window[stylish-url="about:blank"]:not([onclose="PrintUtils.exitPrintPreview(); return false;"]) #content { background-color: rgba(255, 255, 127, .0) !important; } #appcontent, #content> tabbox> tabpanels { background-color: transparent !important; } }
am using this now ''only'' when the pages is loading.
/iMacro Sidebar/ #im-tabs,.tabs-right,#Recorder,#treeview,#boxlistbox ,#replaystat,#im-tabpanels,#im-play-button-decoration,#im-record-button-decoration { background-color: transparent !important; color: white /<--custom color*/!important; text-shadow: 0px 0px 6px white, 0px 0px 6px white, 0px 0px 6px white !important; -moz-appearance: -moz-win-glass !important; } /* About blank:Aero - opacity: 0.1 = aero*/ #content, #appcontent, #content > tabbox > tabpanels { background-color: transparent !important; }
+Aeroglass
On 14 December 2017 at 13:28, Aris [email protected] wrote:
@LionWrathz https://github.com/lionwrathz How is it supposed to look? It was white even before Firefox 57 release.
Add this to your userContent.css to change its color:
@-moz-document url-prefix(about:blank) { * { background: red !important; } }
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Aris-t2/CustomCSSforFx/issues/88#issuecomment-351655730, or mute the thread https://github.com/notifications/unsubscribe-auth/ANXvJXZGktnPYNU17NZfKJCRPIIpd5Ctks5tAOoogaJpZM4Q8efO .
There was no way we could now you were talking about old add-ons. It sounded like something was broken, but this is not the case.
Old add-ons are gone and so is the code based on them. There is no Stylish for userChrome/DOM anymore, your code won't work.
I did some experiments with something without Stylish, but the code does not always work properly, because we can not determine about:blank/about:newtab/about:home on root/toolbar/tab level. There is no workaround I know of. Look here to see what is possible with experimental code: https://github.com/Aris-t2/CustomCSSforFx/issues/41#issuecomment-348975472
Never heard of iMacro sidebar. I doubt it works in Firefox 57+.

