mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-10 10:55:39 +08:00
The clickable card layout used in the boxes+featured categories has a higher z-index, which conflicts with the sticky list-controls in Horizon. Hence the latter needs this increase. <img width="804" height="1584" alt="CleanShot 2025-09-22 at 12 00 26@2x" src="https://github.com/user-attachments/assets/9ae057f0-cbe0-4677-b10b-550741ade7ab" /> <img width="804" height="1584" alt="CleanShot 2025-09-22 at 12 00 37@2x" src="https://github.com/user-attachments/assets/a821cb6a-e6c9-4f20-ab64-29f32829fb80" />
62 lines
1.3 KiB
SCSS
Vendored
62 lines
1.3 KiB
SCSS
Vendored
.list-controls {
|
|
position: sticky;
|
|
top: var(--header-offset);
|
|
background: var(--d-content-background);
|
|
z-index: calc(z("base") + 1);
|
|
padding: 1.5rem 0 1rem 0;
|
|
max-width: unset;
|
|
|
|
.navigation-container {
|
|
gap: 1rem;
|
|
|
|
.category-breadcrumb {
|
|
order: 1;
|
|
}
|
|
}
|
|
|
|
.combo-box .combo-box-header {
|
|
// needs more specificity than just in the button file
|
|
background-color: var(--secondary);
|
|
border-radius: var(--d-border-radius);
|
|
border: 1px solid var(--primary-300);
|
|
|
|
&:hover {
|
|
border: 1px solid var(--accent-color);
|
|
}
|
|
|
|
&:focus-visible {
|
|
.discourse-no-touch & {
|
|
background: var(--secondary);
|
|
color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px var(--button-box-shadow);
|
|
|
|
.d-icon {
|
|
color: var(--accent-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.select-kit.is-expanded .select-kit-body {
|
|
border-radius: var(--d-border-radius);
|
|
background-color: var(--d-content-background);
|
|
}
|
|
|
|
.nav-pills > li > a:hover,
|
|
.nav-pills > li button:hover {
|
|
.discourse-no-touch & {
|
|
background: transparent;
|
|
color: var(--d-nav-color--hover);
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
height: var(--d-nav-underline-height);
|
|
background: var(--d-nav-color--hover);
|
|
}
|
|
}
|
|
}
|