Merge pull request #17 from DuncanmaMSFT/original

Adding reduced motion media query to turn off the cursor based on user preference
This commit is contained in:
Djordje Atlialp 2019-04-22 20:18:43 +02:00 committed by GitHub
commit bfb669f641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -25,6 +25,13 @@
border-radius: 1px; border-radius: 1px;
animation: cursor 1s infinite; animation: cursor 1s infinite;
} }
@media (prefers-reduced-motion: reduce) {
&__cursor {
animation: none;
}
}
} }
@keyframes cursor { @keyframes cursor {

View file

@ -25,7 +25,7 @@
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Minify | resources.Fingerprint }} {{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}"> <link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ range $val := $.Site.Params.customCSS }} {{ range $val := $.Site.Params.customCSS }}
{{ if gt (len $val) 0 }} {{ if gt (len $val) 0 }}

View file

@ -3,7 +3,7 @@
{{ $prism := resources.Get "js/prism.js" }} {{ $prism := resources.Get "js/prism.js" }}
{{ $theme := resources.Get "js/theme.js" }} {{ $theme := resources.Get "js/theme.js" }}
{{ $secureJS := slice $main $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} {{ $secureJS := slice $main $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script> <script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{- if .Site.GoogleAnalytics }} {{- if .Site.GoogleAnalytics }}
<script> <script>