home button on header title
This commit is contained in:
parent
a05954efe4
commit
583196d685
|
@ -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 {
|
||||||
|
|
|
@ -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'>
|
||||||
|
<a class="header-home" href="/">
|
||||||
{{- conf.brand.instance_name -}}
|
{{- conf.brand.instance_name -}}
|
||||||
{%- if conf.brand.instance_motto.len() != 0 -%}
|
{%- if conf.brand.instance_motto.len() != 0 -%}
|
||||||
{#- Whitespace control is stupid -#}
|
{#- Whitespace control is stupid -#}
|
||||||
{{- " - " -}}{{- conf.brand.instance_motto -}}
|
{{- " - " -}}{{- conf.brand.instance_motto -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='content-box'>
|
<div class='content-box'>
|
||||||
|
|
Loading…
Reference in New Issue