diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css
index 1b215d7..5549ed5 100644
--- a/css/tarteaucitron.css
+++ b/css/tarteaucitron.css
@@ -416,8 +416,8 @@
cursor: pointer;
display: inline-block;
font-size: 30px;
- padding: 4px 10px;
- vertical-align: bottom;
+ padding: 0px 10px;
+ vertical-align: top;
}
#tarteaucitronAlertSmall #tarteaucitronCookiesNumber:hover {
@@ -450,7 +450,7 @@
#tarteaucitronAlertSmall #tarteaucitronCookiesListContainer #tarteaucitronCookiesTitle {
background: #333;
margin-top: 21px;
- padding: 13px 0 7px 13px;
+ padding: 13px 0 9px 13px;
text-align: left;
}
diff --git a/tarteaucitron.js b/tarteaucitron.js
index ed3a3b2..445b12b 100644
--- a/tarteaucitron.js
+++ b/tarteaucitron.js
@@ -10,7 +10,7 @@ var scripts = document.getElementsByTagName('script'),
tarteaucitronNoAdBlocker = false;
var tarteaucitron = {
- "version": 202.01,
+ "version": 202.8,
"cdn": cdn,
"user": {},
"lang": {},
@@ -259,9 +259,7 @@ var tarteaucitron = {
html += ' ';
if (defaults.cookieslist === true) {
html += '
';
- html += ' 0';
- html += '
';
+ html += ' -->0
';
html += ' ';
html += '
';
html += ' ' + tarteaucitron.lang.close;
@@ -612,6 +610,7 @@ var tarteaucitron = {
var c = 'tarteaucitron';
tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'block');
tarteaucitron.userInterface.css(c + 'AlertBig', 'display', 'none');
+ tarteaucitron.userInterface.jsSizing('box');
},
"toggleCookiesList": function () {
"use strict";
@@ -691,9 +690,19 @@ var tarteaucitron = {
headerHeight,
cookiesListHeight,
cookiesCloseHeight,
- cookiesTitleHeight;
+ cookiesTitleHeight,
+ paddingBox,
+ alertSmallHeight,
+ cookiesNumberHeight;
- if (type === 'main') {
+ if (type === 'box') {
+ if (document.getElementById('tarteaucitronAlertSmall') !== null && document.getElementById('tarteaucitronCookiesNumber') !== null) {
+ alertSmallHeight = document.getElementById('tarteaucitronAlertSmall').offsetHeight;
+ cookiesNumberHeight = document.getElementById('tarteaucitronCookiesNumber').offsetHeight;
+ paddingBox = (alertSmallHeight - cookiesNumberHeight) / 2;
+ tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', paddingBox + 'px 10px');
+ }
+ } else if (type === 'main') {
// get the real window width for media query
if (window.innerWidth === undefined) {
@@ -762,7 +771,7 @@ var tarteaucitron = {
// put cookies list at bottom
if (document.getElementById('tarteaucitronAlertSmall') !== null) {
- tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'bottom', (document.getElementById('tarteaucitronAlertSmall').offsetHeight + 10) + 'px');
+ tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'bottom', (document.getElementById('tarteaucitronAlertSmall').offsetHeight) + 'px');
}
// height of cookies list