UX: Add prefers-reduced-motion query for Colibris skin #4136 (#4137)

pull/4141/head
axlevxa 2020-06-27 01:49:37 -07:00 committed by GitHub
parent 8a13bde535
commit 0e2749831a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 1 deletions

View File

@ -75,10 +75,17 @@
background-color: var(--bg-color);
}
@media (prefers-reduced-motion) {
.chat-content {
transform: scale(1);
transition: none;
}
}
@media (max-width: 800px) {
#chaticon {
right: 0;
}
.stick-to-screen-btn { display: none; }
}
}

View File

@ -63,6 +63,18 @@
transform: scale(1) translateY(0) !important;
transition: all 0.4s cubic-bezier(0.74, -0.05, 0.27, 1.75) !important;
}
@media (prefers-reduced-motion) {
#gritter-container.top .gritter-item.popup > .popup-content {
transform: scale(1) translateY(0px) !important;
}
#gritter-container.bottom .gritter-item.popup > .popup-content {
transform: scale(1) translateY(0px) !important;
}
.gritter-item.popup.popup-show > .popup-content {
transform: scale(1) translateY(0px) !important;
transition: none;
}
}
/* for ep_deleted_after_delay */
.gritter-item #close_expiration_notif {

View File

@ -41,6 +41,19 @@
min-width: 180px;
}
@media (prefers-reduced-motion) {
.popup>.popup-content {
transform: scale(1);
transition: none;
}
.nice-select .list {
transform: scale(1) translateY(0px);
-webkit-transform: scale(1) translateY(0px);
-ms-transform: scale(1) translateY(0px);
transition: none;
}
}
@media (max-width: 800px) {
.popup-content {
padding: 1rem;