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);
display: flex;
width: 100%;
max-width: calc(
var(--topic-body-width) + (var(--topic-body-width-padding) * 2) +
var(--topic-avatar-width)
);
padding: var(--topic-body-width-padding);
max-width: 100%;
padding: var(--space-2) var(--space-4);
font-size: var(--font-down-1-rem);
border-radius: var(--d-border-radius);

&.new-user {
gap: var(--space-2);

@include viewport.until(sm) {
margin-bottom: var(--space-4);
}

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

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

p {
display: inline;
margin: 0;
}

.custom_created_by {
@ -1540,18 +1544,6 @@ span.mention {
}
}

p {
margin: 0;
}

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

iframe {
max-width: 100%;
max-height: #{"min(1000px, 200vh)"};

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 {
padding-right: 8.5em;
padding-bottom: max(1em, env(safe-area-inset-bottom));