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.

89 lines
1.7 KiB
SCSS
Raw Normal View History

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