1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 05:00:56 +02:00

feat(seo): Do not use h3 header for poster author in posts stream (#3732)

* Do not use h3 header for poster author in posts stream.

* Change back `.PostUser-name` tag to h3.
This commit is contained in:
Robert Korulczyk
2023-02-15 18:44:58 +01:00
committed by GitHub
parent 7a60a529da
commit fee6ffe396
4 changed files with 28 additions and 11 deletions

View File

@@ -40,10 +40,14 @@
font-weight: normal;
position: relative;
h3 {
// TODO: remove styles for h3 on Flarum 2.0 cleanup - they may be used by extensions, but they should target `.PostUser-name` class instead
h3,
.PostUser-name {
display: inline;
}
h3, h3 a {
// TODO: remove styles for h3 on Flarum 2.0 cleanup - they may be used by extensions, but they should target `.PostUser-name` class instead
h3, h3 a,
.PostUser-name, .PostUser-name a {
color: var(--heading-color);
font-weight: bold;
font-size: 14px;
@@ -190,18 +194,31 @@
}
.Post--hidden {
.Post-header, .Post-header a, .PostUser h3, .PostUser h3 a {
.Post-header, .Post-header a,
// TODO: remove styles for h3 on Flarum 2.0 cleanup - they may be used by extensions, but they should target `.PostUser-name` class instead
.PostUser h3, .PostUser h3 a,
.PostUser .PostUser-name, .PostUser .PostUser-name a {
color: var(--muted-more-color);
}
&:not(.revealContent) {
.Post-header {
margin-bottom: 0;
}
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
.Post-body,
.Post-footer,
// TODO: remove styles for h3 on Flarum 2.0 cleanup - they may be used by extensions, but they should target `.PostUser-name` class instead
h3 .Avatar,
.PostUser-name .Avatar,
.PostUser-badges {
display: none;
}
}
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
.Post-body,
.Post-footer,
// TODO: remove styles for h3 on Flarum 2.0 cleanup - they may be used by extensions, but they should target `.PostUser-name` class instead
h3 .Avatar,
.PostUser-name .Avatar,
.PostUser-badges {
opacity: 0.5;
}
.Post-header .Button--more {