UX: fix MQ mismatch + adjust btn styling (#142)

* UX: fix MQ mismatch + adjust btn styling

* linting
This commit is contained in:
chapoi
2026-03-13 14:23:35 +01:00
committed by GitHub
parent e83cd3e68b
commit 502e5fffcf
2 changed files with 9 additions and 8 deletions
+8 -7
View File
@@ -158,20 +158,21 @@ html.rtl SELECTOR {
.d-toc-mini {
align-self: stretch;
button {
&__button {
border-radius: 0;
background: var(--secondary);
border: 1px solid var(--primary-low);
height: 100%;
}
}
// overlaid timeline (on mobile and narrow screens)
@include viewport.until(md) {
@include viewport.until(lg) {
.topic-navigation {
&:has(.d-toc-mini) {
@include viewport.until(md) {
position: sticky;
bottom: calc(env(safe-area-inset-bottom) + var(--composer-height, 0px));
z-index: z("timeline");
}
position: sticky;
bottom: calc(env(safe-area-inset-bottom) + var(--composer-height, 0px));
z-index: z("timeline");
.d-toc-wrapper {
position: fixed;
@@ -41,7 +41,7 @@ export default class TocMini extends Component {
{{#if this.tocProcessor.hasTOC}}
<span class="d-toc-mini">
<DButton
class="btn-primary"
class="d-toc-mini__button"
@icon="bars-staggered"
@action={{this.toggleTOCOverlay}}
/>