Adjustments and fixes to updated login design

This commit is contained in:
Kris 2018-05-25 16:44:44 -04:00
parent 4195c7c9ea
commit 3b2af4b91f
7 changed files with 73 additions and 83 deletions

View File

@ -2,6 +2,10 @@
{{#unless complete}} {{#unless complete}}
{{#d-modal-body title="create_account.title"}} {{#d-modal-body title="create_account.title"}}
{{#unless hasAuthOptions}}
{{login-buttons externalLogin="externalLogin"}}
{{/unless}}
{{#if showCreateForm}} {{#if showCreateForm}}
<div class="login-form"> <div class="login-form">
<form> <form>
@ -96,9 +100,6 @@
</div> </div>
{{/if}} {{/if}}
{{#unless hasAuthOptions}}
{{login-buttons externalLogin="externalLogin"}}
{{/unless}}
{{/d-modal-body}} {{/d-modal-body}}
{{#if showCreateForm}} {{#if showCreateForm}}

View File

@ -13,6 +13,9 @@
} }
#login-form { #login-form {
table {
width: 100%;
}
a { a {
color: dark-light-choose($primary-high, $secondary-low); color: dark-light-choose($primary-high, $secondary-low);
} }
@ -40,6 +43,7 @@ $input-width: 220px;
td { td {
label, input { label, input {
margin-bottom: 0; margin-bottom: 0;
width: 100%;
} }
} }
} }
@ -56,9 +60,8 @@ $input-width: 220px;
} }
.disclaimer { .disclaimer {
font-size: $font-down-1;
color: dark-light-choose($primary-medium, $secondary-medium); color: dark-light-choose($primary-medium, $secondary-medium);
clear: both; margin-top: .5em;
} }
.user-field.confirm { .user-field.confirm {
@ -135,6 +138,11 @@ $input-width: 220px;
} }
} }
.modal tr.instructions {
label {
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
// alternate login / create new account buttons should be de-emphasized // alternate login / create new account buttons should be de-emphasized

View File

@ -80,6 +80,8 @@
} }
.modal-inner-container { .modal-inner-container {
display: table;
min-width: 320px;
max-width: 700px; max-width: 700px;
margin: 0 auto; margin: 0 auto;
background-color: $secondary; background-color: $secondary;

View File

@ -9,18 +9,15 @@
.login-modal, .login-modal,
.create-account { .create-account {
#login-buttons:not(.hidden) { #login-buttons:not(.hidden) {
display: -webkit-flex;
-webkit-flex-direction: column;
-webkit-justify-content: center;
-webkit-flex-basis: 50%;
-webkit-align-items: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
flex-basis: 50%; flex-basis: 40%;
align-items: center; align-items: center;
min-height: 200px; min-height: 175px;
border-left: 1px solid $primary-low; border-left: 1px solid $primary-low;
padding: 15px;
order: 2;
button { button {
margin: 0.35em; margin: 0.35em;
@ -31,10 +28,13 @@
} }
} }
.modal-inner-container {
min-width: 475px;
}
#login-form { #login-form {
-webkit-flex: 1 0 auto;
flex: 1 0 auto; flex: 1 0 auto;
padding: 1em 0; padding: 0 15px;
} }
tr:not(.instructions) { tr:not(.instructions) {
@ -55,12 +55,9 @@
.d-modal.login-modal { .d-modal.login-modal {
.modal-body, .modal-body,
#credentials { #credentials {
display: -webkit-flex;
-webkit-align-items: center;
-webkit-justify-content: center;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; padding: 15px 0;
tr { tr {
display: -webkit-flex; display: -webkit-flex;
@ -76,10 +73,8 @@
// modal only // modal only
.d-modal.create-account { .d-modal.create-account {
.modal-body { .modal-body {
display: -webkit-flex;
-webkit-justify-content: space-evenly;
display: flex; display: flex;
justify-content: space-evenly; padding: 15px 0;
} }
.create-account-form tr { .create-account-form tr {
@ -90,30 +85,29 @@
} }
.login-form { .login-form {
display: -webkit-flex;
-webkit-flex-basis: 50%;
-webkit-align-items: center;
display: flex; display: flex;
flex-basis: 50%; flex: 1 1 50%;
align-items: center; align-items: center;
padding: 0 15px;
form, table {
width: 100%;
}
tr:not(.password-confirmation) { tr {
display: -webkit-flex;
-webkit-flex-direction: column;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-top: 0.15em; margin-top: 0.15em;
&.password-confirmation {
display: none;
} }
} }
form {
margin: 0 auto;
} }
tr.input { tr.input {
input, input,
label { label {
margin-bottom: 0; margin-bottom: 0;
width: 100%;
} }
.tip { .tip {
max-width: 340px; max-width: 340px;
@ -129,7 +123,6 @@
&:empty + td { &:empty + td {
min-height: 1.75em; min-height: 1.75em;
width: 240px; width: 240px;
font-size: $font-down-1;
} }
} }
@ -194,12 +187,6 @@
margin-top: 15px; margin-top: 15px;
} }
.instructions {
label {
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
.user-fields { .user-fields {
border-top: 1px solid $primary-low; border-top: 1px solid $primary-low;
padding-top: 20px; padding-top: 20px;

View File

@ -5,9 +5,15 @@
} }
.radios { .radios {
height: 60px; height: 60px;
display: flex;
align-items: flex-start;
label {
flex: 1 0 auto;
margin-right: 1em;
margin-top: 1px;
}
.inputs { .inputs {
float: right; width: 100%;
width: 75%;
input { input {
width: 90%; width: 90%;
margin: 0 0 5px 0; margin: 0 0 5px 0;

View File

@ -8,56 +8,47 @@
// create account modals // create account modals
.login-modal, .login-modal,
.create-account { .create-account {
.modal-body {
display: -webkit-flex;
-webkit-align-items: center;
-webkit-flex-direction: column-reverse;
display: flex;
align-items: center;
flex-direction: column-reverse;
}
.modal-inner-container { .modal-inner-container {
max-width: 350px; max-width: 350px;
} }
.close {
padding: 0;
}
#login-buttons:not(.hidden) { #login-buttons:not(.hidden) {
display: -webkit-flex; display: -webkit-flex;
-webkit-flex-wrap: wrap;
-webkit-justify-content: center;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
width: 100%; width: 102%;
padding-bottom: 1em; padding-bottom: 10px;
margin-left: -2%;
button { button {
margin: 0.15em; flex: 1 1 48%;
max-width: 50%; max-width: 50%;
min-width: 158px; margin: 1% 0 1% 2%;
font-size: $font-up-1; font-size: $font-up-1;
overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
}
#login-form, + #login-form {
.login-form {
border-top: 1px solid $primary-low; border-top: 1px solid $primary-low;
} }
}
form { form {
display: -webkit-flex; display: -webkit-flex;
-webkit-justify-content: center; -webkit-justify-content: center;
display: flex; display: flex;
justify-content: center; justify-content: center;
width: 320px;
} }
table { table {
width: 100%; width: 100%;
max-width: 90vw; // Iphone 5s padding: 10px;
margin: 0 auto;
} }
tr { tr {
@ -81,11 +72,6 @@
&:not(:empty) + td { &:not(:empty) + td {
display: none; display: none;
} }
&:not(:empty),
&:empty + td {
font-size: $font-down-1;
}
} }
.modal-body input[type="text"], .modal-body input[type="text"],
@ -97,14 +83,9 @@
} }
.modal-footer { .modal-footer {
width: 330px;
box-sizing: border-box; box-sizing: border-box;
margin: 0 auto; margin: 0 auto;
} font-size: $font-down-1;
.btn-primary {
margin-bottom: 10px;
float: left;
} }
.alert.alert-error { .alert.alert-error {
@ -120,11 +101,6 @@
// Styles for the // Styles for the
// login modal only // login modal only
.d-modal.login-modal { .d-modal.login-modal {
.modal-body {
-webkit-flex-direction: column;
flex-direction: column;
}
#credentials { #credentials {
width: 100%; width: 100%;
tr { tr {
@ -136,6 +112,7 @@
} }
#login-form { #login-form {
margin-bottom: 0.75em;
td { td {
padding: 0; padding: 0;
width: 100%; width: 100%;
@ -167,11 +144,20 @@
// create account // create account
// modal only // modal only
.create-account .modal-body { .create-account .modal-body {
display: flex;
flex-direction: column;
tr.instructions { tr.instructions {
label { label {
color: dark-light-choose($primary-medium, $secondary-medium); color: dark-light-choose($primary-medium, $secondary-medium);
} }
} }
#login-buttons + .login-form {
border-top: 1px solid $primary-low;
}
.login-form {
margin-bottom: 0.75em;
}
} }
.create-account { .create-account {

View File

@ -28,7 +28,7 @@
// we need a little extra room on mobile for the // we need a little extra room on mobile for the
// stuff inside the footer to fit // stuff inside the footer to fit
.modal-footer { .modal-footer {
padding: 15px 7px 10px 7px; padding: 10px
} }
.modal-header { .modal-header {