@visual-framework/vf-stack
Version:
vf-stack component
156 lines (139 loc) • 4.02 kB
CSS
/* stylelint-disable */
:root {
--vf-color--green: #18974c;
--vf-color--green--darkest: #0a5032;
--vf-color--green--dark: #007b53;
--vf-color--green--light: #6cc24a;
--vf-color--green--lightest: #d0debb;
--vf-color--grey: #707372;
--vf-color--grey--darkest: #373a36;
--vf-color--grey--dark: #54585a;
--vf-color--grey--light: #a8a99e;
--vf-color--grey--lightest: #d0d0ce;
--vf-color--red: #d41645;
--vf-color--red--dark: #a6093d;
--vf-color--red--light: #e58f9e;
--vf-color--blue: #3b6fb6;
--vf-color--blue--dark: #193f90;
--vf-color--blue--light: #8bb8e8;
--vf-color--purple: #734595;
--vf-color--purple--dark: #563d82;
--vf-color--purple--light: #cba3d8;
--vf-color--orange: #f49e17;
--vf-color--orange--dark: #b65417;
--vf-color--orange--light: #efc06e;
--vf-color--yellow: #f4c61f;
--vf-color--yellow--dark: #ffb81c;
--vf-color--yellow--light: #fdd757;
--vf-color--bright-green: #a1be1f;
--vf-color--bright-green--dark: #7fb428;
--vf-color--bright-green--light: #e2e868;
}
:root {
--vf-color__text--primary: #1a1c1a;
--vf-color__text--secondary: #373a36;
--vf-color__link: #3b6fb6;
--vf-color__link--hover: #193f90;
--vf-color__link--focus: #193f90;
--vf-color__link--visited: #563d82;
}
:root {
--vf-color__button__text--primary: #ffffff;
--vf-color__button__border--primary: #3b6fb6;
--vf-color__button__background--primary: #3b6fb6;
--vf-color__button__shadow--primary: #193f90;
--vf-color__button__text--secondary: #3b6fb6;
--vf-color__button__border--secondary: #3b6fb6;
--vf-color__button__background--secondary: #ffffff;
--vf-color__button__shadow--secondary: #193f90;
--vf-color__button__text--tertiary: #ffffff;
--vf-color__button__border--tertiary: #373a36;
--vf-color__button__background--tertiary: #373a36;
--vf-color__button__shadow--tertiary: #000000;
}
:root {
--vf-color__brand: #18974c;
--vf-color__brand--dark: #0a5032;
}
:root {
--vf-ui-color--black: #000000;
--vf-ui-color--grey: #d8d8d8;
--vf-ui-color--grey--light: #f3f3f3;
--vf-ui-color--yellow: #fffadc;
--vf-ui-color--red: #d32f2f;
--vf-ui-color--white: #ffffff;
--vf-ui-color--off-white: #fafafa;
}
:root {
--vf-color--neutral--0: #ffffff;
--vf-color--neutral--100: #f3f3f3;
--vf-color--neutral--200: #e4e4e4;
--vf-color--neutral--300: #d0d0ce;
--vf-color--neutral--400: #a9abaa;
--vf-color--neutral--500: #8d8f8e;
--vf-color--neutral--600: #707372;
--vf-color--neutral--700: #54585a;
--vf-color--neutral--800: #373a36;
--vf-color--neutral--900: #000000;
}
:root {
--vf-theme--primary: #3b6fb6;
--vf-theme--primary--dark: #193f90;
--vf-theme--secondary: #18974c;
--vf-theme--secondary--dark: #007b53;
--vf-theme--tertiary: #54585a;
--vf-theme--quaternary: #f4c61f;
--vf-theme--quinary: #d0d0ce;
}
/* stylelint-enable */
/*!
* Component: @visual-framework/vf-stack
* Version: 3.0.1
* Location: components/undefined
*/
/*
*
* vf-stack
* heavily inspired by: https://every-layout.dev/layouts/stack/
*
* 1. removes bottom margin for any child of the vf-stack component.
* 2. default for when browsers don't support CSS custom properties.
* 3. removes top margin for any child of the vf-stack component.
*
*/
[class^=vf-stack] > * {
margin-bottom: 0; /* [1] */
margin-top: 0; /* [2] */
}
.vf-stack > * + * > * {
--vf-stack-margin: 0;
}
.vf-stack > * + * {
--vf-stack-margin: 1rem;
margin-top: 1rem; /* IE Fallback */
margin-top: var(--vf-stack-margin--custom, var(--vf-stack-margin, 1rem)); /* [3] */
}
.vf-stack--200 > * + * {
--vf-stack-margin: 0.5rem;
}
.vf-stack--400 > * + * {
--vf-stack-margin: 1rem;
}
.vf-stack--500 > * + * {
--vf-stack-margin: 1.25rem;
}
.vf-stack--600 > * + * {
--vf-stack-margin: 1.5rem;
}
.vf-stack--800 > * + * {
--vf-stack-margin: 2rem;
}
.vf-stack--1200 > * + * {
--vf-stack-margin: 3rem;
}
.vf-stack--1600 > * + * {
--vf-stack-margin: 4rem;
}
.vf-stack > .vf-hero + .vf-u-fullbleed {
margin-top: unset ;
}