Skip to content

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

UX: less specific show-more styles (#42880)

Kris35c034f123ad
diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scss
index 5b9446bdab2..25baf26a9da 100644
--- a/app/assets/stylesheets/common/base/_topic-list.scss
+++ b/app/assets/stylesheets/common/base/_topic-list.scss
@@ -404,6 +404,39 @@
}
}
+.show-more {
+ &.has-topics {
+ @include d-animation(float-down, 250ms, ease-in-out);
+
+ @include viewport.from(md) {
+ position: absolute;
+ z-index: z("base");
+ width: fit-content;
+ left: 0;
+ right: 0;
+ margin: auto;
+ font-size: var(--font-down-1-rem);
+
+ .alert {
+ border-radius: var(--d-border-radius-large);
+ }
+ }
+ }
+
+ .alert {
+ align-items: center;
+ justify-content: center;
+ gap: 0.5em;
+ margin: 0 auto;
+ padding: var(--space-2) var(--space-4);
+
+ &.loading {
+ color: var(--primary-medium);
+ cursor: default;
+ }
+ }
+}
+
#list-area {
background: var(--d-content-background);
margin-bottom: 100px;
@@ -421,39 +454,6 @@
cursor: default;
}
- .show-more {
- &.has-topics {
- @include d-animation(float-down, 250ms, ease-in-out);
-
- @include viewport.from(md) {
- position: absolute;
- z-index: z("base");
- width: fit-content;
- left: 0;
- right: 0;
- margin: auto;
- font-size: var(--font-down-1-rem);
-
- .alert {
- border-radius: var(--d-border-radius-large);
- }
- }
- }
-
- .alert {
- align-items: center;
- justify-content: center;
- gap: 0.5em;
- margin: 0 auto;
- padding: var(--space-2) var(--space-4);
-
- &.loading {
- color: var(--primary-medium);
- cursor: default;
- }
- }
- }
-
@include viewport.from(sm) {
h2 {
margin: var(--space-5) 0 var(--space-3);