userChrome.css1 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/focus the find bar, if it loses focus (and is therefore, hidden). |
$opacity-when-unfocused |
Transparency of the find bar when its elements (textbox or buttons) are not in focus. Excepts a number between 0 (fully transparent) and 1 (fully opaque). |
$order |
Reorders elements of the find bar. This is a list that contains all of the following tokens (listed here 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
@includestatement). -
Copy the CSS output into your
userChrome.cssfile and restart Firefox.
If that didn't work,
-
Open an online transpiler (e.g., Sass Playground).
-
Copy the contents of
refined-findbar.scssinto 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-findbardeclaration 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.cssfile and restart Firefox.
-
-
To transpile locally,
@usetherefined-findbar.scssfile,@includethe mixin changing any variables as necessary, and usesassto transpile to CSS.
Footnotes
-
Learn more about
userChrome.cssat: https://kb.mozillazine.org/UserChrome.css, https://old.reddit.com/r/firefox/wiki/userchrome, https://old.reddit.com/r/FirefoxCSS/wiki/index/tutorials ↩