Skip to content

Commit

Permalink
Merge pull request rhazdon#17 from DuncanmaMSFT/original
Browse files Browse the repository at this point in the history
Adding reduced motion media query to turn off the cursor based on user preference
  • Loading branch information
Djordje Atlialp authored Apr 22, 2019
2 parents 68577e2 + cdf1cb3 commit bfb669f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions assets/scss/_logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
border-radius: 1px;
animation: cursor 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
&__cursor {
animation: none;
}
}

}

@keyframes cursor {
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $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 }}
{{ if gt (len $val) 0 }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ $prism := resources.Get "js/prism.js" }}
{{ $theme := resources.Get "js/theme.js" }}
{{ $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 }}
<script>
Expand Down

0 comments on commit bfb669f

Please sign in to comment.