2018-05-25 08:16:38 -04:00
|
|
|
// shared styles
|
|
|
|
// used in both login and
|
|
|
|
// create account modals
|
2021-02-10 15:53:18 -05:00
|
|
|
.d-modal.login-modal:not(.hidden),
|
|
|
|
.d-modal.create-account {
|
|
|
|
.modal-body {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2019-12-11 15:47:25 -05:00
|
|
|
&.fixed-modal .modal-inner-container {
|
2018-05-25 08:16:38 -04:00
|
|
|
max-width: 350px;
|
2020-02-21 16:08:19 -05:00
|
|
|
max-height: 90vh;
|
2021-02-10 15:53:18 -05:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2018-05-25 08:16:38 -04:00
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
|
2018-05-25 16:44:44 -04:00
|
|
|
.close {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2021-03-09 17:00:46 -05:00
|
|
|
label {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tip:not(:empty) {
|
|
|
|
min-height: 1.4em; // prevents height jump when tips appear
|
|
|
|
}
|
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
.login-welcome-header {
|
|
|
|
padding: 1.5em 1em;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
#login-buttons:not(.hidden) {
|
|
|
|
display: flex;
|
2019-12-11 15:47:25 -05:00
|
|
|
flex: 1 0 auto;
|
2018-05-25 08:16:38 -04:00
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
2022-05-11 00:36:27 -04:00
|
|
|
padding: 0 1em;
|
2021-02-10 15:53:18 -05:00
|
|
|
margin: 0;
|
2022-05-11 00:36:27 -04:00
|
|
|
gap: 0 0.25em;
|
2018-06-06 09:02:35 -04:00
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
.btn {
|
2022-05-11 00:36:27 -04:00
|
|
|
padding: 0.5em;
|
2021-02-10 15:53:18 -05:00
|
|
|
border: 1px solid var(--primary-low);
|
2019-02-13 21:07:34 -05:00
|
|
|
flex: 1 1 47%;
|
2022-05-11 00:36:27 -04:00
|
|
|
font-size: var(--font-down-1);
|
2018-05-25 08:16:38 -04:00
|
|
|
white-space: nowrap;
|
2021-02-10 15:53:18 -05:00
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
2018-05-26 01:12:33 -04:00
|
|
|
}
|
2018-05-25 08:16:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
@media screen and (max-width: 750px) {
|
|
|
|
#login-buttons:not(.hidden) {
|
|
|
|
justify-content: center;
|
|
|
|
.btn {
|
|
|
|
&:nth-child(even) {
|
|
|
|
margin: 0 0 0.5em 0;
|
|
|
|
}
|
|
|
|
}
|
2019-03-08 11:14:07 -05:00
|
|
|
}
|
2021-02-10 15:53:18 -05:00
|
|
|
}
|
2019-03-08 11:14:07 -05:00
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
#login-form,
|
|
|
|
.login-form {
|
|
|
|
padding: 1em;
|
2014-02-25 16:40:15 -05:00
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
form {
|
2018-05-25 08:16:38 -04:00
|
|
|
display: flex;
|
2021-02-10 15:53:18 -05:00
|
|
|
justify-content: center;
|
2018-05-25 08:16:38 -04:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
2021-02-10 15:53:18 -05:00
|
|
|
|
|
|
|
.input-group {
|
|
|
|
input {
|
2021-03-09 17:00:46 -05:00
|
|
|
height: 2.5em;
|
2021-02-10 15:53:18 -05:00
|
|
|
margin-bottom: 0.25em;
|
|
|
|
}
|
|
|
|
margin-bottom: 1em;
|
|
|
|
label.alt-placeholder {
|
|
|
|
top: 8px;
|
|
|
|
}
|
|
|
|
input:focus + label,
|
|
|
|
input.value-entered + label.alt-placeholder {
|
|
|
|
top: -10px;
|
|
|
|
}
|
|
|
|
input.alt-placeholder:invalid {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
label.more-info {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
2018-05-25 08:16:38 -04:00
|
|
|
}
|
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
.user-fields .input-group {
|
|
|
|
.text.user-field {
|
|
|
|
label.control-label {
|
|
|
|
top: 8px;
|
|
|
|
}
|
|
|
|
&.value-entered label.control-label,
|
|
|
|
label.control-label.value-entered {
|
|
|
|
top: -10px;
|
|
|
|
left: calc(1em - 0.25em);
|
|
|
|
background-color: var(--secondary);
|
|
|
|
padding: 0 0.25em 0 0.25em;
|
|
|
|
font-size: 14px;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.controls .checkbox-label {
|
|
|
|
align-items: center;
|
|
|
|
input[type="checkbox"].ember-checkbox {
|
|
|
|
height: 15px;
|
|
|
|
}
|
2018-05-25 08:16:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-body input[type="text"],
|
|
|
|
.modal-body input[type="email"],
|
2018-06-10 09:33:41 -04:00
|
|
|
.modal-body input[type="password"],
|
|
|
|
.modal-body input[type="tel"] {
|
2018-05-25 08:16:38 -04:00
|
|
|
margin-top: 0;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-footer {
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 auto;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-1);
|
2021-03-09 17:00:46 -05:00
|
|
|
padding: 1.25em;
|
2017-05-18 16:11:46 -04:00
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
.alert.alert-error {
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2016-07-18 05:26:34 -04:00
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
#new-account-link {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
2016-07-18 05:26:34 -04:00
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
// Styles for the
|
|
|
|
// login modal only
|
2022-05-11 00:36:27 -04:00
|
|
|
|
|
|
|
#discourse-modal {
|
|
|
|
&.d-modal.login-modal:not(.hidden) .modal-body {
|
|
|
|
max-height: 68vh !important; // overrides another important
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
.d-modal.login-modal {
|
|
|
|
#credentials {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#login-form {
|
2014-08-25 15:38:20 -04:00
|
|
|
label {
|
2018-05-25 08:16:38 -04:00
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2021-02-10 15:53:18 -05:00
|
|
|
}
|
2018-05-25 08:16:38 -04:00
|
|
|
|
2021-02-26 00:33:34 -05:00
|
|
|
.d-modal .login-modal {
|
|
|
|
&.second-factor + .modal-footer {
|
|
|
|
#new-account-link {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
.login-modal:not(.hidden).has-alt-auth.no-local-login {
|
|
|
|
#login-buttons:not(.hidden) {
|
|
|
|
width: 100%;
|
2014-08-25 15:38:20 -04:00
|
|
|
}
|
2018-05-25 08:16:38 -04:00
|
|
|
}
|
2014-08-25 15:38:20 -04:00
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
// styles for the
|
|
|
|
// create account
|
|
|
|
// modal only
|
2020-02-21 16:08:19 -05:00
|
|
|
|
|
|
|
#discourse-modal .create-account .modal-body {
|
|
|
|
max-height: 60vh !important;
|
2021-02-10 15:53:18 -05:00
|
|
|
overflow: hidden;
|
2020-02-21 16:08:19 -05:00
|
|
|
@media screen and (max-height: 575px) {
|
|
|
|
max-height: 50vh !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
.d-modal.create-account {
|
|
|
|
.create-account-form {
|
|
|
|
overflow-y: auto;
|
|
|
|
.login-welcome-header {
|
|
|
|
width: calc(100% - 2em);
|
|
|
|
position: sticky;
|
|
|
|
position: -webkit-sticky;
|
2022-02-07 14:31:03 -05:00
|
|
|
z-index: z("header");
|
2021-02-10 15:53:18 -05:00
|
|
|
top: 0;
|
|
|
|
background-color: var(--secondary);
|
2014-02-25 16:40:15 -05:00
|
|
|
}
|
|
|
|
}
|
2021-02-10 15:53:18 -05:00
|
|
|
}
|
2018-05-25 16:44:44 -04:00
|
|
|
|
2021-02-10 15:53:18 -05:00
|
|
|
.create-account .modal-body {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-10-03 22:26:05 -04:00
|
|
|
#login-buttons {
|
2020-08-03 22:57:10 -04:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2018-05-25 16:44:44 -04:00
|
|
|
}
|
|
|
|
.login-form {
|
|
|
|
margin-bottom: 0.75em;
|
|
|
|
}
|
2014-02-25 16:40:15 -05:00
|
|
|
}
|
2014-10-02 15:56:28 -04:00
|
|
|
|
|
|
|
.create-account {
|
2017-08-11 08:03:54 -04:00
|
|
|
.user-fields {
|
2018-06-06 09:02:35 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2017-08-11 08:03:54 -04:00
|
|
|
}
|
|
|
|
|
2018-06-06 09:02:35 -04:00
|
|
|
.user-field {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2014-10-02 15:56:28 -04:00
|
|
|
}
|
|
|
|
}
|
2017-01-31 15:42:12 -05:00
|
|
|
|
2018-05-25 08:16:38 -04:00
|
|
|
.password-reset,
|
2019-06-12 10:37:26 -04:00
|
|
|
.email-login,
|
2018-05-25 08:16:38 -04:00
|
|
|
.invites-show {
|
2017-01-31 15:42:12 -05:00
|
|
|
margin-top: 30px;
|
|
|
|
.col-image {
|
|
|
|
padding-top: 12px;
|
|
|
|
}
|
|
|
|
.password-reset-img {
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
.col-form {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
.tip {
|
|
|
|
display: block;
|
|
|
|
margin: 6px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-13 16:19:41 -05:00
|
|
|
.password-reset .tip {
|
|
|
|
max-width: 180px;
|
|
|
|
}
|
|
|
|
|
2017-01-31 15:42:12 -05:00
|
|
|
.discourse-touch .password-reset {
|
|
|
|
.instructions {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
}
|
2017-02-13 16:19:41 -05:00
|
|
|
|
|
|
|
.invites-show {
|
|
|
|
.col-image {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-12-28 22:42:18 -05:00
|
|
|
h1.login-title {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-up-3);
|
2021-12-28 22:42:18 -05:00
|
|
|
}
|
2017-08-11 08:03:54 -04:00
|
|
|
}
|
2022-11-17 02:39:39 -05:00
|
|
|
|
|
|
|
.email-login {
|
|
|
|
width: 90%;
|
|
|
|
}
|