discourse/app/assets/stylesheets/common/base/login.scss

176 lines
2.8 KiB
SCSS

.caps-lock-warning {
color: $danger;
font-size: $font-down-1;
font-weight: bold;
}
.discourse-no-touch #login-form {
margin: 0;
}
.discourse-touch .caps-lock-warning {
display: none;
}
#login-form {
table {
width: 100%;
}
a {
color: dark-light-choose($primary-high, $secondary-low);
}
td {
padding-right: 5px;
}
}
#new-account-link {
cursor: pointer;
}
$label-width: 92px;
$input-width: 220px;
.login-modal,
.create-account {
tr {
border: none;
}
tr:not(.instructions) {
td {
padding: 10px 0 0 0;
}
}
td {
label,
input {
margin-bottom: 0;
width: 100%;
}
}
.modal-footer {
.inline-spinner {
display: inline-flex;
}
}
}
.create-account {
table {
td.label {
width: $label-width;
}
td input {
width: $input-width;
}
}
.disclaimer {
color: dark-light-choose($primary-medium, $secondary-medium);
margin-top: 0.5em;
}
.user-field.confirm {
margin-top: 20px;
}
.user-field {
> label {
width: $label-width;
float: left;
}
input[type="text"] {
width: $input-width;
margin-bottom: 0;
}
.controls {
margin-left: $label-width;
margin-bottom: 15px;
label {
width: auto;
text-align: left;
font-weight: normal;
float: auto;
}
.instructions {
color: dark-light-choose($primary-medium, $secondary-medium);
margin: 0;
font-size: $font-down-1;
font-weight: normal;
line-height: $line-height-medium;
}
}
clear: both;
}
}
.password-reset {
.instructions {
label {
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
}
.invites-show {
.two-col {
position: relative;
display: flex;
}
.col-image {
position: relative;
width: 150px;
margin-right: 20px;
@media screen and (max-width: 600px) {
display: none;
}
}
form {
margin-top: 24px;
button.btn-primary {
margin-top: 10px;
}
label:not(.checkbox-label) {
font-weight: bold;
}
.controls,
.input {
margin-bottom: 10px;
}
.instructions {
color: dark-light-choose($primary-medium, $secondary-medium);
margin: 0;
font-size: $font-down-1;
font-weight: normal;
line-height: $line-height-medium;
}
}
}
.auth-message {
padding: 0 15px 15px 15px;
&:empty {
padding: 0;
}
}
.modal tr.instructions {
display: flex;
flex-direction: column;
margin-top: 0.15em;
label {
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
// alternate login / create new account buttons should be de-emphasized
button#login-link,
button#new-account-link {
background: transparent;
color: dark-light-choose($primary-high, $secondary-low);
}