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-weight: var(--accent-weight);
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));
}
.header svg {
@ -71,7 +71,25 @@ html, body {
height: var(--header-height);
display: flex;
align-items: center;
padding: 0;
}
.header .header-home {
height: var(--header-height);
line-height: var(--header-height);
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 {

View File

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