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.

122 lines
2.2 KiB
SCSS
Raw Normal View History

.select-kit {
2017-10-20 03:51:08 +08:00
&.combo-box {
.select-kit-body {
border-radius: 0;
box-shadow: shadow("dropdown");
2017-10-20 03:51:08 +08:00
}
.select-kit-row {
margin: 0;
2017-10-20 03:51:08 +08:00
min-height: 1px;
&.no-content {
font-weight: normal;
}
2017-10-20 03:51:08 +08:00
}
.select-kit-filter {
.filter-input,
.filter-input:focus,
.filter-input:active {
flex: 1;
}
.filter-icon {
margin-left: 0.25em;
2017-10-20 03:51:08 +08:00
}
}
.select-kit-header {
2017-10-20 03:51:08 +08:00
background: $secondary;
border: 1px solid $primary-medium;
padding: 0 0.25em 0 0.5em;
2017-10-20 03:51:08 +08:00
font-weight: 500;
2018-01-13 06:27:38 +08:00
font-size: $font-0;
2017-10-20 03:51:08 +08:00
&.is-focused {
border: 1px solid $tertiary;
box-shadow: shadow("focus");
2017-10-20 03:51:08 +08:00
}
}
.select-kit-collection {
display: flex;
flex-direction: column;
padding: 0;
min-width: 100px;
.collection-header {
a {
white-space: nowrap;
color: $primary;
line-height: $line-height-medium;
font-weight: bold;
display: block;
padding: 0.75em;
color: $tertiary;
&:hover {
text-decoration: underline;
}
}
}
}
2017-10-20 03:51:08 +08:00
&.is-disabled {
.select-kit-header {
background: $primary-low;
border-color: $primary-low-mid;
color: $primary-medium;
.d-icon {
color: $primary-medium;
}
2017-10-20 03:51:08 +08:00
}
}
&.is-highlighted {
.select-kit-header {
2017-10-20 03:51:08 +08:00
border: 1px solid $tertiary;
box-shadow: shadow("focus");
2017-10-20 03:51:08 +08:00
}
}
&.is-expanded {
.select-kit-wrapper {
2017-10-20 03:51:08 +08:00
display: block;
border: 1px solid $tertiary;
box-shadow: shadow("focus");
2017-10-20 03:51:08 +08:00
}
}
&.is-expanded.is-above {
.select-kit-header {
2017-10-20 03:51:08 +08:00
border-radius: 0 0 3px 3px;
}
.select-kit-body {
border-radius: 3px 3px 0 0;
}
2017-10-20 03:51:08 +08:00
}
&.tag-drop,
&.group-dropdown {
min-width: auto;
}
&.tag-drop {
color: $primary-high;
}
&.group-dropdown {
.select-kit-row {
font-weight: bold;
}
2018-05-03 23:08:14 +08:00
}
&.is-expanded .select-kit-wrapper,
.select-kit-wrapper {
2018-05-03 23:08:14 +08:00
display: none;
}
2017-10-20 03:51:08 +08:00
}
}