UNPKG

react-select-v1

Version:

A Select control built with and for ReactJS

118 lines (103 loc) 2.84 kB
// // Multi-Select // ------------------------------ // Base .Select--multi { // add margin to the input element .Select-input { vertical-align: middle; // border: 1px solid transparent; margin-left: @select-padding-horizontal; padding: 0; } &.Select--rtl .Select-input { margin-left: 0; margin-right: @select-padding-horizontal; } // reduce margin once there is value &.has-value .Select-input { margin-left: @select-item-gutter; } // Items .Select-value { background-color: @select-item-bg-fb; /* Fallback color for IE 8 */ background-color: @select-item-bg; border-radius: @select-item-border-radius; border: 1px solid @select-item-border-color-fb; /* Fallback color for IE 8 */ border: 1px solid @select-item-border-color; color: @select-item-color; display: inline-block; font-size: @select-item-font-size; line-height: 1.4; margin-left: @select-item-gutter; margin-top: @select-item-gutter; vertical-align: top; } // common .Select-value-icon, .Select-value-label { display: inline-block; vertical-align: middle; } // label .Select-value-label { .border-right-radius( @select-item-border-radius ); cursor: default; padding: @select-item-padding-vertical @select-item-padding-horizontal; } a.Select-value-label { color: @select-item-color; cursor: pointer; text-decoration: none; &:hover { text-decoration: underline; } } // icon .Select-value-icon { cursor: pointer; .border-left-radius( @select-item-border-radius ); border-right: 1px solid @select-item-border-color-fb; /* Fallback color for IE 8 */ border-right: 1px solid @select-item-border-color; // move the baseline up by 1px padding: (@select-item-padding-vertical - 1) @select-item-padding-horizontal (@select-item-padding-vertical + 1); &:hover, &:focus { background-color: @select-item-hover-bg-fb; /* Fallback color for IE 8 */ background-color: @select-item-hover-bg; color: @select-item-hover-color; } &:active { background-color: @select-item-border-color-fb; /* Fallback color for IE 8 */ background-color: @select-item-border-color; } } &.Select--rtl { .Select-value { margin-left: 0; margin-right: @select-item-gutter; } .Select-value-icon { border-right: none; border-left: 1px solid @select-item-border-color-fb; /* Fallback color for IE 8 */ border-left: 1px solid @select-item-border-color; } } } .Select--multi.is-disabled { .Select-value { background-color: @select-item-disabled-bg; border: 1px solid @select-item-disabled-border-color; color: @select-item-disabled-color; } // icon .Select-value-icon { cursor: not-allowed; border-right: 1px solid @select-item-disabled-border-color; &:hover, &:focus, &:active { background-color: @select-item-disabled-bg; } } }