mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 07:43:38 +08:00
139 lines
3.2 KiB
SCSS
139 lines
3.2 KiB
SCSS
.select-kit {
|
|
&.dropdown-select-box {
|
|
display: -webkit-inline-box;
|
|
display: -ms-inline-flexbox;
|
|
display: inline-flex;
|
|
min-width: auto;
|
|
border: none;
|
|
|
|
&.is-expanded {
|
|
.select-kit-collection,
|
|
.select-kit-body {
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
.select-kit-body {
|
|
border: 1px solid $primary-low;
|
|
background-clip: padding-box;
|
|
box-shadow: shadow("dropdown");
|
|
max-width: 300px;
|
|
width: 300px;
|
|
}
|
|
|
|
.select-kit-row {
|
|
margin: 0;
|
|
padding: 10px 5px;
|
|
|
|
.icons {
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
-webkit-box-align: start;
|
|
-ms-flex-align: start;
|
|
align-items: flex-start;
|
|
-webkit-box-pack: center;
|
|
-ms-flex-pack: center;
|
|
justify-content: center;
|
|
-ms-flex-item-align: start;
|
|
align-self: flex-start;
|
|
margin-right: 0.357em;
|
|
margin-top: 2px;
|
|
width: 30px;
|
|
|
|
.d-icon {
|
|
font-size: $font-up-2;
|
|
-ms-flex-item-align: center;
|
|
align-self: center;
|
|
margin-right: 0;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.texts {
|
|
width: 0; //IE11
|
|
line-height: $line-height-large;
|
|
-webkit-box-flex: 1;
|
|
-ms-flex: 1;
|
|
flex: 1 1 0%;
|
|
-webkit-box-align: start;
|
|
-ms-flex-align: start;
|
|
align-items: flex-start;
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
-ms-flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
.name {
|
|
-webkit-box-flex: 1;
|
|
-ms-flex: 1;
|
|
flex: 1 1 auto;
|
|
font-weight: bold;
|
|
font-size: $font-0;
|
|
color: $primary;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.desc {
|
|
-webkit-box-flex: 1;
|
|
-ms-flex: 1;
|
|
flex: 1 1 auto;
|
|
width: 100%; //IE11
|
|
font-size: $font-down-1;
|
|
font-weight: normal;
|
|
color: dark-light-choose(
|
|
scale-color($primary, $lightness: 50%),
|
|
scale-color($secondary, $lightness: 40%)
|
|
);
|
|
white-space: normal;
|
|
}
|
|
}
|
|
}
|
|
|
|
.select-kit-collection {
|
|
padding: 0;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.dropdown-select-box-header {
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
|
|
-webkit-box-align: center;
|
|
-ms-flex-align: center;
|
|
align-items: center;
|
|
-webkit-box-pack: justify;
|
|
-ms-flex-pack: justify;
|
|
justify-content: space-between;
|
|
-webkit-box-orient: horizontal;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: row;
|
|
flex-direction: row;
|
|
display: -webkit-inline-box;
|
|
display: -ms-inline-flexbox;
|
|
display: inline-flex;
|
|
|
|
.d-icon + .d-icon {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
&.is-focused {
|
|
outline-style: auto;
|
|
outline-color: $tertiary;
|
|
}
|
|
}
|
|
}
|
|
}
|