allow tarteaucitronAlertSmall to be at top when orientation is set to top.

On mobile, when Adsense Auto Ads is in use, and orientation to bottom, the small alert should be behind ads.
This allow alert to be at top and unhide it.
This commit is contained in:
eldk 2018-06-11 14:01:46 +02:00
parent dd05f9d213
commit b35fb33014
2 changed files with 11 additions and 3 deletions

View File

@ -364,9 +364,17 @@
/*** /***
* Small alert * Small alert
*/ */
.tarteaucitronAlertSmallTop {
top: 0;
}
.tarteaucitronAlertSmallBottom {
bottom: 0;
}
#tarteaucitronAlertSmall { #tarteaucitronAlertSmall {
background: #333; background: #333;
bottom: 0;
display: none; display: none;
padding: 0; padding: 0;
position: fixed; position: fixed;

View File

@ -296,7 +296,7 @@ var tarteaucitron = {
} }
if (defaults.showAlertSmall === true) { if (defaults.showAlertSmall === true) {
html += '<div id="tarteaucitronAlertSmall">'; html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
html += ' <div id="tarteaucitronManager" onclick="tarteaucitron.userInterface.openPanel();">'; html += ' <div id="tarteaucitronManager" onclick="tarteaucitron.userInterface.openPanel();">';
html += ' ' + tarteaucitron.lang.alertSmall; html += ' ' + tarteaucitron.lang.alertSmall;
html += ' <div id="tarteaucitronDot">'; html += ' <div id="tarteaucitronDot">';