[!] GENERAL discussion, feedback, questions belong here! (v11)
Make sure you have updated your configuration to the most recent version of this projects files and are using the latest version of the "options" required by your Firefox version >before< reporting problems!
Continued from https://github.com/Aris-t2/CustomCSSforFx/issues/3, https://github.com/Aris-t2/CustomCSSforFx/issues/41, https://github.com/Aris-t2/CustomCSSforFx/issues/88, https://github.com/Aris-t2/CustomCSSforFx/issues/109, https://github.com/Aris-t2/CustomCSSforFx/issues/133, https://github.com/Aris-t2/CustomCSSforFx/issues/163, https://github.com/Aris-t2/CustomCSSforFx/issues/189, https://github.com/Aris-t2/CustomCSSforFx/issues/211, https://github.com/Aris-t2/CustomCSSforFx/issues/241 and https://github.com/Aris-t2/CustomCSSforFx/issues/273.
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.
Custom JS scripts to restore more classic features https://github.com/Aris-t2/CustomJSforFx
Things this project will not target/recreate
- a CTR like plugin/application to generate ready-to-use CSS
- curved tabs (thanks those are finally gone!)
- 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
- bookmarks toolbar at windows bottom is possible (simulated addon-bar)
- 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 (see 'custom JS scripts')
- preference/options window
- additional location bar
- favicon in location bars identity box (see 'custom JS scripts')
- moving menubar items to a different toolbar
- restart button (see 'custom JS scripts')
- ... many more
Hi Aris.
In theory yes, but do we really need that? We can force menuitems to use icons via CSS like mentioned above or does this not work for you?
Lol, nope, check the very first time I asked you that question, I said I'd tried the following and it was not working:
#bookmarksShowAll {
-moz-appearance: menuitem-iconic !important;
list-style-image: url("chrome://browser/skin/library.svg") !important;
-moz-image-region: auto !important; }
When I look at the DOM afterwards, the Moz-Appearance property is there, but it's striked; it says invalid property value. There is a Moz-Appearance property already in the browser applied to that menu entry, it's set to "menuitem" rather than "menuitem-iconic" and it ALSO is striked as invalid.
In the meantime, I was able to modify the Restart Menu script (thank you for that) and add the menuitem-iconic CLASS to the menu entry it creates, and I can then style it from inside the JS or from userChrome. I guess we can continue this in the general on CustomJSforFx? I can read JS (like I can read English) but I have no clue how to modify elements. Ideally we'd have a script that iterates over all the menus and entries and adds the iconic class, but that would be tricky. I'll settle for an example that adds the iconic class to #bookmarksShowAll and I'll do the rest. Is no one else missing the icons in our menus? lol.
Thank you. Best Regards,
Mozilla seems to have done everything possible to permit iconizing default menuitem or menu appearances (uaing CSS), but there are still other CSS hacks to achieve menu icons. You still have to "correct" menuitems hover color to match the one used by your OS theme.
Add code to userChrome.css or my_userChrome.css .
#bookmarksShowAll {
-moz-appearance: none !important;
background-image: url("./image/bookmarksMenu.png") !important;
background-repeat: no-repeat !important;
background-position: 6px !important;
padding-top: 2px !important;
padding-bottom: 2px !important;
}
#bookmarksShowAll:hover {
background-color: Highlight !important;
color: HighlightText !important;
}
Good day Aris.
I'm not sure why we cannot apply moz-appearance to the menus, and why the appearance that's built-in is also not allowed (i.e. "menuitem" striked out in DOM inspector). The browser is clearly applying an appearance, because your code above does not work if we do not set appearance to NONE. Everyone's got a big screen nowadays, saving 16 vertical pixels by hiding the menu (and making it ugly) is not worth it (unless you are a fan of the Firefox button.) But hey, Chrome does it so we gotta do it too! Funny how they got rid of Eye Candy (a masterpiece if you ask me) and now Google is adding Tab Groups to Chrome! Aping Chrome is not always a sure thing...
Lol, you are cheating with that CSS, using a background image! And it works too! ;-) And we can go further and make everything use the same highlight so it looks natural (with some padding bugs to be worked out later):
menu, menuitem {
-moz-appearance: none !important;
padding-top: 2px !important;
padding-bottom: 2px !important; }
menu:hover, menuitem:hover {
background-color: Highlight !important;
color: HighlightText !important; }
Alright, I can make a JS version and a CSS version. Thanks for your help! Maybe you'll like the icons and use them in your own menus ;-) This will take some time, I gotta work on setting-up other things in the browser first, like Containers and other webextensions. Once I've got it all ready I'll email the Menu Icons Plus guy and see if we can use his icons (it's a single image) for the missing stuff.
Best Regards Aris!
If you are interested in more CSS cheats, this might be somthing for you too:
#bookmarksShowAll::before {
display: block !important;
content: "" !important;
width: 16px !important;
height: 16px !important;
background-image: url("./image/bookmarksMenu.png") !important;
margin-inline-start: 6px !important;
}
#bookmarksShowAll .menu-text {
margin-inline-start: -22px !important; /* -(item width+margin) */
}
In this version you do not have to handle item/text hover colors.
Neat, this works even better ;-) I have no idea how it works, but it does. You seem to be inserting an element, tap tap tap over to w3schools.com -> Indeed you are! Wow, I did not know we could do this! And even if I did, it would not have occurred to me to use it. We can even do it this way:
#bookmarksShowAll::before {
display: block !important;
content: url("./image/bookmarksMenu.png") !important;
width: 16px !important;
height: 16px !important;
margin-inline-start: 6px !important; }
Wow, this is great! I'm wondering if I should do a JS version at all with this. It looks pretty solid, but lets see what issues I come-up against lol, I'm sure I'll find some menu element that's somehow different than the others, or that I cannot figure out how to address because it has no ID or something...
Well, thanks a bunch! Best Regards,
Hi Aris-t2.
Is there any CSS to remove expand search engine choice and search settings from about:home searchbar???

@TerekMoL
Add this to your userContent.css or my_userContent.css:
@-moz-document url(about:newtab), url(about:home) {
#searchSuggestionTable {
display: none !important;
}
}
I'm sorry if my next question violates your rules and doesn't mean to be discussed here.
When Firefox works with pref privacy.resistFingerprinting:true it opens the browser in the window 1000x891. Because of this, youtube displays the video player as in theatrical mode (but this is not):
Screenshot

Is there any way to do so it would be displayed as in old youtube layout?
Screenshot

Sorry, you have to ask Mozilla developers that question.
@TerekMoL Strange, my window size is "landscape" too and YouTube does not hide the right-hand side. You can tell Firefox to open in the size you want with the following lines in user.js (and you can also try letterboxing) ->
user_pref("privacy.window.maxInnerWidth", 1600); // 4502: Initial window size [FF55+] Width rounds down to 200s and height to 100s https://bugzilla.mozilla.org/1330882
user_pref("privacy.window.maxInnerHeight", 800); // 4502: Initial window size [FF55+] Width rounds down to 200s and height to 100s https://bugzilla.mozilla.org/1330882
user_pref("privacy.resistFingerprinting.letterboxing", true); // 4504: Enable RFP letterboxing [FF67+] https://bugzilla.mozilla.org/1407366 [HIDDEN PREF]
@Aris-t2 Good day.
This ::Before/::After trick is absolutely Brilliant! I am trying-out Temporary Containers. The addon adds a menu entry to bookmarks context menus, the label is "Open Bookmark in new temporary container tab." Could it be any longer?! No problem, let's use @Aris-t2's trick to re-Label that:
#_c607c8df-14a7-4f28-894f-29e8722976af_-menuitem-_open-bookmark-in-new-temporary-container-tab.menuitem-iconic label.menu-iconic-text { display: none !important; }
#_c607c8df-14a7-4f28-894f-29e8722976af_-menuitem-_open-bookmark-in-new-temporary-container-tab.menuitem-iconic::After {
display: block !important;
content: "Open in Tmp Container" !important;
margin-inline-start: -23px !important;
padding-inline-end: 2px;
}
This trick is just brilliant! I tried it with BEFORE but it would not let me select the label, the following didn't work for some reason, but no matter, I got it working with AFTER instead...
#_c607c8df-14a7-4f28-894f-29e8722976af_-menuitem-_open-bookmark-in-new-temporary-container-tab.menuitem-iconic label.menu-iconic-text::Before { blabla; }
Thanks again! I used to use a Menu-Editor AddOn to re-label stuff, and of course it no longer works, but I can now do it with CSS ;-) I hope I'm not going to run into issues adding icons to the menus like this where ::Before refuses to work unless I target an element with it's ID - I'm bound to find a menu entry that has no ID. I used Copy-Path (above) in DOM Inspector, so the path I tried with BEFORE should've worked. I'm still no CSS expert lol.
To All,
There was talk of placing items (icons) in the MenuBar recently I think? Anyway, I usually place the Weather icon at the end of the MenuBar - At the right edge of the Firefox window, with a Flex space before it. This was no longer working, the icon would only move to the middle of the window. That's because there is an invisible flexible "spacer" sitting after the Menu in the MenuBar. Get rid of it and you can place items as you like again:
#menubar-items+spacer { display: none !important; }
Best Regards,
@Aris-t2 The tab scroll buttons are missing in my profile. Any idea why could this happen and how to restore them? I tried enabling and disabling /* Tab scroll buttons position - [only use one at a time] but still did not make any changes
Post a screenshot.
What i mean is that the < and > buttons are missing
Mine

Blank profile

And yes I have more than enough tabs open for the < and > buttons to appear
Funny how I only pop in around FF releases, coincidence? Anyways, with FF 78.0 they added a new context menu and placed all those "undo multiple tab" options in a sub-menu, anyway to undo this change? I find having to now do two clicks instead of the previous one a rather dumb change by Mozilla, but you know Mozilla.
@rayman89 Test with default setup of this projects files. I can not reproduce your issue.
@ImSpecial CSS can not move menuitems other menus or menu areas.
Hi @Aris-t2 !
Is that possible to change the white color of this bar from download small window?
Hi there, I just installed Firefox 78.0.1 ESR and "Classic CSS tweaks for Firefox Quantum v3.1.6". The bookmarks menu and all items on it are white. I'd like it to be grey, like before. Any ideas how to make that happen?
This does not work: /* Fix appearance of bookmark items. */ #BMB_bookmarksPopup menu, #BMB_bookmarksPopup menuitem { -moz-appearance: menuitem !important; padding: 0 0px !important; margin-top: 2px !important; margin-bottom: -2px !important; min-height: unset !important; height: 12px !important; background-color: rgb(235,235,235) !important; }
Thank you!
@Achille-Grs
Unfortunately I have no idea why the code for this does not work anymore. The correct CSS is:
#placesToolbox,
#placesToolbar {
-moz-appearance: none !important;
background: red !important;
}
IDs/classes can be found inside places.xhtml or organizer.css.
@Csimbi
-moz-appearance: menuitem !important; is not supported anymore. You have to work around this:
#BMB_bookmarksPopup :-moz-any(menu, menuitem) {
-moz-appearance: none !important;
padding: 0 0px !important;
margin-top: 2px !important;
margin-bottom: -2px !important;
min-height: unset !important;
height: 12px !important;
color: black !important;
background-color: rgb(235,235,235) !important;
}
#BMB_bookmarksPopup :-moz-any(menu, menuitem):-moz-any(:hover, :active) {
color: HighlightText !important;
background-color: Highlight !important;
}