2018-02-05 12:25:39 -05:00
|
|
|
.select-kit {
|
2020-09-21 07:32:46 -04:00
|
|
|
@include unselectable;
|
2017-11-26 11:21:39 -05:00
|
|
|
border: none;
|
2018-05-01 20:41:28 -04:00
|
|
|
box-sizing: border-box;
|
2017-08-25 13:56:57 -04:00
|
|
|
display: inline-block;
|
2018-05-01 20:41:28 -04:00
|
|
|
flex-direction: column;
|
2017-08-13 08:34:50 -04:00
|
|
|
position: relative;
|
2017-10-19 15:51:08 -04:00
|
|
|
vertical-align: middle;
|
2017-08-13 08:34:50 -04:00
|
|
|
|
2021-08-23 04:44:19 -04:00
|
|
|
&.is-hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
> summary {
|
|
|
|
list-style-type: none;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: none !important;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> summary::marker {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2017-10-19 15:51:08 -04:00
|
|
|
&.is-disabled {
|
|
|
|
pointer-events: none;
|
2017-08-30 11:04:17 -04:00
|
|
|
}
|
|
|
|
|
2017-08-13 08:34:50 -04:00
|
|
|
&.is-expanded {
|
2018-01-16 19:05:12 -05:00
|
|
|
z-index: z("dropdown");
|
2017-08-13 08:34:50 -04:00
|
|
|
|
2017-11-21 05:53:09 -05:00
|
|
|
.select-kit-body {
|
2017-08-13 08:34:50 -04:00
|
|
|
display: flex;
|
2018-05-01 20:41:28 -04:00
|
|
|
flex-direction: column;
|
2020-02-03 08:22:14 -05:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-08-23 04:44:19 -04:00
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
box-shadow: shadow("dropdown");
|
|
|
|
background: var(--secondary);
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
2017-08-24 10:04:47 -04:00
|
|
|
|
2018-01-25 09:53:36 -05:00
|
|
|
.select-kit-collection {
|
2020-02-12 14:14:36 -05:00
|
|
|
box-sizing: border-box;
|
2020-02-03 08:22:14 -05:00
|
|
|
width: 100%;
|
2017-08-24 10:04:47 -04:00
|
|
|
}
|
2021-08-23 04:44:19 -04:00
|
|
|
|
|
|
|
.select-kit-filter.is-expanded {
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
&.is-loading {
|
|
|
|
.select-kit-collection {
|
|
|
|
overflow: hidden;
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
2020-02-03 08:22:14 -05:00
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
|
|
|
|
.d-icon {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2018-02-05 12:25:39 -05:00
|
|
|
.select-kit-header {
|
2017-11-09 13:57:53 -05:00
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
2018-06-08 05:49:31 -04:00
|
|
|
transition: all 0.25s;
|
2017-08-13 08:34:50 -04:00
|
|
|
cursor: pointer;
|
2021-08-23 13:57:42 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
2021-08-23 04:44:19 -04:00
|
|
|
|
2021-08-23 15:42:11 -04:00
|
|
|
/* hide native indicator */
|
|
|
|
&::-webkit-details-marker {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-08-23 04:44:19 -04:00
|
|
|
.select-kit-header-wrapper {
|
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 28px;
|
|
|
|
display: flex;
|
|
|
|
flex: 1 0 auto;
|
2021-08-23 13:57:42 -04:00
|
|
|
align-items: center;
|
2021-08-27 06:02:05 -04:00
|
|
|
height: 100%;
|
2021-09-03 17:27:55 -04:00
|
|
|
max-width: 100%;
|
2021-08-23 04:44:19 -04:00
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
|
2020-05-23 00:56:13 -04:00
|
|
|
.d-icon-spinner {
|
|
|
|
-webkit-animation: rotate-forever 1s infinite linear;
|
|
|
|
animation: rotate-forever 1s infinite linear;
|
|
|
|
}
|
|
|
|
|
2017-10-19 15:51:08 -04:00
|
|
|
.selected-name {
|
2017-09-06 10:58:00 -04:00
|
|
|
text-align: left;
|
2018-11-15 10:08:27 -05:00
|
|
|
flex: 0 1 auto;
|
2020-06-12 17:07:50 -04:00
|
|
|
align-items: center;
|
2017-09-06 10:58:00 -04:00
|
|
|
color: inherit;
|
2020-02-03 08:22:14 -05:00
|
|
|
display: flex;
|
2020-05-15 11:36:00 -04:00
|
|
|
outline: none;
|
2020-02-03 08:22:14 -05:00
|
|
|
|
2021-02-15 12:22:10 -05:00
|
|
|
&:focus .d-icon-times {
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
|
2020-02-04 18:41:10 -05:00
|
|
|
.d-icon + .name {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2019-12-18 09:25:42 -05:00
|
|
|
.name {
|
|
|
|
display: inline-block;
|
2020-03-27 16:06:40 -04:00
|
|
|
> .d-icon {
|
2020-03-13 09:36:04 -04:00
|
|
|
margin-left: 0.5em;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2020-02-03 08:22:14 -05:00
|
|
|
}
|
|
|
|
|
2020-03-27 16:06:40 -04:00
|
|
|
> .d-icon {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
&.select-kit-selected-color {
|
|
|
|
border-bottom-width: 5px;
|
|
|
|
border-bottom-style: solid;
|
2019-12-18 09:25:42 -05:00
|
|
|
}
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
|
|
|
|
2017-10-19 15:51:08 -04:00
|
|
|
.btn-clear {
|
2020-02-06 02:30:26 -05:00
|
|
|
margin-left: 0.25em;
|
2020-02-03 08:22:14 -05:00
|
|
|
padding: 0.25em;
|
2017-10-19 15:51:08 -04:00
|
|
|
border: 0;
|
|
|
|
background: none;
|
2020-02-03 08:22:14 -05:00
|
|
|
min-height: auto;
|
2017-10-19 15:51:08 -04:00
|
|
|
}
|
|
|
|
|
2017-09-06 10:58:00 -04:00
|
|
|
.icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.caret-icon {
|
2019-01-22 12:33:46 -05:00
|
|
|
margin-left: auto;
|
2020-05-18 04:50:33 -04:00
|
|
|
margin-right: 0;
|
2019-01-22 12:33:46 -05:00
|
|
|
padding-left: 5px;
|
2017-09-06 10:58:00 -04:00
|
|
|
pointer-events: none;
|
2020-04-22 07:10:02 -04:00
|
|
|
color: inherit;
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
2017-09-11 13:14:22 -04:00
|
|
|
|
|
|
|
.d-button-label {
|
|
|
|
display: flex;
|
2018-05-01 20:41:28 -04:00
|
|
|
align-items: center;
|
2017-09-11 13:14:22 -04:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2018-01-12 17:27:38 -05:00
|
|
|
line-height: $line-height-medium;
|
2017-09-11 13:14:22 -04:00
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2018-02-05 12:25:39 -05:00
|
|
|
.select-kit-body {
|
2017-08-13 08:34:50 -04:00
|
|
|
display: none;
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--secondary);
|
2018-05-01 20:41:28 -04:00
|
|
|
box-sizing: border-box;
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2018-02-05 12:25:39 -05:00
|
|
|
.select-kit-row {
|
2017-08-13 08:34:50 -04:00
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
|
|
|
display: flex;
|
2018-01-24 10:42:13 -05:00
|
|
|
flex: 1 0 auto;
|
2018-05-01 20:41:28 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
2021-08-23 04:44:19 -04:00
|
|
|
padding: 0.5em;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2017-09-06 10:58:00 -04:00
|
|
|
|
2017-10-19 15:51:08 -04:00
|
|
|
.name {
|
2017-09-06 10:58:00 -04:00
|
|
|
margin: 0;
|
2017-10-19 15:51:08 -04:00
|
|
|
overflow: hidden;
|
2018-05-01 20:41:28 -04:00
|
|
|
text-overflow: ellipsis;
|
2018-11-12 12:21:54 -05:00
|
|
|
flex: 1 1 0%;
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
|
|
|
|
2020-02-04 18:41:10 -05:00
|
|
|
.d-icon + .name,
|
|
|
|
.svg-icon-title + .name {
|
|
|
|
margin-left: 0.5em;
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-highlighted {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--tertiary-low);
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
|
|
|
|
2017-09-10 13:12:03 -04:00
|
|
|
&.is-selected {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--highlight-medium);
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
2017-09-10 13:12:03 -04:00
|
|
|
|
|
|
|
&.is-selected.is-highlighted {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--tertiary-low);
|
2017-09-10 13:12:03 -04:00
|
|
|
}
|
2018-04-09 11:51:09 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.discourse-tag,
|
2020-12-07 12:10:21 -05:00
|
|
|
.discourse-tag:visited,
|
2021-01-18 15:11:23 -05:00
|
|
|
.discourse-tag:hover {
|
2020-12-07 12:10:21 -05:00
|
|
|
color: var(--primary-high);
|
2018-04-09 11:51:09 -04:00
|
|
|
}
|
2020-02-03 08:22:14 -05:00
|
|
|
|
|
|
|
&.create-color-row {
|
|
|
|
border-left-style: solid;
|
|
|
|
border-left-width: 5px;
|
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2018-02-05 12:25:39 -05:00
|
|
|
.select-kit-collection {
|
2017-08-13 08:34:50 -04:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
2017-10-19 15:51:08 -04:00
|
|
|
margin: 0;
|
2020-05-29 05:11:28 -04:00
|
|
|
max-height: 250px;
|
2020-02-03 08:22:14 -05:00
|
|
|
width: 100%;
|
2017-09-06 10:58:00 -04:00
|
|
|
|
2021-08-23 04:44:19 -04:00
|
|
|
&:hover .select-kit-row.is-highlighted:hover {
|
|
|
|
background: var(--tertiary-low);
|
|
|
|
}
|
|
|
|
|
2018-04-05 10:45:19 -04:00
|
|
|
.validation-message {
|
|
|
|
white-space: nowrap;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--danger);
|
2018-04-05 10:45:19 -04:00
|
|
|
flex: 1 0 auto;
|
|
|
|
margin: 5px;
|
|
|
|
padding: 0 2px;
|
|
|
|
}
|
|
|
|
|
2017-09-06 10:58:00 -04:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 5px;
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--primary-med-or-secondary-med);
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2018-02-05 12:25:39 -05:00
|
|
|
.select-kit-filter {
|
2017-11-26 11:21:39 -05:00
|
|
|
box-sizing: border-box;
|
2018-05-01 20:41:28 -04:00
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2020-02-03 08:22:14 -05:00
|
|
|
width: 100%;
|
2017-09-06 10:58:00 -04:00
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
.filter-input {
|
2017-09-06 10:58:00 -04:00
|
|
|
background: none;
|
|
|
|
margin: 0;
|
2017-10-19 15:51:08 -04:00
|
|
|
padding: 0;
|
2019-01-21 13:40:55 -05:00
|
|
|
flex: 1 0 0px;
|
2017-09-06 10:58:00 -04:00
|
|
|
outline: none;
|
|
|
|
border: 0;
|
2017-10-19 15:51:08 -04:00
|
|
|
border-radius: 0;
|
2018-05-01 20:41:28 -04:00
|
|
|
box-shadow: none;
|
2021-08-23 04:44:19 -04:00
|
|
|
width: 100%;
|
2021-08-23 13:57:42 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 30px;
|
2017-10-19 15:51:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-hidden {
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
border: 0;
|
2017-11-11 15:16:00 -05:00
|
|
|
margin: -1px;
|
2017-10-19 15:51:08 -04:00
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
position: fixed;
|
|
|
|
outline: 0;
|
2018-01-25 09:53:36 -05:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2017-09-06 10:58:00 -04:00
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
.select-kit-errors-collection {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--danger);
|
2020-02-03 08:22:14 -05:00
|
|
|
padding: 0.25em 1em;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.select-kit-error {
|
|
|
|
list-style: none;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--secondary);
|
2020-02-03 08:22:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-content,
|
2021-08-23 04:44:19 -04:00
|
|
|
.is-loading,
|
|
|
|
.results-count {
|
2020-02-03 08:22:14 -05:00
|
|
|
display: flex;
|
|
|
|
flex: 1 0 auto;
|
|
|
|
padding: 0.5em;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--secondary);
|
2020-02-03 08:22:14 -05:00
|
|
|
}
|
|
|
|
|
2021-08-23 04:44:19 -04:00
|
|
|
.results-count {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-med-or-secondary-med);
|
|
|
|
position: absolute;
|
|
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
|
|
clip-path: inset(50%);
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
height: 1px;
|
|
|
|
width: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
.is-loading {
|
2021-08-23 04:44:19 -04:00
|
|
|
align-items: flex-start;
|
2020-02-03 08:22:14 -05:00
|
|
|
justify-content: center;
|
|
|
|
}
|
2017-08-13 08:34:50 -04:00
|
|
|
}
|