metz-metropole-2019: add more background-position IE workarounds (#34747)

This commit is contained in:
Frédéric Péters 2019-07-10 20:57:44 +02:00
parent ab7a29373f
commit 90d0a6ab4b
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
$(function() {
if (navigator.userAgent.indexOf("MSIE ") > 0 || navigator.userAgent.indexOf("Trident") > 0) {
$('.gru-content a.big-image-link').css('background-position', 'bottom 40px left 50%');
$('.page-signalements .gru-content a.big-image-link').css('background-position', 'bottom 40px left 50%');
$('.page-index .gru-content a.big-image-link').css('background-position', 'top -20px left 50%');
}
var mql = window.matchMedia("screen and (max-width: 800px)");
if (mql.matches) { /* on mobile */