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

Failed to ignore revisions in .git-blame-ignore-revs.

132 lines
3.0 KiB
SCSS
Raw Normal View History

.select-kit {
2017-10-19 15:51:08 -04:00
&.dropdown-select-box {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
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
max-width: 300px;
width: 300px;
}
.select-kit-row {
2017-10-19 15:51:08 -04:00
margin: 0;
padding: 10px 5px;
.icons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
2018-10-26 12:55:26 -04:00
flex: 0 0 auto;
2017-10-19 15:51:08 -04:00
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
2017-10-19 15:51:08 -04:00
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
2017-10-19 15:51:08 -04:00
-ms-flex-item-align: start;
align-self: flex-start;
margin-right: 0.357em;
2017-10-19 15:51:08 -04:00
margin-top: 2px;
width: 30px;
.d-icon {
2018-01-12 17:27:38 -05:00
font-size: $font-up-2;
2017-10-19 15:51:08 -04:00
-ms-flex-item-align: center;
align-self: center;
2017-10-19 15:51:08 -04:00
margin-right: 0;
opacity: 1;
}
}
.texts {
2018-01-12 17:27:38 -05:00
line-height: $line-height-large;
2017-10-19 15:51:08 -04:00
-webkit-box-flex: 1;
-ms-flex: 1;
2018-11-12 12:21:54 -05:00
flex: 1 1 0%;
2017-10-19 15:51:08 -04:00
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
2017-10-19 15:51:08 -04:00
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
2017-10-19 15:51:08 -04:00
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
2017-10-19 15:51:08 -04:00
.name {
-webkit-box-flex: 1;
-ms-flex: 1;
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 {
-webkit-box-flex: 1;
-ms-flex: 1;
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;
}
}
}
.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 {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
2017-10-19 15:51:08 -04:00
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;
2017-10-19 15:51:08 -04:00
.d-icon + .d-icon {
margin-left: 5px;
}
&.is-focused {
outline-style: auto;
outline-color: $tertiary;
2017-10-19 15:51:08 -04:00
}
}
}
}