Fix header alignment across all pages
- Removed old header__intro wrapper and vertical stacking from baseof.html - All pages now use consistent horizontal header layout (logo left, h1 right) - Updated root assets/css/_custom.css to remove flex-direction: column on mobile - Updated theme's _custom.css to: - Scale logo to 50x50px on mobile, 100x100px on desktop - Reduce h1 font size from --fs-xxl to --fs-l - Set h1 margins to 0 and flex-shrink: 1 for proper flex alignment - Home and News pages now have aligned headers across all screen sizes - Updated submodule pointer to hackertours-mobile-nav with header fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
5c01de9fd4
commit
7e00211b5f
1 changed files with 21 additions and 18 deletions
|
|
@ -26,10 +26,9 @@
|
|||
<img src="{{ with $.Param "logopath" }}{{ . | relURL }}{{ else }}{{ "images/logo.png" | relURL }}{{ end }}"{{ with $.Param "logowidth" }} width="{{ . }}"{{ end }}{{ with $.Param "logoheight" }} height="{{ . }}"{{ end }} alt="{{ i18n "logo_alt" }}" class="header__logo-image">
|
||||
</a>
|
||||
{{ end -}}
|
||||
<div class="header__intro">
|
||||
<div class="header__intro_headline"><a href="{{ site.Home.RelPermalink }}" class="header__site-link" rel="home"><span>{{ site.Title }}</span></a></div>
|
||||
<div class="header__intro_text">{{ .Param "intro" }}</div>
|
||||
</div>
|
||||
<h1 class="header__site-name">
|
||||
<a href="{{ site.Home.RelPermalink }}" rel="home" class="header__site-link">{{ site.Title }}</a>
|
||||
</h1>
|
||||
<div class="region header__region">
|
||||
{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}}
|
||||
{{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue