diff --git a/style.css b/style.css index 93192fb..ae02572 100644 --- a/style.css +++ b/style.css @@ -83,11 +83,14 @@ .card-back:after { color: #11181f; } - .card:hover .card-front { - transform: rotateX(-180deg); - } - .card:hover .card-back { - transform: rotateX(0deg); + + @media(hover: hover) and (pointer: fine) { + .card:hover .card-front { + transform: rotateX(-180deg); + } + .card:hover .card-back { + transform: rotateX(0deg); + } } .card .line-numbers { position: absolute;