mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
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:
parent
3e12b6d132
commit
b06324ad80
5 changed files with 90 additions and 37 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue