CustomCSSforFx icon indicating copy to clipboard operation
CustomCSSforFx copied to clipboard

General discussions, feedback, questions belong here (v1, v2 -outdated- use v3)

Open Aris-t2 opened this issue 9 years ago • 211 comments

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 makes CSS code Firefox 57+ ready? 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)
  • old search (some things are not compatible to Fx 57+)
  • 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

Aris-t2 avatar Oct 08 '17 16:10 Aris-t2

Can I possible modify about:(...) pages with userContent.css file?

reuk334 avatar Oct 09 '17 07:10 reuk334

Yes, guess this is doable. It would be great if Aris has plans to add such functionality in future. To be precise I'm interested in about:addons tweaks:

  • always view recent updates #category-recentUpdates[disabled] { opacity: 1 !important; min-height: 48px !important; }
  • compact view for the page

Acid-Crash avatar Oct 09 '17 08:10 Acid-Crash

I was under the impression about:... pages were not changeable in Firefox 57+, but it seems I was wrong. Thanks for the info.

Aris-t2 avatar Oct 09 '17 09:10 Aris-t2

Happy to Help, Aris I had some issues with them too. Guess it was because i used @namespace url(http://www.w3.org/1999/xhtml); instead of @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

Anyways currently this one works fine for me.

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url-prefix(chrome://mozapps/content/extensions/extensions.xul), url-prefix(about:addons) {

#category-recentUpdates[disabled] {
    opacity: 1 !important;
    min-height: 48px !important;
}
#category-discover {visibility: collapse !important;}
.addon {counter-increment: addoncount !important; content: counter(addoncount) !important;}
.addon:first-child {counter-reset: addoncount !important;}
.addon[active="false"] {counter-increment: disabled !important;}
#addon-list:after {
    display: block !important;
    width: 120px !important;
    content: "[ "counter(addoncount)" Включено | "counter(disabled)" Отключено ]" !important;
    color: #444444 !important;
    text-align: center !important;
    white-space: nowrap !important;
    position: fixed !important;
    top: 11px !important;
    left: calc(50% - 112px) !important;
    cursor: default;}
}

Acid-Crash avatar Oct 09 '17 10:10 Acid-Crash

I'm currently looking into CTRs alternative appearances for about:addons and about:preferences. Not only most of the code is portable, some other nice stuff is possible too.

v

Aris-t2 avatar Oct 09 '17 11:10 Aris-t2

Maybe change search positon in settings (about:preferences), I propose tests:

/* search in right top corner */
	.search-container {
	  background: transparent !important;
	  position: fixed !important;
	  width: auto !important;
	  top: 60px !important;
	  z-index: 1 !important;
	  right: 60px !important;
	}

/* repair margin after change position search box */	
	.pane-container {
	  margin: 30px 0 0 0 !important;
	}
big window smaller window
big window smaller window

reuk334 avatar Oct 10 '17 06:10 reuk334

To be honest, the search box overlay bugs me. Its kind of annoying, that is actually can overlap with pages content. I think a better approach is keeping it as contents first "item" and make it disappear while scrolling, so it becomes a default page item like everything else.

.search-container {
  background: transparent !important;
  position: absolute !important;
  top: 20px !important;
}

prefs

Further more I will tweak the small window case so content and search box are still visible even on smaller windows. Currently small width corrupts/moves some areas the way they should not.

Aris-t2 avatar Oct 10 '17 09:10 Aris-t2

Hi Aris, Do you have any plans on adding Australias style (default-one from FF56) module for tabs? Also could you give some details whether number of included @import url(.*.css) inside userCrome.css affects browser speed in any way?

Acid-Crash avatar Oct 11 '17 10:10 Acid-Crash

I have no plans to work on curved tabs, I'm glad they are gone. ;-) They were the main reason I started to work on CTR back then.

No idea about how or if many imports have an affect on browsers speed/performance issue. Testing in Portable Firefox on a very old slow usb 1.1 stick might give some insight, if anyone wants to test.

Aris-t2 avatar Oct 11 '17 12:10 Aris-t2

Aris, great work as always. How hide the separator near to hamburger icon in 57+?

happysurf avatar Oct 12 '17 13:10 happysurf

I will add the code to next update.

#PanelUI-button {
  margin-inline-start: 0px !important;
  border-inline-start: 0px solid !important;
  border-image: unset !important;
  border-image-slice: 0 !important;
}

Aris-t2 avatar Oct 12 '17 14:10 Aris-t2

Hi Aris, I have I minor suggestion regarding classic_button_appearance_on_navbar. Current module adds squared style buttons to navbar. CTB offered an option to make those buttons rectangular. navbarbuttons

Maybe you consider adding some more customization for those buttons (aka additional module to make them rectangular instead of squared) P.S. Button height is totally fine here perfectly matched with addressbar

Acid-Crash avatar Oct 12 '17 20:10 Acid-Crash

Other interesting codes to add that I use:

/* Find Bar on top */ .browserContainer findbar, #viewSource #FindToolbar { -moz-box-ordinal-group: 0; width: 100% !important; }

/* Global text size UI */ * { font-size: 10pt !important; }

/* Active tab text in bold */ .tabbrowser-tab[selected="true"] { font-weight: bold !important; }

happysurf avatar Oct 13 '17 05:10 happysurf

Aris, is possible make in bold or change the color of the host in Location Bar?

host

happysurf avatar Oct 13 '17 05:10 happysurf

@Acid-Crash I will look into it. EDIT The main problem with modifying button appearance is still even in Firefox57+ the non-standardized button appearance for all toolbar buttons. We have buttons with and without badges, we have buttons with special indicator cases like downloads button, action buttons, WebExtension buttons, which Firefox is handling differently compared to default buttons... Creating such a toolbar buttons CSS modification would mean to take care of many buttons individually. I will add experimental code, but can't promise it will work for all buttons.

@happysurf

  • there is a short findbar on top css file in this collection ( https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/css/generalui/findbar_on_top.css ). I can add code inside that file users can "enable optionally" to increase findbars width to full window width.

  • setting a global font size for everything might break the appearance of some items, that rely on default font size. Appbutton in titlebar would need adjustment. Too high font values for tab text would break squared tabs appearance, button badges (uBlock Origin) look weird etc.. Maybe something like:

* {
  font-size: 10pt !important;
}
#PanelUI-button, #PanelUI-button * {
  font-size: 12px !important;
}
.toolbarbutton-badge-stack .toolbarbutton-badge{
  font-size: 10px !important;
}
  • tab text settings got recently added to this collection ( https://github.com/Aris-t2/CustomCSSforFx/blob/master/classic/css/tabs/custom_text_settings.css )

  • CSS can not identify parts of url text on the whole url

Aris-t2 avatar Oct 13 '17 06:10 Aris-t2

here is the code to set a custom location bar background color (will be added to this collection):

Thank you for reply but I don't want change the background but only the host text, in my screenshot is github.com.

happysurf avatar Oct 13 '17 07:10 happysurf

Noticed that, edited message afterwards. ;-)

Aris-t2 avatar Oct 13 '17 07:10 Aris-t2

@Aris-t2. Thx for the update regarding those buttons. Experimental code will do. On the other hand I totally agree that if 2-4 pixels increase requires major changes and constant oversight for other buttons, it doesn't worth it so I will not be so sad about it.

@happysurf If you need to get rig of that light gray color for the domain part, you could flip browser.urlbar.formatting.enabled in about:config

Acid-Crash avatar Oct 13 '17 14:10 Acid-Crash

An other useless separator that take too much space in Location Bar when the Reader View is available. Will be great hide the separator and move the Reader icon more close to the dots.

Inactive: separator2

On mouse over: separator

happysurf avatar Oct 14 '17 08:10 happysurf

#urlbar-container #pageActionSeparator{
  visibility: collapse !important;
}

Aris-t2 avatar Oct 15 '17 15:10 Aris-t2