mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Significantly improve mobile UX
Most of #137 done. - Use FastClick to make everything feel more responsive - Use transforms for animations to make them silky smooth - Style the drawer the same as the header to keep things simple - Revert to fixed composer, but allow it to be minimised - Add a separate notifications page for mobile so it’s easy to go back - Add indicator to the menu button when there are unread notifications - Close the drawer when navigating away - Make dropdowns/modals scrollable - Many other mobile tweaks and bug fixes Didn’t take much care to keep CSS clean, due to #103
This commit is contained in:
@@ -83,33 +83,32 @@
|
||||
.modal.fade {
|
||||
opacity: 1;
|
||||
}
|
||||
.modal-backdrop.in {
|
||||
opacity: 0;
|
||||
}
|
||||
.modal-dialog {
|
||||
.modal {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
}
|
||||
.modal-dialog {
|
||||
margin: 0;
|
||||
overflow: auto;
|
||||
|
||||
.modal.fade & {
|
||||
.transition(top 0.3s);
|
||||
top: 100%;
|
||||
.translate(0, 0);
|
||||
&.fade {
|
||||
.transition-transform(0.3s);
|
||||
.translate3d(0, 100vh, 0);
|
||||
}
|
||||
.modal.in & {
|
||||
top: 0;
|
||||
&.in {
|
||||
-webkit-transform: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: " ";
|
||||
.toolbar();
|
||||
}
|
||||
}
|
||||
.modal-dialog {
|
||||
margin: 0;
|
||||
-webkit-transform: none !important;
|
||||
transform: none !important;
|
||||
}
|
||||
.modal-content {
|
||||
border-radius: 0;
|
||||
border: 0;
|
||||
@@ -121,10 +120,6 @@
|
||||
padding: 0;
|
||||
border: 0;
|
||||
min-height: 0;
|
||||
|
||||
& h3 {
|
||||
line-height: 36px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user