2018-02-06 01:25:39 +08:00
|
|
|
.select-kit {
|
2017-11-21 18:53:09 +08:00
|
|
|
&.multi-select {
|
2017-11-10 02:57:53 +08:00
|
|
|
width: 300px;
|
|
|
|
background: $secondary;
|
|
|
|
border-radius: 0;
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-body {
|
2017-11-10 02:57:53 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-row {
|
2017-11-10 02:57:53 +08:00
|
|
|
margin: 5px;
|
|
|
|
min-height: 1px;
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-filter {
|
2017-11-10 02:57:53 +08:00
|
|
|
border: 0;
|
2018-02-26 18:42:57 +08:00
|
|
|
flex: 1;
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.multi-select-header {
|
2017-11-10 02:57:53 +08:00
|
|
|
background: $secondary;
|
2017-12-05 00:35:02 +08:00
|
|
|
border: 1px solid $primary-medium;
|
2017-11-10 02:57:53 +08:00
|
|
|
|
|
|
|
&.is-focused {
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("focus");
|
2017-11-10 02:57:53 +08:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
2017-11-21 18:53:09 +08:00
|
|
|
.multi-select-header {
|
2017-11-10 02:57:53 +08:00
|
|
|
background: #e9e9e9;
|
|
|
|
border-color: #ddd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-highlighted {
|
2017-11-21 18:53:09 +08:00
|
|
|
.multi-select-header {
|
2017-11-10 02:57:53 +08:00
|
|
|
border-radius: 0;
|
|
|
|
border-bottom: 1px solid transparent;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("focus");
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-expanded {
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-wrapper {
|
2017-11-10 02:57:53 +08:00
|
|
|
display: block;
|
|
|
|
border: 1px solid $tertiary;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("focus");
|
2017-11-10 02:57:53 +08:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.multi-select-header {
|
2017-11-10 02:57:53 +08:00
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-body {
|
2017-11-10 02:57:53 +08:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.choices {
|
|
|
|
margin: 0;
|
2017-11-27 00:21:39 +08:00
|
|
|
padding: 2.5px;
|
2017-11-10 02:57:53 +08:00
|
|
|
box-sizing: border-box;
|
2017-11-27 00:21:39 +08:00
|
|
|
display: inline-flex;
|
|
|
|
justify-content: flex-start;
|
|
|
|
flex-wrap: wrap;
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.choice {
|
2017-11-10 02:57:53 +08:00
|
|
|
display: inline-flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0 5px;
|
|
|
|
border: 1px solid transparent;
|
2017-11-21 18:53:09 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2017-11-27 00:21:39 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-direction: row;
|
2018-02-26 18:42:57 +08:00
|
|
|
margin: 2px;
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.filter {
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
white-space: nowrap;
|
|
|
|
min-width: 50px;
|
|
|
|
padding: 0;
|
2017-11-21 18:53:09 +08:00
|
|
|
outline: none;
|
2018-02-26 18:42:57 +08:00
|
|
|
flex: 1;
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.filter-input, .filter-input:focus {
|
2017-11-10 02:57:53 +08:00
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
outline: none;
|
|
|
|
min-width: auto;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
outline: 0;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 0;
|
2017-11-21 18:53:09 +08:00
|
|
|
height: 21px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selected-color {
|
|
|
|
.selected-color-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.color-preview {
|
|
|
|
height: 5px;
|
|
|
|
margin: 0 2px 2px 2px;
|
2018-01-11 20:05:29 +08:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-26 18:42:57 +08:00
|
|
|
.selected-category {
|
|
|
|
.badge-wrapper {
|
|
|
|
&.bullet {
|
|
|
|
margin-right: 2.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
margin: auto 2.5px;
|
|
|
|
padding: 2px 4px;
|
|
|
|
line-height: $line-height-medium;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '\f00d';
|
|
|
|
color: $primary-low-mid;
|
|
|
|
font-family: 'FontAwesome';
|
|
|
|
font-size: $font-down-2;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-10 02:57:53 +08:00
|
|
|
.selected-name {
|
|
|
|
color: $primary;
|
|
|
|
background-clip: padding-box;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
user-select: none;
|
|
|
|
background-color: $primary-low;
|
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2017-12-14 21:23:40 +08:00
|
|
|
overflow: hidden;
|
2017-12-08 04:49:54 +08:00
|
|
|
flex: 0 1 auto;
|
2017-11-27 00:21:39 +08:00
|
|
|
flex-wrap: nowrap;
|
2018-01-11 20:05:29 +08:00
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2018-01-11 20:05:29 +08:00
|
|
|
.footer {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
|
2018-01-11 20:05:29 +08:00
|
|
|
.body {
|
2018-02-26 18:42:57 +08:00
|
|
|
display: flex;
|
2018-01-11 20:05:29 +08:00
|
|
|
align-items: center;
|
2018-02-26 18:42:57 +08:00
|
|
|
flex: 1;
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
2018-01-11 20:05:29 +08:00
|
|
|
|
|
|
|
.name {
|
2018-02-26 18:42:57 +08:00
|
|
|
padding: 2px 4px;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2018-01-11 20:05:29 +08:00
|
|
|
|
2018-02-26 18:42:57 +08:00
|
|
|
&:after {
|
|
|
|
content: '\f00d';
|
|
|
|
color: $primary-low-mid;
|
|
|
|
font-family: 'FontAwesome';
|
|
|
|
font-size: $font-down-2;
|
|
|
|
}
|
2018-01-13 06:27:38 +08:00
|
|
|
|
2018-02-26 18:42:57 +08:00
|
|
|
&:hover {
|
|
|
|
&:after {
|
|
|
|
color: $danger;
|
2018-01-13 06:27:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-02-26 18:42:57 +08:00
|
|
|
|
|
|
|
&.is-highlighted {
|
|
|
|
box-shadow: 0 0 2px $danger, 0 1px 0 rgba(0,0,0,0.05);
|
|
|
|
}
|
2017-11-10 02:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|