Skip to Content

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 patternMeaning
.feature-it-cards--flat / .feature-it-cards--outlined / .feature-it-cards--shadowCard style
.feature-it-image-fit--contain / .feature-it-image-fit--coverImage fit mode
.feature-it-cover-extend--enabledPresent when “Extend to card width” is on (grid/carousel with cover)

Layout containers

ClassUse
.feature-it-heading-containerHeading and intro
.feature-it-ingredients-gridGrid of cards; data-columns is 15 (desktop column setting)
.feature-it-ingredients-rowsList layout column
.feature-it-ingredients-accordionAccordion stack

Per-ingredient card

ClassUse
.feature-it-ingredientOne ingredient; layout variants: .feature-it-ingredient--grid, --carousel, --list
.feature-it-ingredient--alignment-left / --center / --rightText alignment inside the card
.feature-it-ingredient__contentTitle, subtitle/badge, description
.feature-it-ingredient__titleIngredient title
.feature-it-ingredient__subtitleSubtitle when style is “Text”
.feature-it-ingredient__descriptionBody copy
.feature-it-ingredient__badgeSubtitle when style is “Badge”; modifiers: .feature-it-ingredient__badge--neutral, .feature-it-ingredient__badge--accent_1
.feature-it-ingredient__imageImage wrapper; size: --small, --medium, --large; shape: --square, --circle, --rounded
ClassUse
.feature-it-carousel, .feature-it-emblaCarousel root
.feature-it-embla__viewport, .feature-it-embla__container, .feature-it-embla__slideEmbla track and slides
.feature-it-carousel__arrowsArrow row
.feature-it-carousel__arrow, .feature-it-carousel__arrow--prev, .feature-it-carousel__arrow--nextButtons
.feature-it-carousel__pagination, .feature-it-carousel__dot, .feature-it-carousel__dot--activeDots
.feature-it-carousel--arrows-inside / --arrows-outside / --arrows-belowArrow position
.feature-it-carousel--pagination-true / --pagination-falsePagination visibility
.feature-it-carousel--show-arrows-true / --show-arrows-falseArrow visibility

Accordion-only

ClassUse
.feature-it-ingredient-accordionOne expandable panel; optional .feature-it-ingredient-accordion--alignment-*
.feature-it-ingredient-accordion__summaryClickable header row
.feature-it-ingredient-accordion__summary-content, .feature-it-ingredient-accordion__summary-textImage + title layout in the header
.feature-it-ingredient-accordion__bodyExpanded content (subtitle, description)

Empty state

ClassUse
.feature-it-ingredients-empty-messageMessage 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:

VariableTypical use
--feature-it-padding-ySection vertical padding
--feature-it-card-radiusCard corner radius
--feature-it-item-gapGap between cards or rows
--feature-it-grid-columnsDesktop column count (grid-related)
--feature-it-list-max-widthMax width of list layout
--feature-it-card-bgCard background color
--feature-it-image-fitcontain or cover for object-fit on images
--feature-it-title-font-sizeIngredient title size
--feature-it-heading-alignmentHeading block alignment
--feature-it-description-alignmentDescription 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