The size for the divider. This really just modifies the border-width.
$rmd-divider-size: 1px !default;
The max size for the divider. This can be used to center a horizontal divider within the page since the divider applies
margin-left: auto and
This also applies to vertical dividers... sort of? If the divider's containing element has a static defined height, the vertical dividers will be sized correctly. Otherwise the vertical divider will set the height to
auto which almost always resolves to
0 which will make your divider not appear.
$rmd-divider-max-size: 100% !default;
The amount of inset to apply to the divider. This should not be changed to create centered dividers. Its only purpose is to had spacing to the left (or right in rtl languages) of the divider. See the
$rmd-divider-max-size variable for more information about centering.
$rmd-divider-inset: 4rem !default;
The amount of margin to apply to horizontal dividers.
$rmd-divider-spacing: 0.25rem auto !default;
The amount of margin to apply to vertical dividers.
$rmd-divider-vertical-spacing: auto 0.25rem !default;
The divider color to use on light backgrounds.
$rmd-divider-background-color-on-light: rgba($rmd-black-base, 0.12) !default;
The divider color to use on dark backgrounds.
$rmd-divider-background-color-on-dark: rgba($rmd-white-base, 0.12) !default;
The default divider background color to use.
$rmd-divider-background-color: if( rmd-theme-tone($rmd-theme-background) == light, $rmd-divider-background-color-on-light, $rmd-divider-background-color-on-dark ) !default;
A Map of all the "themeable" parts of the divider package. Every key in this map will be used to create a css variable to dynamically update the values of the icon as needed.
$rmd-divider-theme-values: ( background-color: $rmd-divider-background-color, background-color-on-light: $rmd-divider-background-color-on-light, background-color-on-dark: $rmd-divider-background-color-on-dark, size: $rmd-divider-size, inset: $rmd-divider-inset, spacing: $rmd-divider-spacing, vertical-spacing: $rmd-divider-vertical-spacing, max-size: $rmd-divider-max-size, ) !default;
Creates the styles for one of the divider's theme values. This is mostly going to be an internal helper mixin util.
The property to set a
One of the keys of
A fallback value to use if the css variable isn't set somehow. This will default to automatically retrieving the default value from the
Updates one of the divider's theme variables with the new value for the section of your app.
The divider theme style type to update. This should be one of the
The new value to use.
This mixin allows you to add a custom border to any element if you don't want to add an extra element within your page for a divider.
The border position to use. This should be one of
Creates all the styles for a divider for a class name selector. This probably won't be used externally.
Creates all the styles for the divider package as well as the root css variable theme.
This function is used to quickly get one of the divider's theme values. This is really just for the
rmd-divider-theme mixin to provide some validation that a correct style key is used, but might be useful in other cases.
one of the divider's theme values.
One of the
This function is used to get one of the divider's theme variables as a CSS Variable to be applied as a style attribute. By default, the CSS Variable will have a fallback of the current
This function is used to create a CSS Variable declaration with an optional fallback value if the CSS Variable has not been declared somehow.
one of the divider's theme values as a css variable.
One of the
An optional fallback color to apply. This is set to