UX: Make long sign-up forms scrollable in modal
This commit is contained in:
parent
1a96556f38
commit
57af43b142
|
@ -76,12 +76,6 @@ $input-width: 220px;
|
|||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.user-fields {
|
||||
margin-top: 0.75em;
|
||||
padding-top: 0.25em;
|
||||
border-top: 1px solid $primary-low;
|
||||
}
|
||||
|
||||
.user-field {
|
||||
> label {
|
||||
width: $label-width;
|
||||
|
@ -90,6 +84,10 @@ $input-width: 220px;
|
|||
margin-bottom: 0;
|
||||
padding-top: 5px;
|
||||
}
|
||||
&:first-of-type > label {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
|
|
|
@ -193,7 +193,6 @@
|
|||
.modal-body {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
max-height: 400px;
|
||||
&.full-height-modal {
|
||||
max-height: calc(100vh - 150px);
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
#login-buttons:not(.hidden) {
|
||||
button {
|
||||
&:first-of-type {
|
||||
margin-top: 3.2em;
|
||||
margin-top: 2.8em;
|
||||
}
|
||||
&:last-of-type {
|
||||
margin-bottom: 3.2em;
|
||||
margin-bottom: 3em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@
|
|||
.create-account {
|
||||
#login-buttons:not(.hidden) {
|
||||
justify-content: flex-start;
|
||||
padding-top: 1.5em;
|
||||
padding-top: 2.7em;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,10 +94,48 @@
|
|||
}
|
||||
|
||||
.login-form {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 1 1 50%;
|
||||
align-items: center;
|
||||
padding: 0 15px;
|
||||
overflow: hidden;
|
||||
|
||||
&:after,
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 25px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
&:after {
|
||||
bottom: 0;
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
rgba($secondary, 0) 0%,
|
||||
rgba($secondary, 1) 100%
|
||||
);
|
||||
}
|
||||
&:before {
|
||||
top: 0;
|
||||
background-image: linear-gradient(
|
||||
to top,
|
||||
rgba($secondary, 0) 0%,
|
||||
rgba($secondary, 1) 100%
|
||||
);
|
||||
}
|
||||
form {
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
margin-bottom: 5px;
|
||||
max-height: 450px;
|
||||
@media screen and (max-height: 768px) {
|
||||
max-height: 60vh;
|
||||
}
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
form,
|
||||
table {
|
||||
width: 100%;
|
||||
|
|
Loading…
Reference in New Issue