Compare commits

...

2 Commits

Author SHA1 Message Date
la Fleur 4c8c6b24c6 scope differentiates - with spans around 2020-11-16 20:51:32 +01:00
la Fleur 66d87f22b0 scope differentiates destination over steps 2020-11-16 19:23:11 +01:00
3 changed files with 10 additions and 13 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>
{{ partial "scope.html" $currentPage }}
{{ else }}
<a href="{{ .Permalink }}">
{{ .Title | markdownify }}

View File

@ -1,6 +1,7 @@
{{- if .Parent.IsHome -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- else -}}
{{- partial "scope.html" .Parent }}
> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
<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 -}}
{{- end -}}