2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00

UX: add missing post notice styling (#35093)

Some styling went missing from the previous commit #35049
This commit is contained in:
chapoi 2025-10-01 09:04:35 -06:00 committed by GitHub
parent 5e0d6ef99e
commit db6f47f297
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 30 deletions

View file

@ -1509,16 +1509,14 @@ span.mention {
border-top: 1px solid var(--content-border-color); border-top: 1px solid var(--content-border-color);
display: flex; display: flex;
width: 100%; width: 100%;
max-width: calc( max-width: 100%;
var(--topic-body-width) + (var(--topic-body-width-padding) * 2) + padding: var(--space-2) var(--space-4);
var(--topic-avatar-width)
);
padding: var(--topic-body-width-padding);
font-size: var(--font-down-1-rem); font-size: var(--font-down-1-rem);
border-radius: var(--d-border-radius); border-radius: var(--d-border-radius);
gap: var(--space-2);


&.new-user { @include viewport.until(sm) {
gap: var(--space-2); margin-bottom: var(--space-4);
} }


&.custom { &.custom {
@ -1530,25 +1528,19 @@ span.mention {
height: 1.5em; height: 1.5em;
} }


.post-notice-message { .d-icon {
p { width: 1.25em;
display: inline; height: 1.25em;
} color: var(--primary-high);

.custom_created_by {
display: inline-block;
}
} }


p { p {
display: inline;
margin: 0; margin: 0;
} }


.d-icon { .custom_created_by {
font-size: 2em; display: inline-block;
width: var(--topic-avatar-width);
color: var(--primary-high);
margin-right: var(--topic-body-width-padding);
} }
} }



View file

@ -417,16 +417,6 @@ span.highlighted {
} }
} }


.post-notice {
box-sizing: border-box;
margin-bottom: 1em;

&.old {
border-top: none;
padding-top: 0;
}
}

.posts-filtered-notice { .posts-filtered-notice {
padding-right: 8.5em; padding-right: 8.5em;
padding-bottom: max(1em, env(safe-area-inset-bottom)); padding-bottom: max(1em, env(safe-area-inset-bottom));