Add notifications fade-out animation
This commit is contained in:
@@ -239,6 +239,38 @@ input.form-date {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert-fade-out {
|
||||||
|
animation: fadeOut 1s forwards;
|
||||||
|
-webkit-animation: fadeOut 1s forwards;
|
||||||
|
animation-delay: 7s;
|
||||||
|
-webkit-animation-delay: 7s;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes fadeOut {
|
||||||
|
from {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeOut {
|
||||||
|
from {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.alert-success {
|
.alert-success {
|
||||||
color: #468847;
|
color: #468847;
|
||||||
background-color: #dff0d8;
|
background-color: #dff0d8;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<section class="page">
|
<section class="page">
|
||||||
<?= Helper\flash('<div class="alert alert-success">%s</div>') ?>
|
<?= Helper\flash('<div class="alert alert-success alert-fade-out">%s</div>') ?>
|
||||||
<?= Helper\flash_error('<div class="alert alert-error">%s</div>') ?>
|
<?= Helper\flash_error('<div class="alert alert-error">%s</div>') ?>
|
||||||
<?= $content_for_layout ?>
|
<?= $content_for_layout ?>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user