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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

90 lines
1.7 KiB
SCSS
Raw Normal View History

.select-kit {
2017-10-19 15:51:08 -04:00
&.dropdown-select-box {
display: inline-flex;
min-width: auto;
border: none;
2017-10-19 15:51:08 -04:00
&.is-expanded {
.select-kit-collection,
.select-kit-body {
2017-10-19 15:51:08 -04:00
border-radius: 0;
}
}
.select-kit-body {
border: 1px solid $primary-low;
2017-10-19 15:51:08 -04:00
background-clip: padding-box;
box-shadow: shadow("dropdown");
2017-10-19 15:51:08 -04:00
}
.select-kit-row {
2017-10-19 15:51:08 -04:00
margin: 0;
.icons {
display: flex;
2020-06-04 17:26:57 -04:00
align-self: flex-start;
margin-right: 0.5em;
2017-10-19 15:51:08 -04:00
.d-icon {
2020-06-04 17:26:57 -04:00
flex: 0 0 100%;
overflow: hidden;
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
align-self: center;
2017-10-19 15:51:08 -04:00
margin-right: 0;
}
}
.texts {
line-height: $line-height-medium;
2018-11-12 12:21:54 -05:00
flex: 1 1 0%;
align-items: flex-start;
2017-10-19 15:51:08 -04:00
display: flex;
flex-wrap: wrap;
flex-direction: column;
2017-10-19 15:51:08 -04:00
.name {
2018-11-13 11:21:19 -05:00
flex: 1 1 auto;
2017-10-19 15:51:08 -04:00
font-weight: bold;
2018-01-12 17:27:38 -05:00
font-size: $font-0;
2017-10-19 15:51:08 -04:00
color: $primary;
padding: 0;
@include ellipsis;
max-width: 100%;
2017-10-19 15:51:08 -04:00
}
.desc {
2018-11-13 11:21:19 -05:00
flex: 1 1 auto;
2018-01-12 17:27:38 -05:00
font-size: $font-down-1;
2017-10-19 15:51:08 -04:00
font-weight: normal;
2019-08-14 22:57:13 -04:00
color: $primary-medium;
2017-10-19 15:51:08 -04:00
white-space: normal;
min-width: 350px;
2017-10-19 15:51:08 -04:00
}
}
}
.select-kit-collection {
2017-10-19 15:51:08 -04:00
padding: 0;
2018-02-01 12:08:55 -05:00
max-height: 100%;
2017-10-19 15:51:08 -04:00
}
.dropdown-select-box-header {
box-sizing: border-box;
2017-10-19 15:51:08 -04:00
border: 0;
align-items: center;
justify-content: space-between;
flex-direction: row;
display: inline-flex;
2017-10-19 15:51:08 -04:00
.d-icon + .d-icon {
margin-left: 0.25em;
2017-10-19 15:51:08 -04:00
}
&.is-focused {
outline-style: auto;
outline-color: $tertiary;
2017-10-19 15:51:08 -04:00
}
}
}
}