Styling
The Findstr plugin uses global CSS variables that can be overriden in your theme.
Variables
Variable | Default Value | Description |
---|---|---|
--findstr-primary-color | #FF5CAA | Changes the main accent color. |
--findstr-secondary-color | #4F55E3 | Changes the secondary accent color. |
--findstr-border-color | #dedede | Changes the color used for borders of inputs and sections. |
--findstr-disabled-color | #dedede | Changes the color of disabled inputs. |
--findstr-font-family | 'Arial', sans-serif | Changes the font family of elements. |
--findstr-font-size-regular | 16px | Changes the font size of regulat text elements (inputs, labels, etc.). |
--findstr-font-size-large | 24px | Changes the font size of larger text elements (titles). |
--findstr-font-size-small | 14px | Changes the font size of smaller text elements (tags, descriptions). |
--findstr-transition-delay | 0.4s | Changes the delay of transitions for hover effects. |
--findstr-input-padding | 20px | Changes the inputs padding. |
Usage
The variables can be overriden like this:
body {
--findstr-primary-color: #000000;
--findstr-secondary-color: #000000;
}
With Sass, Sass variables can be used to override CSS variables like this:
body {
--findstr-primary-color: #{$your-sass-variable};
}
The variables can also be used to style custom elements like this:
.your-element {
color: var(--findstr-primary-color);
}
Overriding styles
Every style applied to Findstr elements can be overriden in your theme to make customizations. Just make sure either the stylesheet of your theme is called after the plugin's stylesheet or that you use more specific CSS rules, like this:
body .findstr-field {
margin: 20px;
}
Useful CSS classes to know
CSS Class | Description |
---|---|
.findstrFieldContainer | Wrapper of every findstr facet field. |
.findstr-field | Class of every findstr facet field. |
.findstrResultsContainer | Wrapper of search results listing. |