scope differentiates - with spans around
This commit is contained in:
parent
66d87f22b0
commit
4c8c6b24c6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue