Skip to content

Commit

Permalink
fix(animation): lost animation
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Mar 10, 2020
1 parent 3b10706 commit 9004e37
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/js/theme.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/theme.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion layouts/partials/head/link.html
Expand Up @@ -34,7 +34,7 @@
{{- with $CDN.animateCSS -}}
{{- . | safeHTML -}}
{{- else -}}
{{- $res := resources.Get "lib/fontawesome-free/all.min.css" -}}
{{- $res := resources.Get "lib/animate/animate.min.css" -}}
{{- $stylesheet := dict "resource" $res "fingerprint" ($scratch.Get "fingerprint") -}}
{{- partial "plugin/stylesheet.html" $stylesheet -}}
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header.html
@@ -1,7 +1,7 @@
{{- /* Desktop header */ -}}
<header class="desktop" id="header-desktop">
<div class="header-wrapper">
<div class="header-title animated bounceIn">
<div class="header-title">
<a href="{{ `/` | relLangURL }}">
{{- .Site.Title -}}
</a>
Expand Down Expand Up @@ -43,7 +43,7 @@
<header class="mobile" id="header-mobile">
<div class="header-wrapper">
<div class="header-container">
<div class="header-title animated bounceIn">
<div class="header-title">
<a href="{{ `/` | relLangURL }}">
{{- .Site.Title -}}
</a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
},
"scripts": {
"build": "npx babel src --out-file assets/js/theme.min.js --source-maps",
"start": "hugo server --source=exampleSite --themesDir=../.. --disableFastRender",
"start": "npm run build && hugo server --source=exampleSite --themesDir=../.. --disableFastRender",
"copy": "hugo -v --source=exampleSite --themesDir=../.. -D --gc --minify && rm -rf resources && cp -rf exampleSite/resources resources"
},
"husky": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/theme.js
Expand Up @@ -14,7 +14,7 @@
}

isMobile() {
return window.matchMedia('only screen and (max-width: 560px)').matches;
return window.matchMedia('only screen and (max-width: 720px)').matches;
}

isTocStatic() {
Expand Down

0 comments on commit 9004e37

Please sign in to comment.