By default, JigSass Card does not generate any CSS output when imported into
a stylesheet. CSS output must be enabled on a per-selector basis, inside the
dedicated configuration maps:
Card and modifier classes
$jigsass-card-config
Type: Map
Configuration map for enabling generation of
card and card modifier classes.
Default: ()
Example:
$jigsass-card-conf: (
no-breakpoint: (
no-modifier: true, // Enables generation of the `.o-card`
// class outside of any media query.
foo: true, // Enables generation of the `.o-card--foo`
// modifier class outside of any media query.
),
from-<bp-name>: (
no-modifier: true, // Enables generation of the `.o-card--from-<bp-name>`
// class inside a min-width media query
// defined ins `$jigsass-breakpoints.length`.
foo: true, // Enables generation of the `.o-card--foo--from-<bp-name>`
// class inside a min-width media query
// defined ins `$jigsass-breakpoints.length`.
),
until-<bp-name>: (
no-modifier: true, // Enables generation of the `.o-card--until-<bp-name>`
// class inside a max-width media query
// defined ins `$jigsass-breakpoints.length`.
foo: true, // Enables generation of the `.o-card--foo--until-<bp-name>`
// class inside a max-width media query
// defined ins `$jigsass-breakpoints.length`.
),
when-<bp-name>: (
no-modifier: true, // Enables generation of the `.o-card--when-<bp-name>`
// class inside a misc media query
// defined ins `$jigsass-breakpoints.features`.
foo: true, // Enables generation of the `.o-card--foo--when-<bp-name>`
// class inside a misc media query
// defined ins `$jigsass-breakpoints.features`.
),
from-<bp-name>-until-<bp-name>: (...);
from-<bp-name>-when-<bp-name>: (...);
until-<bp-name>-when-<bp-name>: (...);
from-<bp-name>-until-<bp-name>-when-<bp-name>: (...);
);
Card Items
$jigsass-card-items-config: (item-name: ());
Type: Map
Configuration map for enabling generation of
card item classes.
Default: ()
Example:
$jigsass-card-items-conf: (
section: (
no-breakpoint: (
// Enables generation of the `.o-card__section`
// class outside of any media query.
no-modifier: true,
// Enables generation of the `.o-card__section--foo`
// modifier class outside of any media query.
foo: true,
),
from-<bp-name>: (
// Enables generation of the `.o-card__section--from-<bp-name>`
// class inside a min-width media query
// defined ins `$jigsass-breakpoints.length`.
no-modifier: true,
// Enables generation of the `.o-card__section--foo--from-<bp-name>`
// class inside a min-width media query
// defined ins `$jigsass-breakpoints.length`.
foo: true,
),
until-<bp-name>: (
// Enables generation of the `.o-card__section--until-<bp-name>`
// class inside a max-width media query
// defined ins `$jigsass-breakpoints.length`.
no-modifier: true,
// Enables generation of the `.o-card__section--foo--until-<bp-name>`
// class inside a max-width media query
// defined ins `$jigsass-breakpoints.length`.
foo: true,
),
when-<bp-name>: (
// Enables generation of the `.o-card__section--when-<bp-name>`
// class inside a misc media query
// defined ins `$jigsass-breakpoints.features`.
no-modifier: true,
// Enables generation of the `.o-card__section--foo--when-<bp-name>`
// class inside a misc media query
// defined ins `$jigsass-breakpoints.features`.
foo: true,
),
from-<bp-name>-until-<bp-name>: (...);
from-<bp-name>-when-<bp-name>: (...);
until-<bp-name>-when-<bp-name>: (...);
from-<bp-name>-until-<bp-name>-when-<bp-name>: (...);
),
);
Context classes
$jigsass-card-context-config: (item-name: ());
Type: Map
Configuration map for enabling generation of
card context classes.
Default: ()
Example:
$jigsass-card-context-conf: (
has-card: (
no-breakpoint: (
// Enables generation of the `.o-has-card`
// class outside of any media query.
no-modifier: true,
// Enables generation of the `.o-has-card--foo`
// modifier class outside of any media query.
foo: true,
),
from-<bp-name>: (
// Enables generation of the `.o-has-card--from-<bp-name>`
// class inside a min-width media query
// defined ins `$jigsass-breakpoints.length`.
no-modifier: true,
// Enables generation of the `.o-has-card--foo--from-<bp-name>`
// class inside a min-width media query
// defined ins `$jigsass-breakpoints.length`.
foo: true,
),
until-<bp-name>: (
// Enables generation of the `.o-has-card--until-<bp-name>`
// class inside a max-width media query
// defined ins `$jigsass-breakpoints.length`.
no-modifier: true,
// Enables generation of the `.o-has-card--foo--until-<bp-name>`
// class inside a max-width media query
// defined ins `$jigsass-breakpoints.length`.
foo: true,
),
when-<bp-name>: (
// Enables generation of the `.o-has-card--when-<bp-name>`
// class inside a misc media query
// defined ins `$jigsass-breakpoints.features`.
no-modifier: true,
// Enables generation of the `.o-has-card--foo--when-<bp-name>`
// class inside a misc media query
// defined ins `$jigsass-breakpoints.features`.
foo: true,
),
from-<bp-name>-until-<bp-name>: (...);
from-<bp-name>-when-<bp-name>: (...);
until-<bp-name>-when-<bp-name>: (...);
from-<bp-name>-until-<bp-name>-when-<bp-name>: (...);
),
);