discourse/app/assets/stylesheets/common/components/d-page-header.scss
Kris a954f2866a
UX: update styles and layout of category type setup (#38153)
This updates the styling of our category type selection interface when
creating a new category (enabled with the hidden site setting
`enable_category_type_setup`)

Changes include 
* Switching to emoji (these look better at this scale vs icons imo)
* Switching to column layout to better use available space
* Updating some text 
* Added a mutation observer to the horizontal overflow nav because it
wasn't updating (hiding/showing scroll controls) when the advanced
setting toggle added/removed items
* Fixed a minor overflow issue with the public/private toggle on the
next page
* Randomly selecting gender & skin color for raised hand emoji
2026-03-03 13:29:03 +10:00

110 lines
1.7 KiB
SCSS
Vendored

$mobile-breakpoint: 700px;
.d-page-header,
.d-page-subheader {
&__title-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
margin-bottom: var(--space-2);
h1,
h2 {
margin: 0;
}
h2 {
font-size: var(--font-up-2);
}
.d-page-header__actions,
.d-page-subheader__actions {
display: flex;
align-items: center;
justify-content: flex-end;
@media (max-width: $mobile-breakpoint) {
flex-direction: column;
}
button {
margin-left: var(--space-2);
@media (max-width: $mobile-breakpoint) {
width: 100%;
margin-bottom: var(--space-2);
margin-left: 0;
}
}
}
}
.d-nav-submenu {
background: transparent;
border-bottom: 1px solid var(--content-border-color);
.horizontal-overflow-nav {
background: transparent;
&::before {
display: none;
}
&::after {
display: none;
}
}
.nav-pills {
width: auto;
margin: 0;
}
}
}
.d-page-header {
&__title-row {
@media (max-width: $mobile-breakpoint) {
flex-direction: row;
align-items: center;
.d-page-header__actions {
button {
margin-bottom: 0;
}
}
}
}
&__drawer {
display: flex;
align-items: center;
margin-bottom: var(--space-2);
&:not(:has(*)) {
display: none;
}
}
}
.d-page-subheader {
&__title-row {
@media (max-width: $mobile-breakpoint) {
flex-direction: row;
align-items: center;
}
}
}
.d-page-action-list-item {
.btn-primary {
color: var(--primary);
}
}
.d-page-header__learn-more {
&::before {
content: "";
}
}