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 |
$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 ↩