scope differentiates - with spans around

This commit is contained in:
la Fleur 2020-11-16 20:51:32 +01:00
parent 66d87f22b0
commit 4c8c6b24c6
3 changed files with 7 additions and 9 deletions

View File

@ -32,7 +32,7 @@ header {
a {
color: white;
}
a.exposed, span.exposed {
span.exposed span.title {
font-weight: bold;
font-size: 1.8em;
}
@ -65,11 +65,9 @@ header {
align-items: baseline;
justify-content: space-around;
max-width: 1200px;
padding-bottom: 6em;
span {
-webkit-animation: exposed 1s ease forwards;
}
padding-bottom: 8em;
span.exposed {
-webkit-animation: exposed 1s ease forwards;
position: absolute;
top: 4rem;
}

View File

@ -19,9 +19,7 @@
<nav>
{{ range $.Site.Sections }}
{{ if eq $currentPage.Section .Section }}
<span class="exposed">
{{ partial "scope.html" $currentPage }}
</span>
{{ else }}
<a href="{{ .Permalink }}">
{{ .Title | markdownify }}

View File

@ -1,4 +1,6 @@
{{- template "scoper" .Parent -}} {{ .Title }}
<span class="exposed">
{{- template "scoper" .Parent -}} <span class="title">{{ .Title }}</span>
</span>
{{- define "scoper" -}}
{{- if not .IsHome -}}
{{- template "scoper" .Parent }}<a href="{{ .RelPermalink }}">{{ .Title }}</a> > {{ end -}}