.dropdown { &__label { display: block; font-size: $small; font-weight: $regular; color: $core-fleet-black; margin-bottom: $pad-xsmall; &--error { font-weight: $bold; } } &__select { &--error { &.Select { .Select-control { color: $core-vibrant-red; border: 1px solid $core-vibrant-red; box-sizing: border-box; border-radius: 4px; } .Select-arrow { border-top-color: $ui-error; } } } } &__option { display: flex; flex-direction: column; } &__help-text { margin-top: $pad-xsmall; font-size: $xx-small; white-space: normal; color: $core-fleet-blue; font-style: italic; } } .Select { &.dropdown__select { border: 1px solid $ui-fleet-black-10; border-radius: $border-radius; &:hover { box-shadow: none; border: 1px solid $core-vibrant-blue; } } .Select-control { background-color: $ui-light-grey; border: 0; border-radius: $border-radius; .Select-value { font-size: $small; background-color: $ui-light-grey; } } .Select-value { font-size: $small; border-radius: $border-radius; background-color: $ui-light-grey; .Select-value-icon { border: 0; float: right; position: relative; line-height: 28px; width: 20px; padding: 0; margin: 0 5px; text-indent: -999em; &::after { transition: color 150ms ease-in-out; content: url(../assets/images/icon-close-fleet-black-16x16@2x.png); transform: scale(0.5); position: absolute; top: -5px; left: -5px; visibility: visible; font-size: $small; color: $ui-gray; text-indent: 0; } &:hover { &::after { content: url("../assets/images/icon-close-vibrant-blue-16x16@2x.png"); transform: scale(0.5); } } } .Select-value-label { font-size: $small; color: $core-fleet-black; vertical-align: middle; } } &--single { > .Select-control { .Select-value { line-height: 34px; border: none; } } } .Select-arrow { content: url("../assets/images/icon-chevron-black-16x16@2x.png"); height: 16px; width: 16px; vertical-align: middle; margin-top: -1px; margin-left: -4px; border: none; } &.is-focused { &.dropdown__select { border: 1px solid $core-vibrant-blue; } &:not(.is-open) { .Select-control { box-shadow: none; border-color: $core-vibrant-blue; } } } &.is-open { .Select-control { border-radius: $border-radius; .Select-arrow { content: url("../assets/images/icon-chevron-blue-16x16@2x.png"); height: 16px; width: 16px; margin-left: -4px; border: none; top: 0px; } } } :hover { .Select-arrow { content: url("../assets/images/icon-chevron-blue-16x16@2x.png"); height: 16px; width: 16px; margin-left: -4px; border: none; } &.is-open { .Select-arrow { content: url("../assets/images/icon-chevron-blue-16x16@2x.png"); height: 16px; width: 16px; margin-left: -4px; border: none; } } } &.has-value { > .Select-control, &.is-pseudo-focused > .Select-control { .Select-value { .Select-value-label { color: $core-fleet-black; font-size: $small; } } } } .Select-menu-outer { box-shadow: 0 4px 10px rgba(52, 59, 96, 0.15); z-index: 6; overflow: hidden; border: 0; margin: 1px 0 0; padding: $pad-small; animation: fade-in 150ms ease-out; } .Select-noresults { font-size: $x-small; } .Select-option { color: $core-fleet-black; font-size: $x-small; margin: 0; padding: 10px; display: block; &.is-focused { background-color: $ui-vibrant-blue-10; .Select-icon { color: $ui-vibrant-blue-10; } } &:last-child { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } &.is-disabled { color: $ui-fleet-black-50; font-style: italic; .Select-icon { visibility: hidden; opacity: 0; } } } .Select-icon { color: $ui-gray; } .Select-placeholder { color: $core-fleet-blue; font-size: $small; line-height: 34px; box-sizing: border-box; } .Select-input { color: $core-fleet-blue; font-size: $small; box-sizing: border-box; height: 34px; > input { line-height: 34px; padding: 0; } } &.Select--multi { .Select-control { display: flex; align-items: center; height: auto; } .Select-multi-value-wrapper { flex-grow: 1; .Select-value { border: 1px solid $ui-fleet-black-75; vertical-align: middle; margin-top: 0; display: inline-flex; flex-direction: row-reverse; .Select-value-icon:hover { background-color: initial; } .Select-value-label { font-size: $x-small; align-self: center; } } } .Select-arrow-zone { display: block; } .Select-option { &.is-disabled { color: $core-fleet-black; cursor: default; &.is-focused { background-color: $ui-vibrant-blue-10; color: $core-white; } } } .Select-value-label { padding: 0 0 0 10px; } } .premium-feature-icon { position: relative; top: 4px; margin-left: 3px; } }