2018-02-06 01:25:39 +08:00
|
|
|
.select-kit {
|
2017-11-27 00:21:39 +08:00
|
|
|
border: none;
|
2017-10-20 03:51:08 +08:00
|
|
|
min-width: 220px;
|
2018-05-02 08:41:28 +08:00
|
|
|
box-sizing: border-box;
|
2017-08-26 01:56:57 +08:00
|
|
|
display: inline-block;
|
2018-05-02 08:41:28 +08:00
|
|
|
flex-direction: column;
|
2017-08-13 20:34:50 +08:00
|
|
|
position: relative;
|
2017-10-20 03:51:08 +08:00
|
|
|
vertical-align: middle;
|
2018-05-02 08:41:28 +08:00
|
|
|
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 {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("dropdown");
|
2017-08-13 20:34:50 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit-body {
|
2017-08-13 20:34:50 +08:00
|
|
|
display: flex;
|
2018-05-02 08:41:28 +08:00
|
|
|
flex-direction: column;
|
2017-08-13 20:34:50 +08:00
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2020-02-03 21:22:14 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
2017-08-24 22:04:47 +08:00
|
|
|
|
2018-01-25 22:53:36 +08:00
|
|
|
.select-kit-collection {
|
2017-09-06 22:58:00 +08:00
|
|
|
border-radius: inherit;
|
2020-02-13 03:14:36 +08:00
|
|
|
box-sizing: border-box;
|
2020-02-03 21:22:14 +08:00
|
|
|
width: 100%;
|
2017-08-24 22:04:47 +08:00
|
|
|
}
|
2020-04-22 16:54:02 +08:00
|
|
|
|
|
|
|
.select-kit-header {
|
|
|
|
outline: 1px solid $tertiary;
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2020-02-03 21:22:14 +08:00
|
|
|
&.is-loading {
|
|
|
|
.select-kit-collection {
|
|
|
|
overflow: hidden;
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
2020-02-03 21:22:14 +08:00
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
|
2020-02-03 21:22:14 +08:00
|
|
|
&.is-above {
|
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 {
|
2019-02-01 02:59:49 +08:00
|
|
|
color: $primary-high;
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-header {
|
2017-11-10 02:57:53 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: all 0.25s;
|
2017-08-13 20:34:50 +08:00
|
|
|
cursor: pointer;
|
2017-08-26 01:56:57 +08:00
|
|
|
display: flex;
|
2018-05-02 08:41:28 +08:00
|
|
|
align-items: center;
|
|
|
|
flex-direction: row;
|
2018-09-19 20:37:04 +08:00
|
|
|
min-height: 30px;
|
2018-06-08 17:49:31 +08:00
|
|
|
|
2017-10-20 03:51:08 +08:00
|
|
|
.selected-name {
|
2017-09-06 22:58:00 +08:00
|
|
|
text-align: left;
|
2018-11-15 23:08:27 +08:00
|
|
|
flex: 0 1 auto;
|
2017-09-06 22:58:00 +08:00
|
|
|
color: inherit;
|
2020-02-03 21:22:14 +08:00
|
|
|
display: flex;
|
|
|
|
|
2020-02-05 07:41:10 +08:00
|
|
|
.d-icon + .name {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2019-12-18 22:25:42 +08:00
|
|
|
.name {
|
|
|
|
display: inline-block;
|
2020-03-28 04:06:40 +08:00
|
|
|
> .d-icon {
|
2020-03-13 21:36:04 +08:00
|
|
|
margin-left: 0.5em;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2020-02-03 21:22:14 +08:00
|
|
|
}
|
|
|
|
|
2020-03-28 04:06:40 +08:00
|
|
|
> .d-icon {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-02-03 21:22:14 +08:00
|
|
|
&.select-kit-selected-color {
|
|
|
|
border-bottom-width: 5px;
|
|
|
|
border-bottom-style: solid;
|
2019-12-18 22:25:42 +08:00
|
|
|
}
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
|
2017-10-20 03:51:08 +08:00
|
|
|
.btn-clear {
|
2020-02-06 15:30:26 +08:00
|
|
|
margin-left: 0.25em;
|
2020-02-03 21:22:14 +08:00
|
|
|
padding: 0.25em;
|
2017-10-20 03:51:08 +08:00
|
|
|
border: 0;
|
|
|
|
background: none;
|
2020-02-03 21:22:14 +08:00
|
|
|
min-height: auto;
|
2017-10-20 03:51:08 +08:00
|
|
|
}
|
|
|
|
|
2017-09-06 22:58:00 +08:00
|
|
|
.icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.caret-icon {
|
2019-01-23 01:33:46 +08:00
|
|
|
margin-left: auto;
|
|
|
|
padding-left: 5px;
|
2017-09-06 22:58:00 +08:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2017-09-12 01:14:22 +08:00
|
|
|
|
|
|
|
.d-button-label {
|
|
|
|
display: flex;
|
2018-05-02 08:41:28 +08:00
|
|
|
align-items: center;
|
2017-09-12 01:14:22 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2017-09-12 01:14:22 +08:00
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-body {
|
2017-08-13 20:34:50 +08:00
|
|
|
display: none;
|
2017-08-30 23:04:17 +08:00
|
|
|
background: $secondary;
|
2018-05-02 08:41:28 +08:00
|
|
|
box-sizing: border-box;
|
2020-02-03 21:22:14 +08:00
|
|
|
min-width: inherit;
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-row {
|
2017-08-13 20:34:50 +08:00
|
|
|
cursor: pointer;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2017-08-13 20:34:50 +08:00
|
|
|
outline: none;
|
|
|
|
display: flex;
|
2018-01-24 23:42:13 +08:00
|
|
|
flex: 1 0 auto;
|
2018-05-02 08:41:28 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
align-items: center;
|
|
|
|
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;
|
2018-05-02 08:41:28 +08:00
|
|
|
text-overflow: ellipsis;
|
2018-11-13 01:21:54 +08:00
|
|
|
flex: 1 1 0%;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
|
2020-02-05 07:41:10 +08:00
|
|
|
.d-icon + .name,
|
|
|
|
.svg-icon-title + .name {
|
|
|
|
margin-left: 0.5em;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.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;
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.discourse-tag,
|
|
|
|
.discourse-tag-count {
|
2018-04-09 23:51:09 +08:00
|
|
|
color: $primary;
|
|
|
|
}
|
2020-02-03 21:22:14 +08:00
|
|
|
|
|
|
|
&.create-color-row {
|
|
|
|
border-left-style: solid;
|
|
|
|
border-left-width: 5px;
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.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;
|
2018-02-26 18:42:57 +08:00
|
|
|
padding: 0;
|
2018-02-01 23:56:07 +08:00
|
|
|
max-height: 200px;
|
2020-02-03 21:22:14 +08:00
|
|
|
width: 100%;
|
2017-09-06 22:58:00 +08:00
|
|
|
|
2018-04-05 22:45:19 +08:00
|
|
|
.validation-message {
|
|
|
|
white-space: nowrap;
|
|
|
|
color: $danger;
|
|
|
|
flex: 1 0 auto;
|
|
|
|
margin: 5px;
|
|
|
|
padding: 0 2px;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit-filter {
|
2017-11-27 00:21:39 +08:00
|
|
|
box-sizing: border-box;
|
2018-05-02 08:41:28 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2020-02-03 21:22:14 +08:00
|
|
|
width: 100%;
|
2017-09-06 22:58:00 +08:00
|
|
|
|
2020-02-03 21:22:14 +08:00
|
|
|
.filter-input {
|
2017-09-06 22:58:00 +08:00
|
|
|
background: none;
|
|
|
|
margin: 0;
|
2017-10-20 03:51:08 +08:00
|
|
|
padding: 0;
|
2019-01-22 02:40:55 +08:00
|
|
|
flex: 1 0 0px;
|
2017-09-06 22:58:00 +08:00
|
|
|
outline: none;
|
|
|
|
border: 0;
|
2017-10-20 03:51:08 +08:00
|
|
|
border-radius: 0;
|
2018-05-02 08:41:28 +08:00
|
|
|
box-shadow: none;
|
2020-02-03 21:22:14 +08:00
|
|
|
width: auto;
|
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;
|
2018-01-25 22:53:36 +08:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2017-09-06 22:58:00 +08:00
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|
|
|
|
|
2018-02-06 01:25:39 +08:00
|
|
|
.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;
|
2018-05-02 08:41:28 +08:00
|
|
|
box-sizing: border-box;
|
2017-08-13 20:34:50 +08:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-02-03 21:22:14 +08:00
|
|
|
|
|
|
|
.select-kit-errors-collection {
|
|
|
|
background: $danger;
|
|
|
|
padding: 0.25em 1em;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.select-kit-error {
|
|
|
|
list-style: none;
|
|
|
|
color: $secondary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-content,
|
|
|
|
.is-loading {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 0 auto;
|
|
|
|
padding: 0.5em;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: $secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-loading {
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2017-08-13 20:34:50 +08:00
|
|
|
}
|