Skip to content

[3.0] Centres the forum title and logo in the header - #9425

Closed
albertlast wants to merge 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/header-align-leftovers
Closed

[3.0] Centres the forum title and logo in the header#9425
albertlast wants to merge 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/header-align-leftovers

Conversation

@albertlast

Copy link
Copy Markdown
Collaborator

Description

Two rules in index.css are leftovers from the header as it was before #9373, when it was a band of its own that bottom-aligned its contents:

h1.forumtitle { padding: 22px 12px 6px 10px; }
img#smflogo   { margin: 16px 0 0 0; }

The header lines its contents up in the middle now (#header .content_wrapper { align-items: center }), so both of those push the title and the logo below the user panel sitting beside them. Measured centres on the board index at 1280px, before and after:

wrapper title logo user panel
before 47 47 55 47
after 47 47 47 47

The title keeps the horizontal padding that lines it up with the page content below it — as padding-inline, so the RTL sheet does not need its own rule. Its start edge stays at x=76 against the breadcrumb's 75. The logo needs nothing; RTL's own img#smflogo { margin-right: 1em } still applies.

Header height is unchanged at 93px either way — --header-height: 80px sets the floor.

This is the visible half of what #9423 reports. The rest of that report is the intended layout from #9373 and #9374, which merged the old #top_section into the header; that matches the end state of #7933 and is not changed here.

Issues References (Fixes|Related|Closes)

Related #9423
Related #7933

The header used to be a band of its own that bottom-aligned its contents, so
the title carried a top-heavy padding and the logo a top margin to drop them
onto that line. The header lines everything up in the middle now, and those
two rules push the title and the logo eight pixels below the user panel
beside them.

The title keeps the inline padding that lines it up with the page content
below it, as padding-inline. The logo needs nothing.

Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
@albertlast

Copy link
Copy Markdown
Collaborator Author

Superseded by #9427. That one puts the header back to a band of its own between the top bar and the menu, per the decision on #9423, so the row this centred things in no longer exists — the top-heavy padding on h1.forumtitle and the top margin on img#smflogo are correct again against align-items: flex-end. Nothing here to carry over.

@albertlast albertlast closed this Aug 9, 2026
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants