Webpage: Remove JS test, use @supports.
This commit is contained in:
parent
12c68e732b
commit
cb895a0828
@ -42,8 +42,5 @@ for (var i = 0; i < document.links.length; i++) {
|
|||||||
link.addEventListener('click', storeInstall, false);
|
link.addEventListener('click', storeInstall, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!('pointer-events' in document.documentElement.style)) {
|
|
||||||
document.documentElement.className = 'workaround';
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|||||||
8
web.css
8
web.css
@ -70,10 +70,11 @@ span.hover > img {
|
|||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
|
box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
:root.workaround a[href$=".png"] {
|
@supports not (pointer-events: none) {
|
||||||
|
a[href$=".png"] {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
:root.workaround a[href$=".png"]::after {
|
a[href$=".png"]::after {
|
||||||
content: " ";
|
content: " ";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -81,6 +82,7 @@ span.hover > img {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
h2 ~ p, h2 ~ p + ul {
|
h2 ~ p, h2 ~ p + ul {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user