// shared styles used // on both the login and // create account modals .login-modal, .create-account { #login-buttons:not(.hidden) { display: flex; flex-direction: column; flex-basis: 40%; align-items: center; min-height: 175px; border-left: 1px solid $primary-low; padding: 0 15px; order: 2; button { margin: 0.35em; width: 160px; &:lang(zh_CN) { min-width: 200px; } } } .login-modal { #login-buttons:not(.hidden) { button { &:first-of-type { margin-top: 2.8em; } &:last-of-type { margin-bottom: 3em; } } } } .create-account { #login-buttons:not(.hidden) { justify-content: flex-start; padding-top: 2.7em; } } #login-form { flex: 1 0 auto; padding: 0 15px; } tr:not(.instructions) { td { display: flex; padding: 5px 0 0 0; } } tr.input label { margin-bottom: 0; } } // styles used on // login modal only .d-modal.login-modal { .modal-body, #credentials { display: flex; align-items: center; padding: 15px 0; tr { display: flex; flex-direction: column; } &.hidden { display: none; } } } // styles used on the // create account // modal only .d-modal.create-account { .modal-body { display: flex; padding: 15px 0; } .create-account-form tr { display: flex; flex-direction: column; } .login-form { position: relative; display: flex; flex: 1 1 50%; 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: 475px; @media screen and (max-height: 768px) { max-height: 60vh; } overflow-x: hidden; overflow-y: auto; } form, table { width: 100%; display: block; //IE11 } tr { display: flex; flex-direction: column; margin-top: 0.15em; &.password-confirmation { display: none; } } } tr.input { input, label { margin-bottom: 0; width: 100%; } .tip { max-width: 340px; } } .user-field { display: flex; flex-direction: column; &.confirm { margin-top: 5px; } > label { width: auto; } .controls { margin-left: 0; } } .invites-show { padding-top: 20px; .two-col { margin-top: 30px; } .col-form { margin-left: 200px; .inline-invite-img { display: none; } } form { .controls, .input { margin-left: 20px; } input, label { margin-bottom: 0; } .user-field .control-label:not(.checkbox-label) { margin-left: 20px; } } } .tos-agree { margin-bottom: 12px; } } .login-form { .tip { &:not(:empty) + td { display: none; } &:not(:empty), &:empty + td { display: block; min-height: 1.75em; max-width: 240px; } } } .password-reset, .invites-show { .col-form { padding-left: 20px; } .col-image { width: 175px; img { width: 100%; } } h2 { margin-bottom: 12px; } } .password-reset { .col-form { padding-top: 40px; } }