From 10516a82231471e577c9b30e2fdcc4e7b8c39722 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Wed, 6 May 2020 22:15:38 -0600 Subject: [PATCH 1/3] Update wiki.tmpl --- wiki/wiki.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wiki/wiki.tmpl b/wiki/wiki.tmpl index c5bb654..bf56ca8 100644 --- a/wiki/wiki.tmpl +++ b/wiki/wiki.tmpl @@ -90,10 +90,12 @@ $body$ - + + + From 2b05b8592c8e792504b76bebb40006a2c1ea4bec Mon Sep 17 00:00:00 2001 From: login000 <34250284+login000@users.noreply.github.com> Date: Thu, 7 May 2020 14:26:14 +1000 Subject: [PATCH 2/3] Updated wiki.tmpl to let some bugs out 1. Moved the footer to before 2. Wrapped
around the actual contents of (excluding the navbar and footer, just like the main tilde.club page). 3. Added a missing for
4. Removed a couple newlines after the tag. --- wiki/wiki.tmpl | 76 +++++++++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/wiki/wiki.tmpl b/wiki/wiki.tmpl index bf56ca8..5b43190 100644 --- a/wiki/wiki.tmpl +++ b/wiki/wiki.tmpl @@ -46,56 +46,56 @@ $highlighting-css$ $for(include-before)$ $include-before$ $endfor$ - $if(title)$ -
-

$$ $title$

+
+ $if(title)$ +
+

$$ $title$

- $if(subtitle)$ -

$subtitle$

- $endif$ + $if(subtitle)$ +

$subtitle$

+ $endif$ - $if(author)$ -

authors:

- $for(author)$ -

~$author$

- $endfor$ - $endif$ + $if(author)$ +

authors:

+ $for(author)$ +

~$author$

+ $endfor$ + $endif$ - $if(date)$ -

$date$

+ $if(date)$ +

$date$

+ $endif$ +
$endif$ -
- $endif$ -
-
-
- -
- - $if(toc)$ - $if(toc-title)$ -

$toc-title$

- $endif$ - -
+
+
+
+ +
+ + $if(toc)$ + $if(toc-title)$ +

$toc-title$

$endif$ + +
+ $endif$ $body$ - $for(include-after)$ - $include-after$ - $endfor$ + $for(include-after)$ + $include-after$ + $endfor$ +
+
- +
- - - + - From 13331aae80483842e2de1693e2dde9cefb32fa67 Mon Sep 17 00:00:00 2001 From: login000 <34250284+login000@users.noreply.github.com> Date: Thu, 7 May 2020 14:34:47 +1000 Subject: [PATCH 3/3] Adds "prefers-reduced-motion" media query Adds prefers-reduced-motion media query to not show blinking _ if the user prefers reduced motion (as indicated by their OS settings). --- style.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/style.css b/style.css index 10990e8..b9a2c6f 100644 --- a/style.css +++ b/style.css @@ -67,12 +67,14 @@ hr { from { content: "_"; } to { content: ""; } } -h1::after { - content: "_"; - animation-name: cursor; - animation-iteration-count: infinite; - animation-timing-function: cubic-bezier(1.0,0,0,1.0); - animation-duration: 1s; +@media not (prefers-reduced-motion: reduce) { + h1::after { + content: "_"; + animation-name: cursor; + animation-iteration-count: infinite; + animation-timing-function: cubic-bezier(1.0,0,0,1.0); + animation-duration: 1s; + } } h1 { text-transform: uppercase;