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

86 lines
2.0 KiB
SCSS
Raw Normal View History

.select-box-kit, .select-kit {
2017-10-19 15:51:08 -04:00
&.combo-box {
border-radius: 3px;
.select-box-kit-body, .select-kit-body {
2017-10-19 15:51:08 -04:00
width: 100%;
}
.select-box-kit-row, .select-kit-row {
2017-10-19 15:51:08 -04:00
margin: 5px;
min-height: 1px;
padding: 5px;
}
.select-box-kit-filter, .select-kit-filter {
2017-10-19 15:51:08 -04:00
line-height: 18px;
padding: 5px 10px;
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
.filter-input {
2017-10-19 15:51:08 -04:00
margin-right: 5px;
}
}
.select-box-kit-header, .select-kit-header {
2017-10-19 15:51:08 -04:00
background: $secondary;
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
border-radius: 3px;
padding: 5px 10px;
font-weight: 500;
font-size: 1em;
line-height: 18px;
&.is-focused {
border: 1px solid $tertiary;
border-radius: 3px;
-webkit-box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0px 0px 6px 0px;
}
}
&.is-disabled {
.select-kit-header {
2017-10-19 15:51:08 -04:00
background: #e9e9e9;
border-color: #ddd;
}
}
&.is-highlighted {
.select-kit-header {
2017-10-19 15:51:08 -04:00
border: 1px solid $tertiary;
-webkit-box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0px 0px 6px 0px;
}
}
&.is-expanded {
.select-kit-wrapper {
2017-10-19 15:51:08 -04:00
display: block;
border: 1px solid $tertiary;
border-radius: 3px;
-webkit-box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0px 0px 6px 0px;
}
.select-kit-header {
2017-10-19 15:51:08 -04:00
border-radius: 3px 3px 0 0;
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.select-kit-body {
2017-10-19 15:51:08 -04:00
border-radius: 3px 3px 0 0;
}
}
&.is-expanded.is-above {
.select-kit-header {
2017-10-19 15:51:08 -04:00
border-radius: 0 0 3px 3px;
}
}
}
}