discourse/app/assets/stylesheets/common/components/dropdown-select-box.scss

104 lines
2.0 KiB
SCSS

.dropdown-select-box.dropdown-select-box {
display: inline-flex;
height: 30px;
min-width: auto;
&.is-expanded {
.collection,
.select-box-collection,
.select-box-body {
border-radius: 0;
}
}
.select-box-body {
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
background-clip: padding-box;
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
max-width: 300px;
width: 300px;
}
.select-box-row {
margin: 0;
padding: 10px 5px;
.icons {
display: flex;
align-items: flex-start;
justify-content: center;
align-self: flex-start;
margin-right: 10px;
margin-top: 2px;
width: 30px;
.d-icon {
font-size: 1.286em;
align-self: center;
margin-right: 0;
opacity: 1;
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 60%));
}
}
.texts {
line-height: 18px;
flex: 1;
align-items: flex-start;
display: flex;
flex-wrap: wrap;
flex-direction: column;
.title {
flex: 1;
font-weight: bold;
display: block;
font-size: 1em;
color: $primary;
padding: 0;
}
.desc {
flex: 1;
font-size: 0.857em;
font-weight: normal;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%));;
white-space: normal;
}
}
&.is-highlighted {
background: $tertiary-low;
}
&:hover {
background: $highlight-medium;
}
}
.select-box-collection {
padding: 0;
}
.dropdown-header {
padding: 0;
border: 0;
outline: 0;
justify-content: flex-start;
background: none;
.d-icon + .d-icon {
margin-left: 5px;
}
.btn {
align-items: center;
justify-content: space-between;
flex-direction: row;
display: inline-flex;
height: 100%;
margin: 0;
}
}
}