MozillaZine

"Highlight All" moved to right side of search bar???

Discussion about official Mozilla Firefox builds
Drumbrake

User avatar
 
Posts: 1177
Joined: February 14th, 2011, 2:34 am

Post Posted November 13th, 2013, 7:24 am

Ok guys,I have to apologize,Elbart was right
Who said that style is supposed to place the findbar to the top?

for some reason I assumed that "restoring sanity" would have meant placing the findbar on top...in reality,this other suggested style http://userstyles.org/styles/93867/findbar-on-top-right works in Stylish (although it's not exactly what I wanted,i.e. a simple findbar on the top left,but that's another matter) and would probably work in an userChrome.css file as well...

But one thing is for sure,the Stylish editor is fairly broken as far as I can tell,it's almost impossible to copy/paste stuff in there.

@Aris:yes,all of the above actually refers to Firefox beta 26+,the other info you see is from my default Firefox install which I was using at the time of the post.

abrasion
 
Posts: 8
Joined: November 29th, 2013, 4:22 pm

Post Posted November 29th, 2013, 4:37 pm

Zoolcar9 wrote:You can add this code to userChrome.css or Stylish.

Code: Select all
@-moz-document url("chrome://browser/content/browser.xul") {
  .findbar-container spacer { visibility: collapse }
  .findbar-container .findbar-closebutton { -moz-box-ordinal-group: 0 }
}



Thank you so much and curses to the "designers" who thought it might be clever to move this.
Change for change sake is stupid people, don't do it.

nurgal
 
Posts: 4
Joined: November 7th, 2013, 10:18 pm

Post Posted February 2nd, 2014, 11:34 pm

abrasion wrote:
Zoolcar9 wrote:You can add this code to userChrome.css or Stylish.

Code: Select all
@-moz-document url("chrome://browser/content/browser.xul") {
  .findbar-container spacer { visibility: collapse }
  .findbar-container .findbar-closebutton { -moz-box-ordinal-group: 0 }
}



Thank you so much and curses to the "designers" who thought it might be clever to move this.
Change for change sake is stupid people, don't do it.


If only google/youtube and mozilla would learn that...

Virtual_ManPL

User avatar
 
Posts: 1972
Joined: July 24th, 2008, 5:52 am

Post Posted February 4th, 2014, 12:06 pm

Zoolcar9 wrote:You can add this code to userChrome.css or Stylish.

Code: Select all
@-moz-document url("chrome://browser/content/browser.xul") {
  .findbar-container spacer { visibility: collapse }
  .findbar-container .findbar-closebutton { -moz-box-ordinal-group: 0 }
}

Thank you. Any idea how to move close button of search bar to the far left?

dfoulkes

User avatar
 
Posts: 22490
Joined: June 28th, 2008, 10:31 pm
Location: Mesquite, Nevada

Post Posted February 5th, 2014, 10:04 am

As part of one of the Stylish suggestions in this thread (which I use) ... there is this code... maybe it will work?

Code: Select all
}
.findbar-closebutton {
-moz-box-ordinal-group:0;
-moz-margin-start:0!important;
-moz-margin-end:5px!important;
}
As you can see she's (The CAT) always alert and on the prowl for Meoware !!

Frank Lion

User avatar
 
Posts: 20278
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted February 5th, 2014, 12:39 pm

Virtual_ManPL wrote:
Zoolcar9 wrote:You can add this code to userChrome.css or Stylish.

Code: Select all
@-moz-document url("chrome://browser/content/browser.xul") {
  .findbar-container spacer { visibility: collapse }
  .findbar-container .findbar-closebutton { -moz-box-ordinal-group: 0 }
}

Thank you. Any idea how to move close button of search bar to the far left?

If that code came from Zoo, it would have worked at one time for sure.

However - viewtopic.php?p=13290107#p13290107

As the close button is wanted on the left before the container, then we need to use our fall-back position -

Code: Select all
/*frank Find Bar fix...............................*/
  .findbar-container spacer { visibility: collapse; }
  .findbar-container { -moz-box-ordinal-group: 1 !important; }
  .findbar-closebutton { -moz-box-ordinal-group: 0 !important; }
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Virtual_ManPL

User avatar
 
Posts: 1972
Joined: July 24th, 2008, 5:52 am

Post Posted February 5th, 2014, 1:56 pm

@ dfoulkes - unfortunately this code didn't work :P
or at least when I paste it in userChrome.css

Frank Lion wrote:
Code: Select all
/*frank Find Bar fix...............................*/
  .findbar-container spacer { visibility: collapse; }
  .findbar-container { -moz-box-ordinal-group: 1 !important; }
  .findbar-closebutton { -moz-box-ordinal-group: 0 !important; }

Thank you very much! =D>

EDIT:
I modified this code and mine userChrome.css now looks like this
Code: Select all
.tabbrowser-tab:not([pinned])[fadein]{ min-width: 54px !important; }
.findbar-closebutton { -moz-box-ordinal-group: 0 !important; }
.findbar-container spacer { visibility: collapse; }

removing 2 spaces and compacting 1 code phase to 1 line works as intended :P

and I am not seeing any visible changes with and without
Code: Select all
.findbar-container { -moz-box-ordinal-group: 1 !important; }

what it changes out of simply curiosity?

Frank Lion

User avatar
 
Posts: 20278
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted February 5th, 2014, 3:23 pm

Virtual_ManPL wrote:and I am not seeing any visible changes with and without
Code: Select all
.findbar-container { -moz-box-ordinal-group: 1 !important; }

what it changes out of simply curiosity?

Nothing, I just threw that in there to make it easier for people to understand what was being changed.

I haven't bothered looking at this Find Bar business before, but how this stuff, universally, works is this - the find bar is 1 'box' and within it there are only 2 boxes - .findbar-closebutton and .findbar-container.

Now, if you were to ask either of them what their -moz-box-ordinal-group was, both would reply, 'It's 1'. but that's only because they are too dumb to realise that their actual order has already been determined elsewhere. Therefore, tell them what order you would like them to be and they will obey.

Because Zoo's code was already using 0, I didn't want to confuse people by doing this how I normally would (I don't have to worry about the closebutton because he already thinks he's 1 and 1 is before 2, see? :) -

Code: Select all
  .findbar-container spacer { visibility: collapse; }
   .findbar-container { -moz-box-ordinal-group: 2 !important; }


A clearer example would be in the findbar-container itself. This 'box' contains 5 boxes (the searchbar bit, the up arrow, the down arrow, Highlight and 'Match Case') Now say I wanted to swap the positions of the Highlight and Match Case over.

We can ignore boxes 1, 2 and 3 because they aren't being changed here. So, if we swap box 5 for box 4.......and the job is done ...

Code: Select all
 .findbar-highlight { -moz-box-ordinal-group: 5 !important; }
.findbar-case-sensitive  { -moz-box-ordinal-group: 4 !important; }


..and that's how -moz-box-ordinal-group type stuff is done.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Steve196

User avatar
 
Posts: 128
Joined: September 28th, 2013, 4:53 pm

Post Posted February 5th, 2014, 4:15 pm

Wow. Thanks, Frank, for the explanation. Concise and to the point.
Much appreciated.
On a side note, my hand seems to be getting better but I can still only type with one finger on my right hand ... I'll get back to that challenge of yours (and additional coding) once I get full use - it's just really difficult right now. :(

Again, thank you! :)
My avatar is my newly adopted kitten ... I figured y'all were getting tired of looking at my baggy eyes. :)

Virtual_ManPL

User avatar
 
Posts: 1972
Joined: July 24th, 2008, 5:52 am

Post Posted February 5th, 2014, 4:19 pm

@ Frank Lion - Thank you very much for detailed explanation! =D>
That post explained everything what I wanted to know and much more :twisted:

Return to Firefox Builds


Who is online

Users browsing this forum: No registered users and 2 guests