Block Size Utilities

The block-size utilities provide a set of classes to adjust the block-size, max-block-size, and min-block-size properties of elements.

Block Size

Class NamePropertyValue
.bs-autoblock-sizeauto
.bs-fit-contentblock-sizefit-content
.bs-max-contentblock-sizemax-content
.bs-min-contentblock-sizemin-content
.bs-stretchblock-sizestretch
.bs-fullblock-size100%
.bs-quarterblock-size25%
.bs-halfblock-size50%
.bs-three-quartersblock-size75%
.bs-thirdblock-sizecalc(100%/ 3)
.bs-two-thirdsblock-sizecalc(100%/ 1.5)
.bs-half-screenblock-size50vh
.bs-third-screenblock-sizecalc(100vh/ 3)
.bs-two-thirds-screenblock-sizecalc(100vh/ 1.5)
.bs-quarter-screenblock-size25vh
.bs-three-quarters-screenblock-size75vh
.bs-full-screenblock-size100vh
.bs-0block-sizevar(--graupl-spacer-0)
.bs-1block-sizevar(--graupl-spacer-1)
.bs-2block-sizevar(--graupl-spacer-2)
.bs-3block-sizevar(--graupl-spacer-3)
.bs-4block-sizevar(--graupl-spacer-4)
.bs-5block-sizevar(--graupl-spacer-5)
.bs-6block-sizevar(--graupl-spacer-6)
.bs-7block-sizevar(--graupl-spacer-7)
.bs-8block-sizevar(--graupl-spacer-8)
.bs-9block-sizevar(--graupl-spacer-9)
.bs-10block-sizevar(--graupl-spacer-10)

Max Block Size

Class NamePropertyValue
.max-bs-automax-block-sizeauto
.max-bs-fit-contentmax-block-sizefit-content
.max-bs-max-contentmax-block-sizemax-content
.max-bs-min-contentmax-block-sizemin-content
.max-bs-stretchmax-block-sizestretch
.max-bs-fullmax-block-size100%
.max-bs-quartermax-block-size25%
.max-bs-halfmax-block-size50%
.max-bs-three-quartersmax-block-size75%
.max-bs-thirdmax-block-sizecalc(100%/ 3)
.max-bs-two-thirdsmax-block-sizecalc(100%/ 1.5)
.max-bs-half-screenmax-block-size50vh
.max-bs-third-screenmax-block-sizecalc(100vh/ 3)
.max-bs-two-thirds-screenmax-block-sizecalc(100vh/ 1.5)
.max-bs-quarter-screenmax-block-size25vh
.max-bs-three-quarters-screenmax-block-size75vh
.max-bs-full-screenmax-block-size100vh
.max-bs-0max-block-sizevar(--graupl-spacer-0)
.max-bs-1max-block-sizevar(--graupl-spacer-1)
.max-bs-2max-block-sizevar(--graupl-spacer-2)
.max-bs-3max-block-sizevar(--graupl-spacer-3)
.max-bs-4max-block-sizevar(--graupl-spacer-4)
.max-bs-5max-block-sizevar(--graupl-spacer-5)
.max-bs-6max-block-sizevar(--graupl-spacer-6)
.max-bs-7max-block-sizevar(--graupl-spacer-7)
.max-bs-8max-block-sizevar(--graupl-spacer-8)
.max-bs-9max-block-sizevar(--graupl-spacer-9)
.max-bs-10max-block-sizevar(--graupl-spacer-10)

Min Block Size

Class NamePropertyValue
.min-bs-automin-block-sizeauto
.min-bs-fit-contentmin-block-sizefit-content
.min-bs-max-contentmin-block-sizemax-content
.min-bs-min-contentmin-block-sizemin-content
.min-bs-stretchmin-block-sizestretch
.min-bs-fullmin-block-size100%
.min-bs-quartermin-block-size25%
.min-bs-halfmin-block-size50%
.min-bs-three-quartersmin-block-size75%
.min-bs-thirdmin-block-sizecalc(100%/ 3)
.min-bs-two-thirdsmin-block-sizecalc(100%/ 1.5)
.min-bs-half-screenmin-block-size50vh
.min-bs-third-screenmin-block-sizecalc(100vh/ 3)
.min-bs-two-thirds-screenmin-block-sizecalc(100vh/ 1.5)
.min-bs-quarter-screenmin-block-size25vh
.min-bs-three-quarters-screenmin-block-size75vh
.min-bs-full-screenmin-block-size100vh
.min-bs-0min-block-sizevar(--graupl-spacer-0)
.min-bs-1min-block-sizevar(--graupl-spacer-1)
.min-bs-2min-block-sizevar(--graupl-spacer-2)
.min-bs-3min-block-sizevar(--graupl-spacer-3)
.min-bs-4min-block-sizevar(--graupl-spacer-4)
.min-bs-5min-block-sizevar(--graupl-spacer-5)
.min-bs-6min-block-sizevar(--graupl-spacer-6)
.min-bs-7min-block-sizevar(--graupl-spacer-7)
.min-bs-8min-block-sizevar(--graupl-spacer-8)
.min-bs-9min-block-sizevar(--graupl-spacer-9)
.min-bs-10min-block-sizevar(--graupl-spacer-10)

Customization

To customize the alignment utilities, you can use the following variables.

VariableDescriptionDefault Value
$selector-baseBase selector for utility classes."."
$selector-prefixThe selector prefix for all utility classes.""
$selector-suffixThe selctor suffix for all utility classes.""
$selector-separatorThe selector separator for all utility classes.""
$use-importantAppends !important to generated utility declarations.true
$generate-base-utilitiesGenerates the base utility classes.true
$screen-awareEnables screen-aware utility variants.false
$theme-awareEnables theme-aware utility variants.false
$scheme-awareEnables scheme-aware utility variants.false
$state-awareEnables state-aware utility variants.false
$container-awareEnables container-aware utility variants.false
$screen-aware-selector-prefixPrefix to the screen-aware portion of utility selectors.""
$screen-aware-selector-suffixSuffix to the screen-aware portion of utility selectors.""
$screen-aware-selector-separatorSeparator inserted for screen-aware utility selectors."\\:"
$theme-aware-selector-prefixPrefix to the theme-aware portion of utility selectors.""
$theme-aware-selector-suffixSuffix to the theme-aware portion of utility selectors."-theme"
$theme-aware-selector-separatorSeparator inserted for theme-aware utility selectors."\\:"
$scheme-aware-selector-prefixPrefix to the scheme-aware portion of utility selectors.""
$scheme-aware-selector-suffixSuffix to the scheme-aware portion of utility selectors."-mode"
$scheme-aware-selector-separatorSeparator inserted for scheme-aware utility selectors."\\:"
$state-aware-selector-prefixPrefix to the state-aware portion of utility selectors.""
$state-aware-selector-suffixSuffix to the state-aware portion of utility selectors.""
$state-aware-selector-separatorSeparator inserted for state-aware utility selectors."\\:"
$container-aware-selector-prefixPrefix to the container-aware portion of utility selectors."cq\\:"
$container-aware-selector-suffixSuffix to the container-aware portion of utility selectors.""
$container-aware-selector-separatorSeparator inserted for container-aware utility selectors."\\:"
$utility-propertiesMap of utility properties.()
$utility-valuesMap of utility values.()
$utility-mapMap of utility property/value pairs.()

Responsive Variants

Generating responsive utility classes can be done by setting $screen-aware, $theme-aware, $scheme-aware, $state-aware, or $container-aware to true.

By default, no responsive utility classes are generated for block-size.

✏️ Note

For more information on responsive variants, refer to the Responsive utility classes documentation.