.target-select { &__label { font-size: $x-small; color: $core-fleet-black; display: block; margin: 0; text-align: right; &--error { .target-select__select-targets { color: $ui-error; } } } .Select.is-focused:not(.is-open) > .Select-control { box-shadow: none; border-color: $ui-fleet-black-75; // Override blue border on focus } &__select-targets { float: left; font-weight: $bold; } &__targets-count { font-size: $x-small; font-weight: $regular; color: $core-fleet-black; } &.Select { border-radius: $border-radius; border: 1px solid $ui-fleet-black-10; &.is-focused, &:hover { border: 1px solid $ui-fleet-black-75; } .Select-control { min-height: 48px; background-color: $core-fleet-white; } .Select-arrow { height: 16px; width: 16px; margin-left: 6px; border: none; .Select-arrow-zone { &:hover { .Select-arrow { border-top-color: transparent; } } } } &:hover, &.is-open { .Select-arrow { margin-left: 6px; } } .Select-input { height: 53px; margin: 0; padding: 0 0 0 10px; > input { line-height: 53px; color: $core-fleet-black; font-size: $x-small; } } .target-select__arrow { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; background: transparent; cursor: pointer; svg { transition: transform 0.25s ease; } } .target-select__arrow--open svg { transform: rotate(180deg); } .Select-placeholder { line-height: 53px; color: $ui-fleet-black-75; } &.Select--multi { .Select-option { padding: 0; &.is-disabled { &.is-focused { background-color: $ui-off-white; // Mimics table row hover, where action hover button is darker on hover $ui-fleet-black-5 border-radius: 8px; } } &:last-child { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } } } } .Select-menu-outer { max-height: 500px; height: 500px; overflow: hidden; // outer still clips the menu so padding works box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.15); position: absolute; z-index: 10; // Ensure dropdown appears above other elements .Select-menu { height: 100%; max-height: 100%; overflow: hidden; // menu itself does not scroll position: relative; &::after { @extend %fleeticon; content: "\f03c"; font-size: 150px; position: absolute; left: 50%; top: 50%; margin-top: -75px; opacity: 0.25; width: 50%; text-align: center; } } .target-list { display: flex; height: 100%; // fills the menu height } .target-list__options { flex: 1 1 auto; min-width: 0; overflow-y: auto; // only the options column scrolls } .target-list__option-details { flex: 0 0 50%; overflow: hidden; // details do not scroll with list } } .Select-value { border-radius: $border-radius; background-color: $core-fleet-white; .Select-value-icon { height: 100%; } .Select-value-label { font-size: $x-small; color: $ui-fleet-black-75; font-size: $x-small; padding: 0 0 0 $pad-medium; line-height: 34px; } } .Select-clear { width: 16px; height: 16px; border-radius: 0px; margin-left: -4px; margin-top: 6px; } .Select-clear-zone { width: 30px; margin-right: $pad-small; } .Select-arrow-zone { width: 30px; margin-right: 5px; } .Select-loading-zone { margin-right: 10px; } &.is-empty { .Select-menu-outer { .Select-menu { &::after { content: "\f049"; font-size: 180px; margin-top: -90px; color: $ui-gray; } } } } &.is-disabled { .Select-value-label { padding: 0 $pad-medium; } } }