home button on header title

This commit is contained in:
blek 2023-10-21 15:55:46 +10:00
parent a05954efe4
commit 583196d685
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 26 additions and 6 deletions

View File

@ -45,7 +45,7 @@ html, body {
font-family: var(--accent-font); font-family: var(--accent-font);
font-weight: var(--accent-weight); font-weight: var(--accent-weight);
font-size: var(--header-font-size); font-size: var(--header-font-size);
padding: var(--header-padding-y) var(--header-padding-x); padding: var(--header-padding-y) 0;
height: calc(var(--header-height) - (var(--header-padding-y)*2)); height: calc(var(--header-height) - (var(--header-padding-y)*2));
} }
.header svg { .header svg {
@ -71,7 +71,25 @@ html, body {
height: var(--header-height); height: var(--header-height);
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0;
}
.header .header-home {
height: var(--header-height);
line-height: var(--header-height);
padding: 0 var(--header-padding-x); padding: 0 var(--header-padding-x);
vertical-align: middle;
transition: 500ms ease;
border-bottom: 0 !important;
color: white !important;
backdrop-filter: brightness(1);
}
.header .header-home:hover {
backdrop-filter: brightness(0.9);
}
.header .header-home:active {
backdrop-filter: brightness(0.7);
} }
.content-box { .content-box {

View File

@ -25,11 +25,13 @@
<div class="header"> <div class="header">
<img class="header-bg" src="/bfile-header.webp" width="400px" height="60px"> <img class="header-bg" src="/bfile-header.webp" width="400px" height="60px">
<div class='header-text'> <div class='header-text'>
{{- conf.brand.instance_name -}} <a class="header-home" href="/">
{%- if conf.brand.instance_motto.len() != 0 -%} {{- conf.brand.instance_name -}}
{#- Whitespace control is stupid -#} {%- if conf.brand.instance_motto.len() != 0 -%}
{{- " - " -}}{{- conf.brand.instance_motto -}} {#- Whitespace control is stupid -#}
{%- endif -%} {{- " - " -}}{{- conf.brand.instance_motto -}}
{%- endif -%}
</a>
</div> </div>
</div> </div>
<div class='content-box'> <div class='content-box'>