UX: Refactor alignment of tag icon in Discourse onebox (#19880)

Followup to 1ce9582a6c
This commit is contained in:
Penar Musaraj 2023-01-17 11:13:55 -05:00 committed by GitHub
parent 4204b984ee
commit 86b4f4d664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 10 deletions

View File

@ -777,15 +777,15 @@ aside.onebox.xkcd .onebox-body img {
margin-bottom: 0.2rem !important; margin-bottom: 0.2rem !important;
} }
.discourse-tags {
vertical-align: bottom;
.d-icon-tag { .d-icon-tag {
width: 0.75rem; font-size: var(--font-down-1);
padding-top: 0.3rem; margin-right: 0.35em;
position: absolute; margin-top: 0.15em;
color: var(--primary-medium); color: var(--primary-medium);
align-self: center;
} }
.discourse-tags .discourse-tag:first-of-type {
padding-left: 1rem;
} }
} }

View File

@ -131,7 +131,6 @@
.discourse-tags { .discourse-tags {
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
position: relative;
a, a,
span { span {
margin-right: 0.25em; margin-right: 0.25em;