Browse Source

sandpoints merge

master
Sean Dockray 3 years ago
parent
commit
88ed60b382
5 changed files with 11 additions and 14 deletions
  1. +0
    -4
      themes/sandpoints/assets/css/site.css
  2. +1
    -1
      themes/sandpoints/assets/css/site.min.css
  3. +7
    -5
      themes/sandpoints/assets/js/sandpoints.js
  4. +2
    -1
      themes/sandpoints/layouts/_default/baseof.html
  5. +1
    -3
      themes/sandpoints/layouts/partials/head.html

+ 0
- 4
themes/sandpoints/assets/css/site.css View File

@@ -607,10 +607,6 @@ img {
color: red;
}

.nosup.black a {
color: #000;
}

.nosup a span.sup {
display: none;
}


+ 1
- 1
themes/sandpoints/assets/css/site.min.css
File diff suppressed because it is too large
View File


+ 7
- 5
themes/sandpoints/assets/js/sandpoints.js View File

@@ -17,14 +17,10 @@ window.addEventListener('scroll', function(e) {
grid.classList.add('moved');
mantlebar.style.display = "inline";
mantletitle.style.visibility = "hidden";
grid.style.display = "none";
window.scrollBy({top: mantletitle.clientHeight, behavior: 'smooth'})
} else if (gridrect.top > 21 && grid.classList.contains('moved')) {
grid.classList.remove('moved');
mantletitle.style.visibility = "visible";
mantlebar.style.display = "none";
grid.style.display = "grid";
window.scroll({top: 0, behavior: 'smooth'})
}
} else {
let rightcolumn = document.querySelector('.rightcolumn');
@@ -48,7 +44,6 @@ window.addEventListener('scroll', function(e) {
}
})


window.addEventListener('DOMContentLoaded', (e) => {
let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child");
let s = document.createElement("span");
@@ -68,4 +63,11 @@ window.addEventListener('DOMContentLoaded', (e) => {
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
- 1
themes/sandpoints/layouts/_default/baseof.html View File

@@ -2,7 +2,8 @@

<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
<head>
{{- partial "head.html" . -}}
{{- partialCached "head.html" . -}}
<title>{{- .Title }} - {{ .Site.Title -}}</title>
{{- partialCached "sandpointjs.html" . .RelPermalink -}}
</head>
<body>


+ 1
- 3
themes/sandpoints/layouts/partials/head.html View File

@@ -29,11 +29,9 @@
<link rel="stylesheet" href="{{ $sitemin.RelPermalink }}" />
{{ $player := resources.Get "css/player.min.css" }}
<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 }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ $style := resources.Get "css/player.css" | postCSS (dict "config" "assets/css/postcss.config.js") | minify }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ end }}

<title>{{ block "title" . }}{{- .Title }} - {{ .Site.Title -}}{{ end }}</title>

Loading…
Cancel
Save