@visual-framework/vf-form__select
Version:
vf-form__select component
693 lines (636 loc) • 19.7 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-form
* Version: 2.0.0-alpha.2
* Location: components/undefined
*/
/*!
* Component: @visual-framework/vf-form__helper
* Version: 3.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__helper {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 16px;
color: #373a36;
font-weight: 400;
line-height: 1.71;
margin: var(--vf-stack-margin, 0) 0 0 0;
color: #707372;
}
.vf-form__helper--error {
color: #d41645;
}
/*!
* Component: @visual-framework/vf-form__input
* Version: 3.0.0-alpha.1
* Location: components/undefined
*/
.vf-form__input:not([type=file]) {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 19px;
color: #1a1c1a;
font-weight: 400;
line-height: 1.421;
margin: var(--vf-stack-margin, 0) 0 0 0;
/* stylelint-disable */
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* stylelint-enable */
border: 2px solid #707372;
border-radius: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #000000;
display: block;
padding: 0.5rem;
position: relative;
width: 100%;
}
.vf-form__input:not([type=file]):focus, .vf-form__input:not([type=file]):hover {
border-color: #54585a;
-webkit-box-shadow: 0 0 0 0.0625rem #54585a;
box-shadow: 0 0 0 0.0625rem #54585a;
color: #000000;
outline: 0;
}
.vf-form__wrap .vf-form__label {
border-top-left-radius: 3px;
display: block;
line-height: 1;
opacity: 0;
position: absolute;
top: -16px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
visibility: hidden;
z-index: 1;
}
.vf-form__input .vf-form__wrap {
-webkit-font-smoothing: antialiased;
position: relative;
text-rendering: optimizeLegibility;
}
.vf-form__input::-webkit-input-placeholder {
opacity: 1;
}
.vf-form__input::-moz-placeholder {
opacity: 1;
}
.vf-form__input:-ms-input-placeholder {
opacity: 1;
}
.vf-form__input::-ms-input-placeholder {
opacity: 1;
}
.vf-form__input::placeholder {
opacity: 1;
}
.vf-form__input::-webkit-input-placeholder, .vf-form__select::-webkit-input-placeholder, .vf-form__textarea::-webkit-input-placeholder {
color: #a8a99e;
}
.vf-form__input::-moz-placeholder, .vf-form__select::-moz-placeholder, .vf-form__textarea::-moz-placeholder {
color: #a8a99e;
}
.vf-form__input:-ms-input-placeholder, .vf-form__select:-ms-input-placeholder, .vf-form__textarea:-ms-input-placeholder {
color: #a8a99e;
}
.vf-form__input::-ms-input-placeholder, .vf-form__select::-ms-input-placeholder, .vf-form__textarea::-ms-input-placeholder {
color: #a8a99e;
}
.vf-form__input::placeholder,
.vf-form__select::placeholder,
.vf-form__textarea::placeholder {
color: #a8a99e;
}
.vf-form__input::-moz-placeholder,
.vf-form__select::-moz-placeholder,
.vf-form__textarea::-moz-placeholder {
color: #a8a99e;
}
.vf-form__input:-ms-input-placeholder,
.vf-form__select:-ms-input-placeholder,
.vf-form__textarea:-ms-input-placeholder {
color: #a8a99e;
}
.vf-form__input::-webkit-input-placeholder,
.vf-form__select::-webkit-input-placeholder,
.vf-form__textarea::-webkit-input-placeholder {
color: #a8a99e;
}
.vf-form__input .vf-form__select {
/* stylelint-disable */
---webkit-appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* stylelint-enable */
color: #a8a99e;
cursor: pointer;
position: relative;
}
.vf-form__input .vf-form__select::-ms-expand {
display: none;
}
.vf-form__input .vf-form__is-active .vf-form__input,
.vf-form__input .vf-form__is-active .vf-form__select,
.vf-form__input .vf-form__is-active .vf-form__textarea {
background-color: #ffffff;
border-color: #d8d8d8;
color: #54585a;
}
.vf-form__input .vf-form__has-focus .vf-form__input,
.vf-form__input .vf-form__has-focus .vf-form__select,
.vf-form__input .vf-form__has-focus .vf-form__textarea {
background-color: #ffffff;
border-color: #000000;
}
.vf-form__wrap .vf-form__input .vf-form__label {
border-radius-top-left: 3px;
color: #54585a;
display: block;
left: 24px;
opacity: 0;
position: absolute;
top: -24px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
visibility: hidden;
z-index: 1;
}
.vf-form__input .vf-form__is-active .vf-form__label {
opacity: 1;
visibility: visible;
}
.vf-form__input .vf-form__has-focus .vf-form__label {
color: #000000;
}
.vf-form__input .vf-form__is-required::before {
color: #d41645;
content: "*";
display: block;
font-size: 16px;
line-height: 1.75;
opacity: 1;
padding: 6px 0 0;
position: absolute;
right: 16px;
top: 4px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
z-index: 1;
}
.vf-form__input .vf-form__is-required.vf-form__is-active::before {
opacity: 0;
}
.vf-form__input:disabled {
background-color: #d0d0ce;
border-color: #707372;
cursor: not-allowed;
}
.vf-form__input:disabled::-moz-placeholder {
color: #18974c;
}
.vf-form__input:disabled::placeholder, .vf-form__input:disabled::-moz-placeholder, .vf-form__input:disabled::-ms-input-placeholder, .vf-form__input:disabled::-webkit-input-placeholder {
color: #18974c;
}
.vf-form__input--invalid:not([type=file]) {
border-color: #d32f2f;
}
/* stylelint-disable */
input[type=search]::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
/* stylelint-enable */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M89.796 74.956a7 7 0 010-9.912L136.92 17.92a10.5 10.5 0 00-14.84-14.84L74.956 50.204a7 7 0 01-9.912 0L17.92 3.08A10.5 10.5 0 003.08 17.92l47.124 47.124a7 7 0 010 9.912L3.08 122.08a10.5 10.5 0 1014.84 14.84l47.124-47.124a7 7 0 019.912 0l47.124 47.124a10.5 10.5 0 0014.84-14.84z' fill='%2354585a'/%3E%3C/svg%3E");
background-position: center right;
background-repeat: no-repeat;
background-size: 1em;
content: "";
display: block;
height: 1em;
position: relative;
width: 1em;
}
.vf-form__input--filter {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M136.92 136.92a10.486 10.486 0 000-14.84l-26.6-26.6a3.514 3.514 0 01-.476-4.34 59.556 59.556 0 10-18.69 18.718 3.5 3.5 0 014.34.49l26.6 26.6a10.472 10.472 0 0014.84 0zM21 59.5A38.5 38.5 0 1159.5 98 38.528 38.528 0 0121 59.5z' fill='%23707372'/%3E%3C/svg%3E");
background-position: 0.5em center;
background-repeat: no-repeat;
background-size: 1.25rem;
padding-left: 2em ;
}
.vf-form__input--filter:focus, .vf-form__input--filter:hover {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M136.92 136.92a10.486 10.486 0 000-14.84l-26.6-26.6a3.514 3.514 0 01-.476-4.34 59.556 59.556 0 10-18.69 18.718 3.5 3.5 0 014.34.49l26.6 26.6a10.472 10.472 0 0014.84 0zM21 59.5A38.5 38.5 0 1159.5 98 38.528 38.528 0 0121 59.5z' fill='%2354585a'/%3E%3C/svg%3E");
}
/*!
* Component: @visual-framework/vf-form__legend
* Version: 2.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__legend {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 24px;
color: #1a1c1a;
font-weight: 500;
line-height: 1.333;
margin: var(--vf-stack-margin, 0) 0 0 0;
padding: 0;
}
.vf-form__legend--required {
-webkit-box-align: start;
-ms-flex-align: start;
align-items: start;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.vf-form__legend--required .vf-icon {
fill: #d41645;
height: 0.5em;
width: 0.5em;
}
/*!
* Component: @visual-framework/vf-form__fieldset
* Version: 2.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__fieldset {
border: 0;
overflow: visible;
padding: 0;
}
.vf-form__fieldset .vf-form__legend + .vf-form__helper--error {
--vf-stack-margin--custom: 0;
}
/*!
* Component: @visual-framework/vf-form__select
* Version: 3.0.0
* Location: components/undefined
*/
.vf-form__select {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 19px;
color: #1a1c1a;
font-weight: 400;
line-height: 1.421;
margin: var(--vf-stack-margin, 0) 0 0 0;
/* stylelint-disable */
--webkit-appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* stylelint-enable */
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M70 110.236a17.332 17.332 0 01-12.306-5.096L2.884 47.502A10.502 10.502 0 1118.116 33.04l49.35 51.968a3.486 3.486 0 005.068 0l49.35-51.968a10.502 10.502 0 1115.232 14.462L82.6 105a17.766 17.766 0 01-12.6 5.236z' fill='%23707372'/%3E%3C/svg%3E");
background-position: right 1rem top 50%, 0 0;
background-repeat: no-repeat, repeat;
background-size: 1.125em;
border: 2px solid #707372;
border-radius: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #54585a;
display: block;
max-width: 100%;
padding: 0.5rem;
width: 100%;
}
.vf-form__select:focus, .vf-form__select:hover {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M70 110.236a17.332 17.332 0 01-12.306-5.096L2.884 47.502A10.502 10.502 0 1118.116 33.04l49.35 51.968a3.486 3.486 0 005.068 0l49.35-51.968a10.502 10.502 0 1115.232 14.462L82.6 105a17.766 17.766 0 01-12.6 5.236z' fill='%2354585A'/%3E%3C/svg%3E");
border-color: #54585a;
-webkit-box-shadow: 0 0 0 0.0625rem #54585a;
box-shadow: 0 0 0 0.0625rem #54585a;
color: #000000;
outline: 0;
}
.vf-form__select::-ms-expand {
display: none;
}
.vf-form__select option {
font-weight: normal;
}
/*!
* Component: @visual-framework/vf-form__checkbox
* Version: 3.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__item--checkbox .vf-form__checkbox + .vf-form__label::before {
margin-right: 8px;
}
.vf-form__item--checkbox .vf-form__helper {
margin-left: 29px;
}
.vf-form__checkbox {
opacity: 0;
position: absolute;
}
.vf-form__checkbox + .vf-form__label {
color: #54585a;
cursor: pointer;
padding: 0;
position: relative;
}
.vf-form__checkbox + .vf-form__label::before {
background-color: #ffffff;
border: 2px solid #707372;
content: "";
display: inline-block;
height: 1rem;
min-width: 1rem;
position: relative;
top: 4px;
width: 1rem;
}
.vf-form__checkbox:hover + .vf-form__label:before, .vf-form__checkbox:focus + .vf-form__label:before {
border-color: #54585a;
-webkit-box-shadow: 0 0 0 0.125rem #54585a;
box-shadow: 0 0 0 0.125rem #54585a;
}
.vf-form__checkbox:checked + .vf-form__label::before {
background-color: #3b6fb6;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M39.94 125a19.88 19.88 0 01-15.53-7.81L2.48 92.26a10 10 0 0115-13.2l20.55 23.39a2.5 2.5 0 003.68.08l81-84.42a10.002 10.002 0 1114.5 13.78l-82.02 86.33A19.41 19.41 0 0139.94 125z' fill='%23fff'/%3E%3C/svg%3E");
background-position: center center;
background-repeat: no-repeat;
background-size: 0.75em;
border-color: #3b6fb6;
}
.vf-form__checkbox:checked:hover + .vf-form__label::before, .vf-form__checkbox:checked:focus + .vf-form__label::before {
-webkit-box-shadow: 0 0 0 0.125rem #54585a;
box-shadow: 0 0 0 0.125rem #54585a;
}
.vf-form__checkbox:disabled + .vf-form__label {
color: #707372;
cursor: not-allowed;
}
.vf-form__checkbox:disabled + .vf-form__label::before {
background-color: #d0d0ce;
border-color: #707372;
-webkit-box-shadow: none;
box-shadow: none;
}
.vf-form__checkbox--invalid + .vf-form__label::before {
border-color: #d41645;
}
/*!
* Component: @visual-framework/vf-form__radio
* Version: 3.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__radio {
opacity: 0;
position: absolute;
}
.vf-form__radio + .vf-form__label {
color: #54585a;
cursor: pointer;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding: 0;
position: relative;
}
.vf-form__radio + .vf-form__label::before {
background: #ffffff;
border: 2px solid #707372;
border-radius: 50%;
content: "";
display: inline-block;
height: 1rem;
margin-right: 8px;
min-width: 1rem;
position: relative;
top: 4px;
width: 1rem;
}
.vf-form__radio:hover + .vf-form__label::before, .vf-form__radio:focus + .vf-form__label::before {
border-color: #54585a;
-webkit-box-shadow: 0 0 0 0.125rem #54585a;
box-shadow: 0 0 0 0.125rem #54585a;
}
.vf-form__radio:checked + .vf-form__label::before {
background: #3b6fb6;
border-color: #3b6fb6;
}
.vf-form__radio:disabled + .vf-form__label {
color: #707372;
cursor: not-allowed;
}
.vf-form__radio:disabled + .vf-form__label::before {
background-color: #d0d0ce;
-webkit-box-shadow: none;
box-shadow: none;
}
.vf-form__item--radio .vf-form__helper {
margin-left: 29px;
}
.vf-form__legend + .vf-cluster__inner {
margin-top: 1rem ;
}
/*!
* Component: @visual-framework/vf-form__textarea
* Version: 3.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__textarea {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 19px;
color: #1a1c1a;
font-weight: 400;
line-height: 1.421;
margin: 0 0 16px 0;
margin: var(--vf-stack-margin, 0) 0 var(--vf-text-margin--bottom, 16px) 0;
/* stylelint-disable */
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* stylelint-enable */
border: 2px solid #707372;
border-radius: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: block;
padding: 0.5rem;
position: relative;
width: 100%;
}
.vf-form__textarea:hover, .vf-form__textarea:focus {
border-color: #54585a;
-webkit-box-shadow: 0 0 0 0.0625rem #54585a;
box-shadow: 0 0 0 0.0625rem #54585a;
color: #000000;
outline: 0;
}
/*!
* Component: @visual-framework/vf-form__item
* Version: 3.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__item > * {
--vf-stack-margin--custom: 0.25rem;
}
.vf-form__item--inline .vf-form__select,
.vf-form__item--inline .vf-form__label {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
}
.vf-form__item--inline .vf-form__select {
width: auto;
padding: 0.5rem 2rem 0.5rem 1.25rem;
}
/*!
* Component: @visual-framework/vf-form__label
* Version: 3.0.0-alpha.0
* Location: components/undefined
*/
.vf-form__label {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 19px;
color: #1a1c1a;
font-weight: 400;
line-height: 1.421;
margin: var(--vf-stack-margin, 0) 0 0 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.vf-form__label--required .vf-icon {
fill: #d41645;
height: 0.5em;
width: 0.5em;
}
/*!
* Component: @visual-framework/vf-form__select
* Version: 3.0.0
* Location: components/undefined
*/
.vf-form__select {
font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
font-size: 19px;
color: #1a1c1a;
font-weight: 400;
line-height: 1.421;
margin: var(--vf-stack-margin, 0) 0 0 0;
/* stylelint-disable */
--webkit-appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* stylelint-enable */
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M70 110.236a17.332 17.332 0 01-12.306-5.096L2.884 47.502A10.502 10.502 0 1118.116 33.04l49.35 51.968a3.486 3.486 0 005.068 0l49.35-51.968a10.502 10.502 0 1115.232 14.462L82.6 105a17.766 17.766 0 01-12.6 5.236z' fill='%23707372'/%3E%3C/svg%3E");
background-position: right 1rem top 50%, 0 0;
background-repeat: no-repeat, repeat;
background-size: 1.125em;
border: 2px solid #707372;
border-radius: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #54585a;
display: block;
max-width: 100%;
padding: 0.5rem;
width: 100%;
}
.vf-form__select:focus, .vf-form__select:hover {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M70 110.236a17.332 17.332 0 01-12.306-5.096L2.884 47.502A10.502 10.502 0 1118.116 33.04l49.35 51.968a3.486 3.486 0 005.068 0l49.35-51.968a10.502 10.502 0 1115.232 14.462L82.6 105a17.766 17.766 0 01-12.6 5.236z' fill='%2354585A'/%3E%3C/svg%3E");
border-color: #54585a;
-webkit-box-shadow: 0 0 0 0.0625rem #54585a;
box-shadow: 0 0 0 0.0625rem #54585a;
color: #000000;
outline: 0;
}
.vf-form__select::-ms-expand {
display: none;
}
.vf-form__select option {
font-weight: normal;
}