Skip to content

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

FIX: reapply missing CSS for topic-replies-toggle (#37393)

Krisea0d44554651
diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scss
index 4e722e38d0c..cbac395345b 100644
--- a/app/assets/stylesheets/common/base/_topic-list.scss
+++ b/app/assets/stylesheets/common/base/_topic-list.scss
@@ -645,27 +645,6 @@
}
}
- .topic-replies-toggle-wrapper {
- padding: 0 var(--nav-horizontal-padding);
-
- .topics-replies-toggle {
- background: none;
- border: none;
- line-height: var(--line-height-large);
- padding: var(--space-2);
- position: relative;
- font-size: var(--font-down-1-rem);
-
- &.active {
- @include nav-active;
- }
-
- &:hover {
- @include nav-hover;
- }
- }
- }
-
.dismiss-container-top {
display: flex;
justify-content: flex-end;
@@ -681,6 +660,48 @@
}
}
+.topic-replies-toggle-wrapper {
+ padding: 0 var(--nav-horizontal-padding);
+
+ @include viewport.until(sm) {
+ border-bottom: 0.15em solid var(--primary-low);
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ z-index: 1; // making sure the underline offset is on top of the topiclist
+ position: relative;
+ }
+
+ .topics-replies-toggle {
+ background: none;
+ border: none;
+ line-height: var(--line-height-large);
+ padding: var(--space-2);
+ position: relative;
+ font-size: var(--font-down-1-rem);
+
+ @include viewport.until(sm) {
+ flex-grow: 1;
+ padding: 0.75em;
+ }
+
+ &.active {
+ @include nav-active;
+
+ @include viewport.until(sm) {
+ &::after {
+ height: 0.15em;
+ bottom: -0.15em;
+ }
+ }
+ }
+
+ &:hover {
+ @include nav-hover;
+ }
+ }
+}
+
@include viewport.between(sm, lg) {
.topic-list {
.topic-list-data {