-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Custom style overrides - single and multi examples and tests - Downgraded sass naming convention errors to warnings until we can do inline/file based rules/exclusions - Added spacing between example components - `allowCreate` dependant on JedWatson/react-select#660
- Loading branch information
Showing
7 changed files
with
217 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
@import '../variable'; | ||
|
||
// control options | ||
$select-input-border-color: $color-border-lighter; | ||
$select-input-border-radius: $border-radius-base; | ||
$select-input-border-focus: $select-input-border-color; | ||
$select-input-height: 30px; | ||
$select-padding-vertical: 4px; | ||
$select-padding-horizontal: 7px; | ||
$select-text-color: $color-text; | ||
|
||
// menu options | ||
$select-option-color: $color-text-light; | ||
$select-option-focused-color: $select-option-color; | ||
$select-option-focused-bg: $color-gray-white; | ||
|
||
// clear "x" button | ||
$select-clear-color: $color-text-light; | ||
$select-clear-hover-color: $color-negative; | ||
|
||
// arrow indicator | ||
$select-arrow-color: $color-text-light; | ||
$select-arrow-color-hover: $color-text; | ||
|
||
// multi-select item | ||
$select-item-gutter: 4px; | ||
$select-item-color: $color-text-inverse; | ||
$select-item-hover-color: $color-text-light; | ||
$select-item-bg: $color-gray-darker; | ||
$select-item-hover-bg: $select-item-bg; | ||
$select-item-font-size: 11px; | ||
$select-item-padding-vertical: 0; | ||
$select-item-padding-horizontal: 5px; | ||
$select-item-border-radius: 0; | ||
|
||
|
||
@import './node_modules/react-select/scss/default'; | ||
|
||
|
||
.Select { | ||
&:not(.is-disabled) { | ||
.Select-control { | ||
box-shadow: 0 1px 0 0 $color-border-light; | ||
|
||
&:hover, | ||
&:focus { | ||
box-shadow: 0 2px 0 0 $color-border-light; | ||
} | ||
} | ||
|
||
&.is-open, | ||
&.is-focused { | ||
&:not(.is-open) { | ||
> .Select-control { | ||
border-color: $color-border-lighter; | ||
} | ||
} | ||
} | ||
} | ||
|
||
&--multi { | ||
$multi-select-value-height: $select-input-height - ($select-item-padding-horizontal * 2); | ||
|
||
.Select-value { | ||
border: 0; | ||
height: $multi-select-value-height; | ||
|
||
&-icon, | ||
&-label { | ||
line-height: 1; | ||
margin-top: 3px; | ||
} | ||
|
||
&-icon { | ||
border: 0; | ||
float: right; | ||
font-size: $font-size-subheader; | ||
text-align: left; | ||
width: 13px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters