ADD blocker for moving content lower when there is a header, CHANGE cover image display

This commit is contained in:
Hoernschen 2025-08-12 09:37:11 +02:00
parent e03ec741e6
commit ee4ea66012
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
3 changed files with 8 additions and 17 deletions

View file

@ -106,18 +106,6 @@ img {
flex-flow: column; flex-flow: column;
} }
.content {
align-self: center;
padding-top: 3rem;
width: 100%;
margin: 0;
}
.content p img {
width: 100%;
// height: 500px;
}
.divider { .divider {
height: 3px; height: 3px;
border-radius: 50px; border-radius: 50px;
@ -174,7 +162,7 @@ img {
} }
.content { .content {
padding-top: 9rem; padding-top: 2rem;
padding-bottom: 2rem; padding-bottom: 2rem;
padding-right: 1.5rem; padding-right: 1.5rem;
padding-left: 1.5rem; padding-left: 1.5rem;
@ -185,6 +173,10 @@ img {
flex-grow: 1; flex-grow: 1;
} }
.content p img {
width: 100%;
}
.notfound { .notfound {
display: flex; display: flex;
padding-right: 1.5rem; padding-right: 1.5rem;
@ -590,9 +582,9 @@ button {
} }
.coverimage { .coverimage {
height: 60vh; height: auto;
max-height: 80vh;
min-width: 100%; min-width: 100%;
padding-top: 68px;
object-fit: contain; object-fit: contain;
} }

View file

@ -13,8 +13,6 @@
{{ end }} {{ end }}
{{.Content}} {{.Content}}
</div> </div>
{{ else if .Params.header.enabled }}
<div class="header-blocker"></div>
{{ end }} {{ end }}
{{- range $index, $page := .Pages }} {{- range $index, $page := .Pages }}
{{ $odd := mod $index 2 }} {{ $odd := mod $index 2 }}

View file

@ -43,6 +43,7 @@
</div> </div>
<a href="javascript:void(0);" id="menu-icon" class="menu-icon" onclick="unfoldHeader()">&#9776;</a> <a href="javascript:void(0);" id="menu-icon" class="menu-icon" onclick="unfoldHeader()">&#9776;</a>
</header> </header>
<div class="header-blocker"></div>
<script src="/js/header.js"></script> <script src="/js/header.js"></script>
{{ end }} {{ end }}
<script src="/js/progress.js"></script> <script src="/js/progress.js"></script>