discourse/app/assets/stylesheets/common/select-kit/combo-box.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
1.6 KiB
SCSS
Raw Normal View History

.select-kit {
2017-10-19 15:51:08 -04:00
&.combo-box {
.select-kit-body {
border-radius: 0;
2017-10-19 15:51:08 -04:00
}
.select-kit-row {
margin: 0;
2017-10-19 15:51:08 -04:00
min-height: 1px;
&.no-content {
font-weight: normal;
}
2017-10-19 15:51:08 -04:00
}
.select-kit-filter {
.filter-input,
.filter-input:focus,
.filter-input:active {
flex: 1;
}
.filter-icon {
margin-left: 0.25em;
2017-10-19 15:51:08 -04:00
}
}
.select-kit-header {
background: var(--secondary);
border-color: var(--primary-medium);
2017-10-19 15:51:08 -04:00
&.is-focused {
@include default-focus;
2017-10-19 15:51:08 -04:00
}
}
.select-kit-collection {
display: flex;
flex-direction: column;
padding: 0;
min-width: 100px;
.collection-header {
a {
white-space: nowrap;
color: var(--primary);
line-height: $line-height-medium;
font-weight: bold;
display: block;
padding: 0.75em;
color: var(--tertiary);
&:hover {
text-decoration: underline;
}
}
}
}
2017-10-19 15:51:08 -04:00
&.is-disabled {
.select-kit-header {
background: var(--primary-low);
border-color: var(--primary-low-mid);
color: var(--primary-medium);
.d-icon {
color: var(--primary-medium);
}
2017-10-19 15:51:08 -04:00
}
}
&.is-highlighted {
.select-kit-header {
@include default-focus;
2017-10-19 15:51:08 -04:00
}
}
&.tag-drop,
&.group-dropdown {
min-width: auto;
}
&.tag-drop {
color: var(--primary-high);
}
&.group-dropdown {
.select-kit-row {
font-weight: bold;
}
2018-05-03 11:08:14 -04:00
}
2017-10-19 15:51:08 -04:00
}
}