New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UX: update styling for related/suggested #23231
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
606c4ab
UX: update styling for related/suggested
tytekkit d0dffbd
Create more-topics.scss
tytekkit 2c5e318
Update _index.scss
tytekkit 0b6a85b
Update more-topics.scss
tytekkit 2c4505e
UX: use box shadow
tytekkit 6e227d8
Update more-topics.scss
tytekkit File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed media query -> desktop.scss |
||
.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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "more-topics"; | ||
@import "user-card"; | ||
@import "user-info"; | ||
@import "user-stream-item"; |
27 changes: 27 additions & 0 deletions
27
app/assets/stylesheets/desktop/components/more-topics.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.more-topics__container { | ||
.nav { | ||
position: absolute; | ||
top: 2px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs offset without border |
||
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.more-topics__container { | ||
.nav { | ||
margin-block: 0.5em 1em; | ||
} | ||
|
||
.more-content-topics { | ||
padding: 15px 0 15px 0; | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed borders in lieu of box-shadows