UX: improve login modal on very narrow screens in desktop mode (#27405)

This commit is contained in:
Kris 2024-06-11 09:53:58 -04:00 committed by GitHub
parent 29460e1422
commit e44025b687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,7 @@
} }
.login-left-side { .login-left-side {
box-sizing: border-box;
width: 100%; width: 100%;
padding: 3rem; padding: 3rem;
overflow: auto; overflow: auto;
@ -51,12 +52,12 @@
display: grid; display: grid;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
grid-template-rows: auto 1fr; grid-template-rows: auto 1fr;
overflow-wrap: anywhere;
} }
.login-title { .login-title {
font-size: var(--font-up-6); font-size: var(--font-up-6);
margin: 0; margin: 0;
line-height: var(--line-height-medium);
} }
.waving-hand { .waving-hand {
@ -122,6 +123,36 @@
display: inline; display: inline;
} }
} }
.desktop-view & {
@media screen and (max-width: 767px) {
// important to maintain narrow desktop widths
// for auth modals in Discourse Hub on iPad
.d-modal__header {
right: 0;
top: 0;
}
.has-alt-auth {
flex-direction: column;
overflow: auto;
gap: 1em;
.login-welcome-header,
.d-modal__footer {
font-size: var(--font-down-1);
}
.login-left-side {
overflow: unset;
padding: 1em 2.75em 1em 1em;
}
.login-right-side {
padding: 1em;
}
#login-form {
margin: 1.5em 0;
}
}
}
}
} }
/* end shared styles */ /* end shared styles */