Progress Linear
Installation
yarn add @chewy/kib-progress-styles
Import
@use '~@chewy/kib-progress-styles/src/kib-progress-linear/styles' as kib-progress-linear;
Mixins
container
@mixin container() { ... }
@mixin container() { display: block; width: 100%; }
Description
Root container of all progress linear
Parameters
None.
label
@mixin label() { ... }
@mixin label() { @include kib-core.type-size-block-element(base); margin-bottom: settings.$label-spacing; }
indicator
@mixin indicator() { ... }
@mixin indicator() { display: block; width: 100%; height: settings.$height; transform-origin: left; transition: transform 0.3s, background-color 0.3s; background-color: settings.$default-color; border-radius: settings.$border-radius; @media (prefers-reduced-motion: reduce) { transition: none; } }
Description
Base styles for the kib-progress-linear indicator.
Parameters
None.
Requires
- [variable]
height
- [variable]
default-color
- [variable]
border-radius
value
@mixin value() { ... }
@mixin value() { color: settings.$value-color; }
Variables
height
$height: kib-core.dimensions-get(small) !default;
Description
Height of progress-linear
Type
Number (rem)
background-color
$background-color: color.get('action', 'switch', 'background', 'on', '03') !default;
Description
Background color for progress-linear indicator container
Type
Color
default-color
$default-color: color.get('action', 'switch', 'background', 'on', 'primary') !default;
border-radius
$border-radius: kib-core.dimensions-get(small) !default;
Description
Border radius of progress-linear
Type
Number (rem)
value-color
$value-color: color.get('text', 'secondary') !default;
label-spacing
$label-spacing: spacing.get('s2') !default;
Description
Label Spacing of progress-linear
Type
Number (rem)
wrapper-spacing
$wrapper-spacing: spacing.get('s1') !default;
Description
Wrapper Spacing of progress-linear
Type
Number (rem)
indicator-spacing
$indicator-spacing: spacing.get('s2') !default;
Description
Indicator Spacing of progress-linear
Type
Number (rem)