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

85 lines
1.9 KiB
SCSS
Raw Normal View History

.select-box-kit, .select-kit {
2017-10-19 15:51:08 -04:00
&.combo-box {
.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 {
2018-01-12 17:27:38 -05:00
line-height: $line-height-medium;
padding: 6px 10px;
2017-10-19 15:51:08 -04:00
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 $primary-medium;
padding: 6px 10px;
2017-10-19 15:51:08 -04:00
font-weight: 500;
2018-01-12 17:27:38 -05:00
font-size: $font-0;
line-height: $line-height-medium;
2017-10-19 15:51:08 -04:00
&.is-focused {
border: 1px solid $tertiary;
-webkit-box-shadow: $tertiary 0 0 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
2017-10-19 15:51:08 -04:00
}
}
&.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 0 0 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
2017-10-19 15:51:08 -04:00
}
}
&.is-expanded {
.select-kit-wrapper {
2017-10-19 15:51:08 -04:00
display: block;
border: 1px solid $tertiary;
-webkit-box-shadow: $tertiary 0 0 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
2017-10-19 15:51:08 -04:00
}
.select-kit-header {
2017-10-19 15:51:08 -04:00
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.select-kit-body {
border-radius: 0 0 3px 3px ;
2017-10-19 15:51:08 -04:00
}
}
&.is-expanded.is-above {
.select-kit-header {
2017-10-19 15:51:08 -04:00
border-radius: 0 0 3px 3px;
}
.select-kit-body {
border-radius: 3px 3px 0 0;
}
2017-10-19 15:51:08 -04:00
}
}
}