@@ -607,10 +607,6 @@ img { | |||||
color: red; | color: red; | ||||
} | } | ||||
.nosup.black a { | |||||
color: #000; | |||||
} | |||||
.nosup a span.sup { | .nosup a span.sup { | ||||
display: none; | display: none; | ||||
} | } | ||||
@@ -17,14 +17,10 @@ window.addEventListener('scroll', function(e) { | |||||
grid.classList.add('moved'); | grid.classList.add('moved'); | ||||
mantlebar.style.display = "inline"; | mantlebar.style.display = "inline"; | ||||
mantletitle.style.visibility = "hidden"; | mantletitle.style.visibility = "hidden"; | ||||
grid.style.display = "none"; | |||||
window.scrollBy({top: mantletitle.clientHeight, behavior: 'smooth'}) | |||||
} else if (gridrect.top > 21 && grid.classList.contains('moved')) { | } else if (gridrect.top > 21 && grid.classList.contains('moved')) { | ||||
grid.classList.remove('moved'); | grid.classList.remove('moved'); | ||||
mantletitle.style.visibility = "visible"; | mantletitle.style.visibility = "visible"; | ||||
mantlebar.style.display = "none"; | mantlebar.style.display = "none"; | ||||
grid.style.display = "grid"; | |||||
window.scroll({top: 0, behavior: 'smooth'}) | |||||
} | } | ||||
} else { | } else { | ||||
let rightcolumn = document.querySelector('.rightcolumn'); | let rightcolumn = document.querySelector('.rightcolumn'); | ||||
@@ -48,7 +44,6 @@ window.addEventListener('scroll', function(e) { | |||||
} | } | ||||
}) | }) | ||||
window.addEventListener('DOMContentLoaded', (e) => { | window.addEventListener('DOMContentLoaded', (e) => { | ||||
let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child"); | let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child"); | ||||
let s = document.createElement("span"); | let s = document.createElement("span"); | ||||
@@ -68,4 +63,11 @@ window.addEventListener('DOMContentLoaded', (e) => { | |||||
document.body.appendChild(soundcite); | document.body.appendChild(soundcite); | ||||
} | } | ||||
document.querySelectorAll('#TableOfContents a').forEach(i => { | |||||
i.addEventListener('click', e => { | |||||
setTimeout(() => { | |||||
window.scrollBy({top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth'})}, 50); | |||||
}) | |||||
}) | |||||
}) | }) |
@@ -2,7 +2,8 @@ | |||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}"> | <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}"> | ||||
<head> | <head> | ||||
{{- partial "head.html" . -}} | |||||
{{- partialCached "head.html" . -}} | |||||
<title>{{- .Title }} - {{ .Site.Title -}}</title> | |||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}} | {{- partialCached "sandpointjs.html" . .RelPermalink -}} | ||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -29,11 +29,9 @@ | |||||
<link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" /> | <link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" /> | ||||
{{ $player := resources.Get "css/player.min.css" }} | {{ $player := resources.Get "css/player.min.css" }} | ||||
<link rel="stylesheet" href="{{ $player.RelPermalink }}" /> | <link rel="stylesheet" href="{{ $player.RelPermalink }}" /> | ||||
{{ else if (eq hugo.Environment "development") }} | |||||
{{ else }} | |||||
{{ $style := resources.Get "css/site.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }} | {{ $style := resources.Get "css/site.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }} | ||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" /> | <link rel="stylesheet" href="{{ $style.RelPermalink }}" /> | ||||
{{ $style := resources.Get "css/player.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }} | {{ $style := resources.Get "css/player.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }} | ||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" /> | <link rel="stylesheet" href="{{ $style.RelPermalink }}" /> | ||||
{{ end }} | {{ end }} | ||||
<title>{{ block "title" . }}{{- .Title }} - {{ .Site.Title -}}{{ end }}</title> |