A platform for community discussion. Free, open, simple.
UX: update styling for related/suggested (#23231)
Ty Correll094466623249
diff --git a/app/assets/stylesheets/common/components/more-topics.scss b/app/assets/stylesheets/common/components/more-topics.scssindex 9edcf920f74..e433707783a 100644--- a/app/assets/stylesheets/common/components/more-topics.scss+++ b/app/assets/stylesheets/common/components/more-topics.scss@@ -9,38 +9,23 @@.btn {color: var(--primary);background-color: transparent;- border-bottom: 2px solid transparent;padding: 0.5em 5px;&:hover {- border-bottom: 2px solid rgba(var(--tertiary-rgb), 0.5);+ box-shadow: inset 0px -3px 0px 0px rgba(var(--tertiary-rgb), 0.5);+ .d-icon {+ color: var(--primary-high);+ }}&.active {- border-bottom: 2px solid var(--tertiary);+ box-shadow: inset 0px -3px 0px 0px var(--tertiary);+ .d-icon {+ color: var(--primary-high);+ }}}}}- @media screen and (min-width: 550px) {- .nav {- position: absolute;- top: 0;- li {- margin-right: 0;- .btn {- font-size: var(--font-0);- line-height: var(--line-height-large);- padding: 1em 0.65em;- }- }- }- .more-topics__lists:not(.single-list) {- .topic-list-header .default {- visibility: hidden;- }- }- }-.more-topics__lists {&:not(.single-list) {.more-topics__list-title {@@ -92,11 +77,3 @@max-width: 150px;}}--#main-outlet .regular {- @media screen and (min-width: 550px) {- .more-topics__container .nav li .btn {- padding: 0.75em 0.65em;- }- }-}diff --git a/app/assets/stylesheets/desktop/components/_index.scss b/app/assets/stylesheets/desktop/components/_index.scssindex 3ae19fc49c3..895dda8fa7a 100644--- a/app/assets/stylesheets/desktop/components/_index.scss+++ b/app/assets/stylesheets/desktop/components/_index.scss@@ -1,3 +1,4 @@+@import "more-topics";@import "user-card";@import "user-info";@import "user-stream-item";diff --git a/app/assets/stylesheets/desktop/components/more-topics.scss b/app/assets/stylesheets/desktop/components/more-topics.scssnew file mode 100644index 00000000000..5401a494606--- /dev/null+++ b/app/assets/stylesheets/desktop/components/more-topics.scss@@ -0,0 +1,27 @@+.more-topics__container {+ .nav {+ position: absolute;+ top: 2px;+ li {+ margin-right: 0;+ .btn {+ font-size: var(--font-0);+ line-height: var(--line-height-large);+ padding: 1em 0.65em;+ }+ }+ }+ .more-topics__lists:not(.single-list) {+ .topic-list-header .default {+ visibility: hidden;+ }+ }+}++#main-outlet .regular {+ .more-topics__container .nav {+ li .btn {+ padding: 0.75em 0.65em;+ }+ }+}diff --git a/app/assets/stylesheets/mobile/components/more-topics.scss b/app/assets/stylesheets/mobile/components/more-topics.scssindex 6f9ac8da7db..b6aec33e8e8 100644--- a/app/assets/stylesheets/mobile/components/more-topics.scss+++ b/app/assets/stylesheets/mobile/components/more-topics.scss@@ -1,4 +1,8 @@.more-topics__container {+ .nav {+ margin-block: 0.5em 1em;+ }+.more-content-topics {padding: 15px 0 15px 0;