From 068070b7ef17aa9a6bd234f5cebe946502da67c0 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 11 Mar 2015 16:40:13 +0100 Subject: [PATCH] Change the tick (some android devices show it in red) --- tarteaucitron.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 445b12b..4f285dc 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -189,7 +189,7 @@ var tarteaucitron = { html += ' '; html += '
'; html += '
'; - html += ' ✔ ' + tarteaucitron.lang.allow; + html += ' ✓ ' + tarteaucitron.lang.allow; html += '
'; html += '
'; html += ' ✗ ' + tarteaucitron.lang.deny; @@ -240,7 +240,7 @@ var tarteaucitron = { html += ' ' + tarteaucitron.lang.alertBig; html += ' '; html += ' '; - html += ' ✔ ' + tarteaucitron.lang.acceptAll; + html += ' ✓ ' + tarteaucitron.lang.acceptAll; html += ' '; html += ' '; html += ' ' + tarteaucitron.lang.personalize; @@ -376,7 +376,7 @@ var tarteaucitron = { html += '
'; html += '
'; html += '
'; - html += ' ✔ ' + tarteaucitron.lang.allow; + html += ' ✓ ' + tarteaucitron.lang.allow; html += '
'; html += '
'; html += ' ✗ ' + tarteaucitron.lang.deny; @@ -697,9 +697,16 @@ var tarteaucitron = { if (type === 'box') { if (document.getElementById('tarteaucitronAlertSmall') !== null && document.getElementById('tarteaucitronCookiesNumber') !== null) { + + // reset + tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', '0px 10px'); + + // calculate alertSmallHeight = document.getElementById('tarteaucitronAlertSmall').offsetHeight; cookiesNumberHeight = document.getElementById('tarteaucitronCookiesNumber').offsetHeight; paddingBox = (alertSmallHeight - cookiesNumberHeight) / 2; + + // apply tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', paddingBox + 'px 10px'); } } else if (type === 'main') { @@ -1139,7 +1146,7 @@ var tarteaucitron = { html += '
'; html += ' ' + tarteaucitron.services[id].name + ' ' + tarteaucitron.lang.fallback; html += '
'; - html += ' ✔ ' + tarteaucitron.lang.allow; + html += ' ✓ ' + tarteaucitron.lang.allow; html += '
'; html += '
'; html += '
';