MozillaZine

[Ext] Classic Theme Restorer

Announce and Discuss the Latest Theme and Extension Releases.
Aris

User avatar
 
Posts: 2992
Joined: February 27th, 2011, 10:14 am

Post Posted January 11th, 2017, 8:00 am

You have to change the id of the popup, because you are trying to modify CTRs bookmarks button, not the default one, but that code does not change anything for me either.

Code: Select all
#ctraddon_BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) {margin-left: 215px; margin-right: -215px}
#ctraddon_BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) .panel-arrow {margin-left: -210px; margin-right: 210px}


I misread before, your are on Fx50, but he mentioned option is for Fx51+ where it reduces bookmarks toolbars space. Most likely you are trying to achieve the opposite. What toolbar is it on your screenshot you labeled with "middle toolbar", bookmarks toolbar, navigation toolbar or one of CTRs additional toolbars?

Use this to adjust left/right space of your top toolbars
Code: Select all
#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
  padding: 4px !important;
}
Possible userChrome.css tweaks for Photon UI in Fx57+ || Classic Theme Restorer || Classic Toolbar Buttons || CustomizeMyBird

How to use legacy add-ons up to summer 2018 and receive security updates? Switch to Firefox ESR channel.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 11th, 2017, 8:28 am

Aris wrote:What toolbar is it on your screenshot you labeled with "middle toolbar", bookmarks toolbar, navigation toolbar or one of CTRs additional toolbars?

Use this..

Thanks once again. Man, you're good at this. :)

Image
Top is the normal navigation bar. Middle is bookmark bar (not altered). Bottom is tab bar (auto-disappear on one tab, and other stuff).

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 11th, 2017, 8:36 am

Image

So good. [-o<

Aris

User avatar
 
Posts: 2992
Joined: February 27th, 2011, 10:14 am

Post Posted January 11th, 2017, 9:28 am

You won't need the code to adjust bookmarks toolbar in Firefox 51 anymore.
Possible userChrome.css tweaks for Photon UI in Fx57+ || Classic Theme Restorer || Classic Toolbar Buttons || CustomizeMyBird

How to use legacy add-ons up to summer 2018 and receive security updates? Switch to Firefox ESR channel.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 11th, 2017, 10:07 am

Aris wrote:You won't need the code to adjust bookmarks toolbar in Firefox 51 anymore.

What?
Image

Aris

User avatar
 
Posts: 2992
Joined: February 27th, 2011, 10:14 am

Post Posted January 11th, 2017, 11:48 am

In Firefox 51+ Mozilla already added a gap to bookmarks toolbar, the gap you created using the above code.
Possible userChrome.css tweaks for Photon UI in Fx57+ || Classic Theme Restorer || Classic Toolbar Buttons || CustomizeMyBird

How to use legacy add-ons up to summer 2018 and receive security updates? Switch to Firefox ESR channel.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 11th, 2017, 1:42 pm

Aris wrote:You have to change the id of the popup, because you are trying to modify CTRs bookmarks button, not the default one, but that code does not change anything for me either.

Code: Select all
#ctraddon_BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) {margin-left: 215px; margin-right: -215px}
#ctraddon_BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) .panel-arrow {margin-left: -210px; margin-right: 210px}

That guy came back, and now it works (mostly)! He helped me fine-tune these settings:
Code: Select all
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) {margin-left: 215px; margin-right: -322px}
#BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) .panel-arrow {margin-left: -210px; margin-right: 322px}

The animation "pops out" from the right instead of from the actual button, but that's a minor thing.

Do you know how to change this to work with CTR's bookmark button (in my opinion superior)?

Edit: Crap, this is just a superficial fix. It's different on every computer and every layout (esp. for CTR users). Don't use the above code, it's basically worthless except for me..

Aris

User avatar
 
Posts: 2992
Joined: February 27th, 2011, 10:14 am

Post Posted January 11th, 2017, 2:57 pm

Replace #BMB_bookmarksPopup with #ctraddon_BMB_bookmarksPopup to affect the popup CTRs button uses.
Possible userChrome.css tweaks for Photon UI in Fx57+ || Classic Theme Restorer || Classic Toolbar Buttons || CustomizeMyBird

How to use legacy add-ons up to summer 2018 and receive security updates? Switch to Firefox ESR channel.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 12th, 2017, 3:57 am

Thanks, but it was borked with those settings, and I probably won't change them every time I change the look of FF.

I guess I'm after the function that tells FF to animate it to the left by default, and change that to 'right by default'.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 12th, 2017, 8:23 pm

Got the solution for the animation from another kind user:

@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul);
#BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) {
margin-left: 340px;
margin-right: -340px;
transform-origin: 0% 0% 0px;
}
#BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) .panel-arrow {
margin-left: -330px;
margin-right: 330px;
transform-origin: 0% 0% 0px;
}

Didn't work with CTR's bookmark button but no one try to fix this as I like the icons on this bookmark button more. Very thankful for the help. :)

Does anyone know if you can enable FF's "press escape to stop gif animations"?

Aris

User avatar
 
Posts: 2992
Joined: February 27th, 2011, 10:14 am

Post Posted January 13th, 2017, 1:11 am

Not sure, if you understood my last post, but the code you got can only affect CTRs button, if you change given id (#BMB_bookmarksPopup) to CTR buttons popup id (#ctraddon_BMB_bookmarksPopup). Its like you trying to call "Bob" using "Mike" and wondering why he is not responding.

This should work in Stylish and on CTRs prefwindow (css code area):
Code: Select all
/*AGENT_SHEET*/
#ctraddon_BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) {
  margin-left: 340px !important;
  margin-right: -340px !important;
  transform-origin: 0% 0% 0px !important;
}
#ctraddon_BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr) .panel-arrow {
  margin-left: -330px !important;
  margin-right: 330px !important;
  transform-origin: 0% 0% 0px !important;
}
Possible userChrome.css tweaks for Photon UI in Fx57+ || Classic Theme Restorer || Classic Toolbar Buttons || CustomizeMyBird

How to use legacy add-ons up to summer 2018 and receive security updates? Switch to Firefox ESR channel.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 13th, 2017, 7:20 am

I understood, I tried that exact code before, and it's borked. Meaning it didn't work properly and something messed up. Arrow and popup spawn location are both in the wrong place.

Aris

User avatar
 
Posts: 2992
Joined: February 27th, 2011, 10:14 am

Post Posted January 13th, 2017, 7:49 am

Code is working fine for me: http://i.imgur.com/We7cmRH.png
Possible userChrome.css tweaks for Photon UI in Fx57+ || Classic Theme Restorer || Classic Toolbar Buttons || CustomizeMyBird

How to use legacy add-ons up to summer 2018 and receive security updates? Switch to Firefox ESR channel.

Ree81
 
Posts: 15
Joined: January 10th, 2017, 7:39 am

Post Posted January 13th, 2017, 8:17 am

The arrow is supposed to be further to the left, right? Not right, left, right?

:P

Edit: Actually that was a confusing comment. If you compare where the arrow is to where it pops out on the FF button, it's slightly to the right (of the main menu area). It also pops out of the left of the window in that image.
Last edited by Ree81 on January 13th, 2017, 8:19 am, edited 1 time in total.

Jack Black

User avatar
 
Posts: 79
Joined: January 17th, 2011, 2:17 pm

Post Posted January 13th, 2017, 8:18 am

Ree81 wrote:Does anyone know if you can enable FF's "press escape to stop gif animations"?

Since this feature got removed in Firefox 20, along with bug #614304, you now have to rely on an add-on; BetterStop, for example.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 5 guests