diff --git a/package.json b/package.json index 6f71493..148acbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fwdekker/template", - "version": "2.1.3", + "version": "2.2.0", "description": "The base template for pages on fwdekker.com.", "author": "Felix W. Dekker", "license": "MIT", diff --git a/src/main/css/snippets/common.css b/src/main/css/snippets/common.css index 9b58734..5a96446 100644 --- a/src/main/css/snippets/common.css +++ b/src/main/css/snippets/common.css @@ -14,14 +14,41 @@ body { margin-bottom: 5rem; } +noscript p { + color: red; + font-weight: bold; +} + + +/* Main element display state */ +main.pageHidden { + display: none; +} + +main.pageVisible { + display: flex; + flex-direction: column; + min-height: 100%; +} + +.pageContents.pageVisible { + flex: 1; +} + + +/* Header */ +header .container { + text-align: center; +} + + +/* Footer */ footer { margin-bottom: 3rem; } - -/* Override Milligram */ -header .container { - text-align: center; +#footerVersion { + float: right; } diff --git a/src/main/js/main.js b/src/main/js/main.js index 0d74454..706c792 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -168,7 +168,7 @@ const footer = function( footerLink("Licensed under the ", license, licenseURL, ". ") + footerLink("Source code available on ", vcs, vcsURL, ". ") + footerLink("Consider reading the ", privacyPolicyURL && "privacy policy", privacyPolicyURL, ". ") + - `