consent
by toubia95
HTML
<div>
<div class="alert alert-info bottom am-fade" style="display: block;">
<p>
<strong>Ce site internet utilise des cookies :</strong>
<span>en poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies afin de réaliser des statistiques d'audiences anonymes. Vous avez la possibilité de vous y opposer en cliquant sur "En savoir plus".</span>
</p>
<button class="btn btn-primary btn-sm btn-cookies-consent">J'accepte</button>
<a class="btn btn-default btn-sm btn-cookies-consent" href="/legal-notices">En savoir plus</a>
</div>
</div>
CSS
.alert.bottom {
right: 0px;
left: 0px;
}
.alert.bottom, .alert.bottom-right, .alert.bottom-left {
bottom: 0px;
}
.alert.top, .alert.top-left, .alert.top-right, .alert.bottom, .alert.bottom-left, .alert.bottom-right {
position: fixed;
z-index: 1050;
margin: 20px;
}
.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 3px;
}
.alert {
outline: none;
}
.am-fade {
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-fill-mode: backwards;
animation-fill-mode: backwards;
opacity: 1;
}
.alert > p, .alert > ul {
margin-bottom: 0;
}
p {
margin: 0 0 10px;
}
.btn.btn-cookies-consent {
margin-top: 10px;
}
.btn-sm, .btn-group-sm > .btn {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-primary {
color: #fff;
background-color: #008bd0;
border-color: #007ab7;
}
.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc;
}
.btn {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
border-radius: 3px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}