mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 11:44:44 +08:00
UX: improve login modal on very narrow screens in desktop mode (#27405)
This commit is contained in:
parent
29460e1422
commit
e44025b687
|
@ -42,6 +42,7 @@
|
|||
}
|
||||
|
||||
.login-left-side {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
padding: 3rem;
|
||||
overflow: auto;
|
||||
|
@ -51,12 +52,12 @@
|
|||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.login-title {
|
||||
font-size: var(--font-up-6);
|
||||
margin: 0;
|
||||
line-height: var(--line-height-medium);
|
||||
}
|
||||
|
||||
.waving-hand {
|
||||
|
@ -122,6 +123,36 @@
|
|||
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user