Custom CSS — useful classes and variables
Custom CSS applies to this block only. The root element has a stable id of the form feature-it-ingredients-{block-id}; most selectors below hang off the outer wrapper .feature-it-ingredients.
Modifier classes on the section root
These reflect your theme editor choices and are useful hooks for overrides:
| Class pattern | Meaning |
|---|---|
.feature-it-cards--flat / .feature-it-cards--outlined / .feature-it-cards--shadow | Card style |
.feature-it-image-fit--contain / .feature-it-image-fit--cover | Image fit mode |
.feature-it-cover-extend--enabled | Present when “Extend to card width” is on (grid/carousel with cover) |
Layout containers
| Class | Use |
|---|---|
.feature-it-heading-container | Heading and intro |
.feature-it-ingredients-grid | Grid of cards; data-columns is 1–5 (desktop column setting) |
.feature-it-ingredients-rows | List layout column |
.feature-it-ingredients-accordion | Accordion stack |
Per-ingredient card
| Class | Use |
|---|---|
.feature-it-ingredient | One ingredient; layout variants: .feature-it-ingredient--grid, --carousel, --list |
.feature-it-ingredient--alignment-left / --center / --right | Text alignment inside the card |
.feature-it-ingredient__content | Title, subtitle/badge, description |
.feature-it-ingredient__title | Ingredient title |
.feature-it-ingredient__subtitle | Subtitle when style is “Text” |
.feature-it-ingredient__description | Body copy |
.feature-it-ingredient__badge | Subtitle when style is “Badge”; modifiers: .feature-it-ingredient__badge--neutral, .feature-it-ingredient__badge--accent_1 |
.feature-it-ingredient__image | Image wrapper; size: --small, --medium, --large; shape: --square, --circle, --rounded |
Carousel-only
| Class | Use |
|---|---|
.feature-it-carousel, .feature-it-embla | Carousel root |
.feature-it-embla__viewport, .feature-it-embla__container, .feature-it-embla__slide | Embla track and slides |
.feature-it-carousel__arrows | Arrow row |
.feature-it-carousel__arrow, .feature-it-carousel__arrow--prev, .feature-it-carousel__arrow--next | Buttons |
.feature-it-carousel__pagination, .feature-it-carousel__dot, .feature-it-carousel__dot--active | Dots |
.feature-it-carousel--arrows-inside / --arrows-outside / --arrows-below | Arrow position |
.feature-it-carousel--pagination-true / --pagination-false | Pagination visibility |
.feature-it-carousel--show-arrows-true / --show-arrows-false | Arrow visibility |
Accordion-only
| Class | Use |
|---|---|
.feature-it-ingredient-accordion | One expandable panel; optional .feature-it-ingredient-accordion--alignment-* |
.feature-it-ingredient-accordion__summary | Clickable header row |
.feature-it-ingredient-accordion__summary-content, .feature-it-ingredient-accordion__summary-text | Image + title layout in the header |
.feature-it-ingredient-accordion__body | Expanded content (subtitle, description) |
Empty state
| Class | Use |
|---|---|
.feature-it-ingredients-empty-message | Message when no ingredients or no product selected |
CSS custom properties (variables)
The block sets these on the root (names only—values come from your settings). Override them in Custom CSS for quick global tweaks without redefining every rule:
| Variable | Typical use |
|---|---|
--feature-it-padding-y | Section vertical padding |
--feature-it-card-radius | Card corner radius |
--feature-it-item-gap | Gap between cards or rows |
--feature-it-grid-columns | Desktop column count (grid-related) |
--feature-it-list-max-width | Max width of list layout |
--feature-it-card-bg | Card background color |
--feature-it-image-fit | contain or cover for object-fit on images |
--feature-it-title-font-size | Ingredient title size |
--feature-it-heading-alignment | Heading block alignment |
--feature-it-description-alignment | Description text alignment |
Carousel slides also use --feature-it-slides-per-view on .feature-it-carousel for how many cards fit in the viewport.
Last updated on