2017-11-21 18:53:09 +08:00
|
|
|
.mobile-view .select-kit.is-expanded {
|
2017-09-15 01:59:32 +08:00
|
|
|
z-index: 1000;
|
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit, .select-kit {
|
2017-11-10 02:57:53 +08:00
|
|
|
border: 1px solid transparent;
|
2017-10-20 03:51:08 +08:00
|
|
|
min-width: 220px;
|
2017-08-24 22:04:47 +08:00
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2017-08-26 01:56:57 +08:00
|
|
|
display: inline-block;
|
2017-08-24 22:04:47 +08:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-box-direction: normal;
|
|
|
|
-ms-flex-direction: column;
|
|
|
|
flex-direction: column;
|
2017-08-13 20:34:50 +08:00
|
|
|
position: relative;
|
2017-10-20 03:51:08 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2017-08-13 20:34:50 +08:00
|
|
|
|
2017-09-12 01:14:22 +08:00
|
|
|
&.is-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-10-20 03:51:08 +08:00
|
|
|
&.is-disabled {
|
|
|
|
pointer-events: none;
|
2017-08-30 23:04:17 +08:00
|
|
|
}
|
|
|
|
|
2017-08-13 20:34:50 +08:00
|
|
|
&.is-expanded {
|
2017-09-11 17:23:46 +08:00
|
|
|
z-index: 999;
|
2017-08-13 20:34:50 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit-body {
|
2017-08-24 22:04:47 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -ms-flexbox;
|
2017-08-13 20:34:50 +08:00
|
|
|
display: flex;
|
2017-08-24 22:04:47 +08:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-box-direction: normal;
|
|
|
|
-ms-flex-direction: column;
|
|
|
|
flex-direction: column;
|
2017-08-13 20:34:50 +08:00
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
2017-08-24 22:04:47 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit-collection, {
|
2017-09-06 22:58:00 +08:00
|
|
|
border-radius: inherit;
|
2017-08-24 22:04:47 +08:00
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-09-06 22:58:00 +08:00
|
|
|
&.is-above {
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit-body {
|
2017-08-13 20:34:50 +08:00
|
|
|
bottom: 0;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit-filter {
|
|
|
|
border-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select-kit-wrapper {
|
2017-08-13 20:34:50 +08:00
|
|
|
bottom: 0;
|
|
|
|
top: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
2017-08-26 01:56:57 +08:00
|
|
|
opacity: 0.7;
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit-header, .select-kit-header {
|
2017-11-10 02:57:53 +08:00
|
|
|
border: 1px solid transparent;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
2017-10-20 03:51:08 +08:00
|
|
|
-webkit-transition: all .25s;
|
|
|
|
-o-transition: all .25s;
|
|
|
|
transition: all .25s;
|
2017-08-13 20:34:50 +08:00
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
2017-10-20 03:51:08 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -ms-flexbox;
|
2017-08-26 01:56:57 +08:00
|
|
|
display: flex;
|
2017-08-29 20:31:03 +08:00
|
|
|
-webkit-box-align: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
2017-08-26 01:56:57 +08:00
|
|
|
justify-content: space-between;
|
2017-09-06 22:58:00 +08:00
|
|
|
-webkit-box-orient: horizontal;
|
|
|
|
-webkit-box-direction: normal;
|
|
|
|
-ms-flex-direction: row;
|
|
|
|
flex-direction: row;
|
|
|
|
-webkit-box-pack: justify;
|
|
|
|
-ms-flex-pack: justify;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
2017-10-20 03:51:08 +08:00
|
|
|
.selected-name {
|
2017-09-06 22:58:00 +08:00
|
|
|
text-align: left;
|
2017-10-20 03:51:08 +08:00
|
|
|
-webkit-box-flex: 10;
|
|
|
|
-ms-flex: 10;
|
|
|
|
flex: 10;
|
|
|
|
-o-text-overflow: ellipsis;
|
|
|
|
text-overflow: ellipsis;
|
2017-09-06 22:58:00 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2017-10-20 03:51:08 +08:00
|
|
|
.btn-clear {
|
|
|
|
padding: 0px 10px;
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
2017-09-06 22:58:00 +08:00
|
|
|
.icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.caret-icon {
|
|
|
|
margin-left: 5px;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2017-09-12 01:14:22 +08:00
|
|
|
|
|
|
|
.d-button-label {
|
2017-10-20 03:51:08 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -ms-flexbox;
|
2017-09-12 01:14:22 +08:00
|
|
|
display: flex;
|
2017-10-20 03:51:08 +08:00
|
|
|
-webkit-box-align: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
2017-09-12 01:14:22 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit-body, .select-kit-body {
|
2017-08-13 20:34:50 +08:00
|
|
|
display: none;
|
2017-08-30 23:04:17 +08:00
|
|
|
background: $secondary;
|
2017-08-24 22:04:47 +08:00
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit-row, .select-kit-row {
|
2017-08-13 20:34:50 +08:00
|
|
|
cursor: pointer;
|
2017-11-10 02:57:53 +08:00
|
|
|
line-height: normal;
|
2017-08-13 20:34:50 +08:00
|
|
|
outline: none;
|
2017-08-24 22:04:47 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -ms-flexbox;
|
2017-08-13 20:34:50 +08:00
|
|
|
display: flex;
|
2017-11-10 02:57:53 +08:00
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2017-10-20 03:51:08 +08:00
|
|
|
-webkit-box-align: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
2017-08-24 22:04:47 +08:00
|
|
|
-webkit-box-pack: start;
|
|
|
|
-ms-flex-pack: start;
|
|
|
|
justify-content: flex-start;
|
2017-09-06 22:58:00 +08:00
|
|
|
|
2017-10-20 03:51:08 +08:00
|
|
|
.name {
|
2017-09-06 22:58:00 +08:00
|
|
|
margin: 0;
|
2017-10-20 03:51:08 +08:00
|
|
|
overflow: hidden;
|
|
|
|
-o-text-overflow: ellipsis;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
flex: 10;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-highlighted {
|
2017-09-11 01:12:03 +08:00
|
|
|
background: $tertiary-low;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
|
2017-09-11 01:12:03 +08:00
|
|
|
&.is-selected {
|
2017-09-06 22:58:00 +08:00
|
|
|
background: $highlight-medium;
|
|
|
|
}
|
2017-09-11 01:12:03 +08:00
|
|
|
|
|
|
|
&.is-selected.is-highlighted {
|
|
|
|
background: $tertiary-low;
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit-collection, .select-kit-collection {
|
2017-08-13 20:34:50 +08:00
|
|
|
background: $secondary;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2017-09-06 22:58:00 +08:00
|
|
|
border-radius: inherit;
|
2017-08-13 20:34:50 +08:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2017-10-20 03:51:08 +08:00
|
|
|
margin: 0;
|
2017-09-06 22:58:00 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit-collection {
|
2017-09-06 22:58:00 +08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
&:hover .select-kit-row.is-highlighted:hover {
|
2017-09-11 01:12:03 +08:00
|
|
|
background: $tertiary-low;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 5px;
|
2017-10-11 04:07:46 +08:00
|
|
|
background: dark-light-choose($primary-medium, $secondary-medium);
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit-filter, .select-kit-filter {
|
2017-09-06 22:58:00 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
|
|
|
-webkit-box-align: center;
|
|
|
|
-ms-flex-align: center;
|
|
|
|
align-items: center;
|
|
|
|
-webkit-box-pack: justify;
|
|
|
|
-ms-flex-pack: justify;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.filter-input, .filter-input:focus, .filter-input:active {
|
2017-09-06 22:58:00 +08:00
|
|
|
background: none;
|
|
|
|
margin: 0;
|
2017-10-20 03:51:08 +08:00
|
|
|
padding: 0;
|
2017-09-06 22:58:00 +08:00
|
|
|
-webkit-box-flex: 1;
|
|
|
|
-ms-flex: 1;
|
|
|
|
flex: 1;
|
|
|
|
outline: none;
|
|
|
|
border: 0;
|
2017-10-20 03:51:08 +08:00
|
|
|
border-radius: 0;
|
2017-09-06 22:58:00 +08:00
|
|
|
-webkit-box-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
width: 100%;
|
2017-10-20 03:51:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-hidden {
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
border: 0;
|
2017-11-12 04:16:00 +08:00
|
|
|
margin: -1px;
|
2017-10-20 03:51:08 +08:00
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
position: fixed;
|
|
|
|
outline: 0;
|
|
|
|
left: 0px;
|
|
|
|
top: 0px;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-box-kit-wrapper, .select-kit-wrapper {
|
2017-08-13 20:34:50 +08:00
|
|
|
position: absolute;
|
2017-11-21 18:53:09 +08:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2017-08-13 20:34:50 +08:00
|
|
|
background: none;
|
|
|
|
display: none;
|
2017-08-24 22:04:47 +08:00
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2017-08-13 20:34:50 +08:00
|
|
|
pointer-events: none;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
}
|