Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/josephhutch/aether.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hutchinson <hutch7995@gmail.com>2018-03-26 21:29:21 +0300
committerJoseph Hutchinson <hutch7995@gmail.com>2018-03-26 21:29:21 +0300
commit35248e471cdba9a3f148aeaf00feceb535c6a272 (patch)
tree341c5c82a2f3a2e0253b945773593185d7f891ba
parentd8ba5ee5bbc2cd5c8b31080172f71c30ac0ff8bc (diff)
Fix mobile card press and release animations
-rw-r--r--layouts/_default/li.html2
-rw-r--r--static/css/style.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
index b246112..6e93ae4 100644
--- a/layouts/_default/li.html
+++ b/layouts/_default/li.html
@@ -1,4 +1,4 @@
-<a ontouchstart="cardPressed()" ontouchend="cardReleased()" href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
+<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)" href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
{{ if isset .Params "featuredimage" }}
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}" class="card-img">
{{ end }}
diff --git a/static/css/style.css b/static/css/style.css
index 684fecd..8b4fd82 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -79,7 +79,7 @@ img {
padding: 1em;
}
.card-img {
- border-radius: 0.4em 0.4em 0 0;
+ border-radius: 0.5em 0.5em 0 0;
margin-bottom: -1.2em;
max-height: 10em;
object-fit: cover;