diff --git a/template.jst b/template.jst index fa7d98e72..a12d57d8e 100644 --- a/template.jst +++ b/template.jst @@ -42,8 +42,5 @@ for (var i = 0; i < document.links.length; i++) { link.addEventListener('click', storeInstall, false); } } -if (!('pointer-events' in document.documentElement.style)) { - document.documentElement.className = 'workaround'; -} diff --git a/web.css b/web.css index 4ffe04abd..0677fa41b 100644 --- a/web.css +++ b/web.css @@ -70,17 +70,19 @@ span.hover > img { max-height: 100%; box-shadow: 5px 5px 20px rgba(0,0,0,0.4); } -:root.workaround a[href$=".png"] { - position: relative; -} -:root.workaround a[href$=".png"]::after { - content: " "; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: 1; +@supports not (pointer-events: none) { + a[href$=".png"] { + position: relative; + } + a[href$=".png"]::after { + content: " "; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + } } h2 ~ p, h2 ~ p + ul { margin-left: 1em;