From e7dd455c5aef955006026500dc97f7a8beebbb8a Mon Sep 17 00:00:00 2001 From: Nicolas Rosset Date: Wed, 3 Mar 2021 13:06:41 +0100 Subject: [PATCH] Avoid CSS conflicts with "non specific" class names --- css/tarteaucitron.css | 10 +++++----- tarteaucitron.js | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css index 45e9f1b..999bc7c 100644 --- a/css/tarteaucitron.css +++ b/css/tarteaucitron.css @@ -1,9 +1,9 @@ -.modal-open{ +.tarteaucitron-modal-open{ overflow: hidden; height: 100%; } -#contentWrapper {display:unset;} +#tarteaucitronContentWrapper {display:unset;} /*** * Reset CSS @@ -869,15 +869,15 @@ span.tarteaucitronTitle.tarteaucitronH3 { margin-top: 12px!important; } -.spacer-20 { +.tarteaucitron-spacer-20 { height: 20px; display: block; } -.display-block { +.tarteaucitron-display-block { display: block; } -.display-none { +.tarteaucitron-display-none { display: none; } \ No newline at end of file diff --git a/tarteaucitron.js b/tarteaucitron.js index bfd49f3..3168677 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -362,7 +362,7 @@ var tarteaucitron = { } html += '
  • ' + tarteaucitron.lang.noServices + '
  • '; html += ' '; - html += '
    '; + html += '
    '; if (tarteaucitron.parameters.removeCredit === false) { html += ' tarteaucitron.io'; } @@ -475,7 +475,7 @@ var tarteaucitron = { // create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened /*var wrapper = document.createElement('div'); - wrapper.id = "contentWrapper"; + wrapper.id = "tarteaucitronContentWrapper"; while (document.body.firstChild) { @@ -553,7 +553,7 @@ var tarteaucitron = { if (tarteaucitron.parameters.adblocker === true) { setTimeout(function () { if (tarteaucitronNoAdBlocker === false) { - html = '