Skip to content

A platform for community discussion. Free, open, simple.

UX: Horizon theme, fix d-toc class on smaller screens (#34105)

Krisf0447195178f
diff --git a/themes/horizon/scss/topic.scss b/themes/horizon/scss/topic.scss
index 200ab5d956e..147ea500c3c 100644
--- a/themes/horizon/scss/topic.scss
+++ b/themes/horizon/scss/topic.scss
@@ -54,14 +54,14 @@
body:not(.d-toc-installed) {
.container.posts {
grid-template-columns: auto 8em;
+
+ @media screen and (width <= 924px) {
+ grid-template-columns: auto auto;
+ }
}
}
.container.posts {
- @media screen and (width <= 924px) {
- grid-template-columns: auto auto;
- }
-
.post-notice {
padding: var(--spacing-block-sm);
border-radius: var(--d-border-radius);