css: improve gritters

- have two containers, one of the top, on of the bottom;
- remove gritting chat message when opening the chat.
This commit is contained in:
Sebastian Castro 2020-04-18 11:19:50 +02:00 committed by muxator
parent 3e12b6d132
commit b06324ad80
5 changed files with 90 additions and 37 deletions

View file

@ -1,18 +1,23 @@
#gritter-container {
position: absolute;
bottom: 20px;
right: 50%;
transform: translateX(50%);
text-align: center;
z-index: 9999;
}
#gritter-container.top {
top: 20px;
}
#gritter-container.bottom {
bottom: 20px;
}
.gritter-item.popup {
position: relative;
max-width: 450px;
visibility: visible;
right: auto;
left: auto;
right: auto !important;
left: auto !important;
top: auto;
bottom: auto;
}
@ -33,4 +38,12 @@
.gritter-item.error .popup-content {
color: #a84341;
background-color: #eed3d4;
}
@media (max-width: 720px) {
#gritter-container {
left: 1rem;
right: 1rem;
transform: none;
}
}