discourse/app/assets/stylesheets/common/select-kit/category-drop.scss
Kris 70f9794cfb
DEV: move mobile select-kit CSS to common files (#39055)
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
2026-04-02 13:46:06 -04:00

83 lines
1.6 KiB
SCSS
Vendored

@use "lib/viewport";
.select-kit {
&.combo-box {
&.category-drop {
min-width: auto;
.badge-category__wrapper {
font-size: var(--font-0);
font-weight: normal;
max-width: 260px;
}
.category-drop-header {
&[data-value=""] {
color: var(--primary-high);
}
&.is-none .selected-name {
color: inherit;
}
}
.angle-icon {
color: var(--primary-high);
}
&.has-selection {
.category-drop-header {
border-color: var(--d-nav-border-color--active);
}
}
.select-kit-row {
flex-direction: column;
align-items: flex-start;
&[data-value="all-categories"],
&[data-value="no-categories"] {
color: var(--tertiary);
font-weight: 700;
}
.category-desc {
font-weight: normal;
color: var(--primary-medium);
margin-top: 2px;
}
.category-status {
align-items: center;
}
.topic-count {
margin-left: 0.5em;
font-weight: normal;
color: var(--primary-medium);
font-size: var(--font-down-1);
}
}
.category-drop-footer {
align-items: center;
border-top: 1px solid var(--content-border-color);
display: flex;
font-size: var(--font-down-1);
height: 30px;
justify-content: space-between;
width: 100%;
a,
span {
color: var(--primary-high);
margin: 0 10px;
&.active {
display: none;
}
}
}
}
}
}