One thing I noticed is that moving the close button to the right edge (actually past the right edge) still leaves that button about 8 pixels from the top so Firefox will still not close when the mouse pointer is moved to the pixel in the upper-right corner of the screen which will then have to be moved down a little (8 pixels to be exact) to make the close button active to close.
I decided to do a little experimenting with the css code you provided to fix that and was able to guess what the code for the top margin would be. I modified the code to put the close button flush against the top and right edges of the screen when maximized. This will allow the mouse pointer to be put on the pixel in the extreme upper-right corner of the screen to close Firefox.
The close button only needs to be moved 5 pixels to the right and 8 pixels up from its default position. Change those values if desired. This is the code:
Code: Select all
#TabsToolbar{margin-right:-5px!important;}
#TabsToolbar{margin-top:-8px!important;}
The below image shows the Firefox close buttons in windows that are not maximized because I thought the screenshots were clearer (when maximized, the window edges are against the screen edges and the corner of the window has a small enough radius to capture a mouse click on the corner pixel). From top to bottom:
- Default position (before the userChrome.css file modification)
- Post #10 .css setting (close button moved to right only)
- Change from the above code (close button moved up and right flush with edges)
Edit: I did not mention that the values I gave here (-5 and -8) are based on the Greybird-mx theme. Those values may need to be changed when using other themes. Greybird-mx was used in this example because it makes it easy to see when the close button becomes active, which is not possible when a dark theme is used.
The code format can also be as Octeract used in the below post (#12) under the "#TabsToolbar" header. Both work equally well.