Skip to content

Commit 502e5ff

Browse files
authored
UX: fix MQ mismatch + adjust btn styling (#142)
* UX: fix MQ mismatch + adjust btn styling * linting
1 parent e83cd3e commit 502e5ff

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

common/common.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,21 @@ html.rtl SELECTOR {
158158
.d-toc-mini {
159159
align-self: stretch;
160160

161-
button {
161+
&__button {
162+
border-radius: 0;
163+
background: var(--secondary);
164+
border: 1px solid var(--primary-low);
162165
height: 100%;
163166
}
164167
}
165168

166169
// overlaid timeline (on mobile and narrow screens)
167-
@include viewport.until(md) {
170+
@include viewport.until(lg) {
168171
.topic-navigation {
169172
&:has(.d-toc-mini) {
170-
@include viewport.until(md) {
171-
position: sticky;
172-
bottom: calc(env(safe-area-inset-bottom) + var(--composer-height, 0px));
173-
z-index: z("timeline");
174-
}
173+
position: sticky;
174+
bottom: calc(env(safe-area-inset-bottom) + var(--composer-height, 0px));
175+
z-index: z("timeline");
175176

176177
.d-toc-wrapper {
177178
position: fixed;

javascripts/discourse/components/toc-mini.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class TocMini extends Component {
4141
{{#if this.tocProcessor.hasTOC}}
4242
<span class="d-toc-mini">
4343
<DButton
44-
class="btn-primary"
44+
class="d-toc-mini__button"
4545
@icon="bars-staggered"
4646
@action={{this.toggleTOCOverlay}}
4747
/>

0 commit comments

Comments
 (0)