userChrome.css
1 styles that improve the Firefox find bar by repositioning it,
adjusting spacing and styling its elements.
Variable | Description |
---|---|
$float |
If If |
$float-alignment |
Vertically positions the floating find bar. Either |
$float-distance |
Distance between the floating find bar and the respective window corner. |
$buttons |
If If |
$buttons-grouped |
If |
$hide-close-button |
If Important: with this option enabled, the only way to close the find bar would be to press Esc when its textbox or buttons are focused. To focus the textbox, press the find shortcut Ctrl/Cmd+F. |
$hide-when-unfocused |
If Important: with this option enabled, press Ctrl/Cmd+F to reopen the find bar, if it loses focus (and is therefore, hidden). |
$order |
Reorders elements of the find bar. This is a list that contains all of the following values (listed in the default order), in any
order: e.g., If the order is specified as |
This style is authored as an SCSS mixin and must be transpiled to CSS first.
-
The quickest way to get started is to,
-
Visit https://ravindUwU.github.io/firefox-refined-findbar, which will automatically generate a link to the Sass Playground.
-
Visit the generated link, modify the SCSS as necessary (specifically, the highlighted
@include
statement). -
Copy the CSS output into your
userChrome.css
file and restart Firefox.
If that didn't work,
-
Open an online transpiler (e.g., Sass Playground or SassMeister).
-
Copy the contents of
refined-findbar.scss
into the SCSS pane. -
Add the line
@include refined-findbar()
after the copied contents, and override variables as necessary. The default values can be found in the@mixin refined-findbar
declaration near the top of the contents copied in step 2.// <contents of refined-findbar.scss> // prettier-ignore @include refined-findbar( $float: true, $float-alignment: top, // etc.. );
-
Copy the CSS output into your
userChrome.css
file and restart Firefox.
-
-
To transpile locally,
@use
therefined-findbar.scss
file,@include
the mixin changing any variables as necessary, and usesass
to transpile to CSS.
Footnotes
-
Learn more about
userChrome.css
at: https://kb.mozillazine.org/UserChrome.css, https://old.reddit.com/r/firefox/wiki/userchrome, https://old.reddit.com/r/FirefoxCSS/wiki/index/tutorials ↩