[Ext] Classic Theme Restorer

Announce and Discuss the Latest Theme and Extension Releases.
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: [Ext] Classic Theme Restorer

Post by Aris »

That is not possible with CSS.

You would have to exclude first item (a) from a code on a condition the following item (b) has, but one can only apply code in CSS like this:
a {...} or a+b {...} where code for item b gets applied on a condition (a) has or offers.

From what I see is you trying to make the first "search" item visible, if the following items are hidden/collapsed, but there is no was apply code like this.

Think of another example. If something like that would be possible, we could have stuff like "set nav-bar bg color to blue", if downloads button is visible and set it to green else.
-> Not possible.
spideymouse
Posts: 16
Joined: January 9th, 2014, 9:10 am

Re: [Ext] Classic Theme Restorer

Post by spideymouse »

Aris wrote:That is not possible with CSS.

You would have to exclude first item (a) from a code on a condition the following item (b) has, but one can only apply code in CSS like this:
a {...} or a+b {...} where code for item b gets applied on a condition (a) has or offers.

From what I see is you trying to make the first "search" item visible, if the following items are hidden/collapsed, but there is no was apply code like this.

Think of another example. If something like that would be possible, we could have stuff like "set nav-bar bg color to blue", if downloads button is visible and set it to green else.
-> Not possible.
I think it may be possible! By calling on the height of the parent #autocomplete-richlistbox, one can check whether there is only one visible .autocomplete-richlistitem or not. See below:

Code: Select all

#PopupAutoCompleteRichResult .autocomplete-richlistbox:not([style="height: 38px;"]) .autocomplete-richlistitem[ac-comment="Google"]:first-of-type
{
  display: none !important;
}
Note that the height of a one-line box may vary depending on the user's font settings (for me, it is 38px). Also, a possibly undesirable effect is that the box will have an empty space at the bottom of the list, given that the top item is removed without changing the height of the box. Lastly, even though the "Search with Google" is hidden, it is still the first action that is taken when pressing Enter; one must still arrow down to get to the history matches.
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: [Ext] Classic Theme Restorer

Post by Aris »

That might be a solution indeed.
Lastly, even though the "Search with Google" is hidden, it is still the first action that is taken when pressing Enter; one must still arrow down to get to the history matches.
This happens, because the items are not really gone, they are only hidden.
bmaz121
Posts: 3
Joined: November 16th, 2017, 11:21 am

Re: [Ext] Classic Theme Restorer

Post by bmaz121 »

All I would like to know is I downloaded the zip now how do I install it in Waterfox?
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: [Ext] Classic Theme Restorer

Post by Aris »

You can use Classic Theme Restorer with Waterfox: https://github.com/Aris-t2/ClassicTheme ... r/releases
The CustomCSSforFx package is of Firefox.
User avatar
Melchior82
Posts: 97
Joined: December 10th, 2008, 11:43 pm
Location: NH, USA

Re: [Ext] Classic Theme Restorer

Post by Melchior82 »

Aris wrote:You can use Classic Theme Restorer with Waterfox: https://github.com/Aris-t2/ClassicTheme ... r/releases
The CustomCSSforFx package is of Firefox.
except Waterfox has been such a crash happy for me I gave up for now..
its frequent crashing destabilized my whole system causing BSODs...
User avatar
Melchior82
Posts: 97
Joined: December 10th, 2008, 11:43 pm
Location: NH, USA

Re: [Ext] Classic Theme Restorer

Post by Melchior82 »

bmaz121 wrote:All I would like to know is I downloaded the zip now how do I install it in Waterfox?
use the little gear on the top right of the addon manager screen to "Install Add-on from file" or just drag and drop the file to that addon manager screen...

ps: the addon file has to be .xpi to install correctly...
avada
Posts: 1932
Joined: February 10th, 2008, 6:30 am
Location: Hungary

Re: [Ext] Classic Theme Restorer

Post by avada »

Hi!

Quick question: If I want to have elements in the (de facto) titlebar, I have to disable the titlebar proper and add a custom toolbar? How do I reposition it? (It's the bottom-most for me)
(Is there a movable replacement element for the page title text?)
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: [Ext] Classic Theme Restorer

Post by Aris »

You can't have your own custom items in the titlebar. CTR adds a button there using Javascript (also possible with CSS rule position: absolute). Same applies to the tab title CTRs puts there. You can't move your toolbar buttons there.
avada
Posts: 1932
Joined: February 10th, 2008, 6:30 am
Location: Hungary

Re: [Ext] Classic Theme Restorer

Post by avada »

Aris wrote:You can't have your own custom items in the titlebar. CTR adds a button there using Javascript (also possible with CSS rule position: absolute). Same applies to the tab title CTRs puts there. You can't move your toolbar buttons there.
But if I disable the titlebar, the menubar becomes the titlebar, in practice. I guess because it's the topmost. But I don't want all that stuff in the titlebar. Is there no way to move a custom toolbar to the top? (Now I see that disabling the titlebar in layout editing mode is the same as CTR's use Firefox titlebar option.)
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] Classic Theme Restorer

Post by Brummelchen »

is there code for the new about:config available? eg lower rows or smaller font?

Code: Select all

chrome://browser/content/aboutconfig/aboutconfig.css
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: [Ext] Classic Theme Restorer

Post by Aris »

I will offer an option for that on next update:

Preview: http://imagehost.cc/image/MftKB
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] Classic Theme Restorer

Post by Brummelchen »

nice.

can i use

Code: Select all

:root {html|#prefs{}}
?
or does it need
*|*:root
?

something i like to use:

Code: Select all

#prefs > tr.has-user-value > th[scope="row"],
#prefs > tr.has-user-value > td.cell-value
{
    background-color: #ff800080;
}

#prefs > tr > td.cell-edit > button
{
    background-color: #00800080;
}

#prefs > tr > td.cell-edit > .button-edit
{
    background-color: #ff8000b0;
}

#prefs > tr > td.cell-edit > .button-toggle
{
    background-color: #0000c080;
}

#prefs > tr.has-user-value > td.cell-reset > .button-reset
{
    background-color: #00800080;
}
User avatar
Aris
Posts: 3248
Joined: February 27th, 2011, 10:14 am

Re: [Ext] Classic Theme Restorer

Post by Aris »

I used this:

Code: Select all

@-moz-document url-prefix(about:config) {

	.config-background #prefs,
	.config-background #prefs * {
	  min-height: unset !important;
	  padding: unset !important;
	  margin: unset !important;
	  font-size: unset !important;
	}

	.config-background #prefs button {
	  -moz-margin-start: 1px !important;
	}

	.config-background #prefs #form-edit > * {
	  -moz-margin-end: 2px !important;
	}

	.config-background #search-container * {
	  min-height: unset !important;
	  font-size: unset !important;
	  padding-top: unset !important;
	  padding-bottom: unset !important;
	  margin-top: unset !important;
	  margin-bottom: unset !important;
	}

	.config-background #search-container {
	  padding: 4px !important;
	}

}
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] Classic Theme Restorer

Post by Brummelchen »

Code: Select all

@-moz-document url-prefix(about:config) {
this would have missed, not familiar with it

Kudos for you.

edit
sorry, do not work here, reason unknown

Code: Select all

/*AGENT_SHEET*/

@import url(./aboutconfig.css);

Code: Select all

@-moz-document url-prefix(about:config) {

   .config-background #prefs,
   .config-background #prefs * {
     min-height: unset !important;
     padding: unset !important;
     margin: unset !important;
     font-size: unset !important;
   }

   .config-background #prefs button {
     -moz-margin-start: 1px !important;
   }

   .config-background #prefs #form-edit > * {
     -moz-margin-end: 2px !important;
   }

   .config-background #search-container * {
     min-height: unset !important;
     font-size: unset !important;
     padding-top: unset !important;
     padding-bottom: unset !important;
     margin-top: unset !important;
     margin-bottom: unset !important;
   }

   .config-background #search-container {
     padding: 4px !important;
   }

}
Post Reply