mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 05:35:40 +08:00
This moves the mobile select-kit CSS into the relevant common files using breakpoints. `category-drop.scss` contained a mix of redundant and old styles, so those were all removed. There shouldn't be any visual changes as a result of this move. This was the final /mobile CSS file, so also left a note in the stub and updated a related spec
111 lines
2.3 KiB
SCSS
Vendored
111 lines
2.3 KiB
SCSS
Vendored
@use "lib/viewport";
|
|
|
|
.select-kit {
|
|
&.single-select {
|
|
&.dropdown-select-box {
|
|
display: inline-flex;
|
|
min-width: auto;
|
|
border: none;
|
|
white-space: nowrap;
|
|
|
|
.select-kit-body {
|
|
border: 1px solid var(--content-border-color);
|
|
background-clip: padding-box;
|
|
box-shadow: var(--shadow-dropdown);
|
|
border-radius: var(--d-border-radius);
|
|
}
|
|
|
|
.select-kit-row {
|
|
margin: 0;
|
|
|
|
.icons {
|
|
display: flex;
|
|
align-self: flex-start;
|
|
margin-right: 0.5em;
|
|
|
|
.d-icon {
|
|
flex: 0 0 100%;
|
|
overflow: hidden;
|
|
font-size: var(--font-up-2);
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.texts {
|
|
line-height: var(--line-height-medium);
|
|
flex: 1 1 0%;
|
|
align-items: flex-start;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: column;
|
|
|
|
.name {
|
|
flex: 1 1 auto;
|
|
font-weight: bold;
|
|
font-size: var(--font-0);
|
|
color: var(--primary);
|
|
padding: 0;
|
|
max-width: 100%;
|
|
|
|
@include ellipsis;
|
|
|
|
@include viewport.until(sm) {
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
|
|
.desc {
|
|
flex: 1 1 auto;
|
|
font-size: var(--font-down-1);
|
|
font-weight: normal;
|
|
color: var(--primary-medium);
|
|
white-space: normal;
|
|
}
|
|
}
|
|
|
|
@include viewport.until(sm) {
|
|
.svg-icon-title {
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.select-kit-collection {
|
|
padding: 0;
|
|
max-height: 100%;
|
|
|
|
@include viewport.until(sm) {
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
.select-kit-header {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-direction: row;
|
|
border-radius: var(--d-button-border-radius);
|
|
|
|
.d-icon + .d-icon {
|
|
margin-left: 0.25em;
|
|
}
|
|
|
|
&.is-focused {
|
|
outline-style: auto;
|
|
outline-color: var(--tertiary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.user-notifications-dropdown {
|
|
.select-kit-header .d-icon {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.select-kit-header-wrapper {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
}
|