Merge pull request #142 from eldk/alertSmallToTop

Allow tarteaucitronAlertSmall to be at top when orientation is set to top.
This commit is contained in:
Amauri CHAMPEAUX 2018-06-15 15:55:21 +02:00 committed by GitHub
commit b5d0680ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -364,9 +364,17 @@
/***
* Small alert
*/
.tarteaucitronAlertSmallTop {
top: 0;
}
.tarteaucitronAlertSmallBottom {
bottom: 0;
}
#tarteaucitronAlertSmall {
background: #333;
bottom: 0;
display: none;
padding: 0;
position: fixed;
@ -542,4 +550,4 @@ ins.ferank-publicite, ins.adsbygoogle {
div.amazon_product {
height:240px;
width:120px;
}
}

View File

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