Css alignment

This commit is contained in:
Amauri CHAMPEAUX 2015-03-11 02:00:27 +01:00
parent 54d9157049
commit 47f54f6034
2 changed files with 10 additions and 7 deletions

View File

@ -371,7 +371,7 @@
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 11px !important; font-size: 11px !important;
padding: 8px 10px 5px; padding: 8px 10px 8px;
} }
#tarteaucitronAlertSmall #tarteaucitronManager:hover { #tarteaucitronAlertSmall #tarteaucitronManager:hover {
@ -381,8 +381,9 @@
#tarteaucitronAlertSmall #tarteaucitronManager #tarteaucitronDot { #tarteaucitronAlertSmall #tarteaucitronManager #tarteaucitronDot {
background-color: gray; background-color: gray;
border-radius: 5px; border-radius: 5px;
display: inline-block; display: block;
height: 8px; height: 8px;
margin-bottom: 1px;
margin-top: 5px; margin-top: 5px;
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
@ -414,8 +415,9 @@
color: #fff; color: #fff;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 34px; font-size: 30px;
padding: 3px 10px 0; padding: 4px 10px;
vertical-align: bottom;
} }
#tarteaucitronAlertSmall #tarteaucitronCookiesNumber:hover { #tarteaucitronAlertSmall #tarteaucitronCookiesNumber:hover {

View File

@ -10,7 +10,7 @@ var scripts = document.getElementsByTagName('script'),
tarteaucitronNoAdBlocker = false; tarteaucitronNoAdBlocker = false;
var tarteaucitron = { var tarteaucitron = {
"version": 202, "version": 202.01,
"cdn": cdn, "cdn": cdn,
"user": {}, "user": {},
"lang": {}, "lang": {},
@ -748,7 +748,7 @@ var tarteaucitron = {
} }
if (document.getElementById('tarteaucitronMainLineOffset') !== null) { if (document.getElementById('tarteaucitronMainLineOffset') !== null) {
if (document.getElementById('tarteaucitron').offsetHeight < (windowInnerHeight / 3)) { if (document.getElementById('tarteaucitron').offsetHeight < (windowInnerHeight / 2)) {
mainTop -= document.getElementById('tarteaucitronMainLineOffset').offsetHeight; mainTop -= document.getElementById('tarteaucitronMainLineOffset').offsetHeight;
} }
} }
@ -899,7 +899,8 @@ var tarteaucitron = {
s = (nb > 1) ? 's' : '', s = (nb > 1) ? 's' : '',
savedname, savedname,
regex = /^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i, regex = /^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i,
host = (tarteaucitron.domain !== undefined) ? tarteaucitron.domain : tarteaucitron.cdn.match(regex)[1]; regexedDomain = (tarteaucitron.cdn.match(regex) !== null) ? tarteaucitron.cdn.match(regex)[1] : tarteaucitron.cdn,
host = (tarteaucitron.domain !== undefined) ? tarteaucitron.domain : regexedDomain;
cookies = cookies.sort(function (a, b) { cookies = cookies.sort(function (a, b) {
namea = a.split('=', 1).toString().replace(/ /g, ''); namea = a.split('=', 1).toString().replace(/ /g, '');