Fix mobile card press and release animations

This commit is contained in:
Joseph Hutchinson
2018-03-26 14:45:02 -04:00
parent 5117ce2d65
commit ed00dd4d60
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<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 }}" > <a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" href="{{ .Permalink }}" class="card-link-wrapper" rel="bookmark" title="Link to {{ .Title }}" >
{{ if isset .Params "featuredimage" }} {{ if isset .Params "featuredimage" }}
<img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}" class="card-img"> <img src="{{ .Site.BaseURL }}/{{.Params.featuredimage }}" class="card-img">
{{ end }} {{ end }}

View File

@@ -85,7 +85,7 @@ img {
object-fit: cover; object-fit: cover;
} }
.card-title { .card-title {
margin: 0.5em 0 0.5em 0; margin: 0.7em 0 0.7em 0;
/* text-align: center; */ /* text-align: center; */
} }
.card-date { .card-date {