Add some media queries to improve UI on mobile

This commit is contained in:
Dale Harvey 2020-01-30 11:18:14 +01:00 committed by Jovan Gerodetti
parent bd5a81e599
commit 049e3fc08c
6 changed files with 45 additions and 1 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
*/ */
.mx_AuthBody { .mx_AuthBody {
width: 500px; max-width: 500px;
font-size: $font-12px; font-size: $font-12px;
color: $authpage-secondary-color; color: $authpage-secondary-color;
background-color: $authpage-body-bg-color; background-color: $authpage-body-bg-color;
@ -146,3 +146,9 @@ limitations under the License.
.mx_AuthBody_spinner { .mx_AuthBody_spinner {
margin: 1em 0; margin: 1em 0;
} }
@media only screen and (max-width : 480px) {
.mx_AuthBody {
padding: 10px;
}
}

View file

@ -21,3 +21,9 @@ limitations under the License.
padding: 25px 40px; padding: 25px 40px;
box-sizing: border-box; box-sizing: border-box;
} }
@media only screen and (max-width : 480px) {
.mx_AuthHeader {
display: none;
}
}

View file

@ -23,3 +23,9 @@ limitations under the License.
.mx_AuthHeaderLogo img { .mx_AuthHeaderLogo img {
width: 100%; width: 100%;
} }
@media only screen and (max-width : 480px) {
.mx_AuthHeaderLogo {
display: none;
}
}

View file

@ -29,3 +29,9 @@ limitations under the License.
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.33); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.33);
background-color: $authpage-modal-bg-color; background-color: $authpage-modal-bg-color;
} }
@media only screen and (max-width : 480px) {
.mx_AuthPage_modal {
margin-top: 0;
}
}

View file

@ -572,3 +572,14 @@ limitations under the License.
margin-left: 1em; margin-left: 1em;
} }
} }
@media only screen and (max-width : 480px) {
.mx_EventTile_line, .mx_EventTile_reply {
padding-left: 0;
margin-right: 0;
}
.mx_EventTile_content {
margin-top: 10px;
margin-right: 0;
}
}

View file

@ -267,3 +267,12 @@ limitations under the License.
.mx_RoomHeader_pinsIndicatorUnread { .mx_RoomHeader_pinsIndicatorUnread {
background-color: $pinned-unread-color; background-color: $pinned-unread-color;
} }
@media only screen and (max-width : 480px) {
.mx_RoomHeader_wrapper {
padding: 0;
}
.mx_RoomHeader {
overflow: hidden;
}
}