p5.js-web-editor/client/styles/components/_forms.scss

108 lines
2.2 KiB
SCSS
Raw Normal View History

.form-error {
display: block;
padding-top: #{4 / $base-font-size}rem;
width: #{300 / $base-font-size}rem;
2020-04-12 17:00:00 +02:00
font-size: #{12 / $base-font-size}rem;
text-align: left;
@include themify() {
2019-05-22 15:38:24 +02:00
color: getThemifyVariable('error-color');
}
}
.form > * + * {
margin-top: #{12 / $base-font-size}rem;
}
2019-05-15 12:11:58 +02:00
.form--inline {
display: flex;
align-items: center;
}
.form__cancel-button {
margin-top: #{10 / $base-font-size}rem;
2016-10-12 20:25:24 +02:00
font-size: #{12 / $base-font-size}rem;
}
.form__navigation-options {
margin-top: #{16 / $base-font-size}rem;
font-size: #{12 / $base-font-size}rem;
2019-05-22 15:38:24 +02:00
@include themify() {
color: getThemifyVariable('form-navigation-options-color');
}
}
2019-05-15 12:11:58 +02:00
.form__legend{
font-size: #{21 / $base-font-size}rem;
font-weight: bold;
}
.form__label {
font-size: #{16 / $base-font-size}rem;
margin-top: #{25 / $base-font-size}rem;
margin-bottom: #{7 / $base-font-size}rem;
display: block;
2019-05-22 15:38:24 +02:00
@include themify() {
color: getThemifyVariable('form-secondary-title-color');
}
}
2019-05-15 12:11:58 +02:00
.form__label--hidden {
@extend %hidden-element;
}
.form__input {
width: 100%;
min-width: #{360 / $base-font-size}rem;
height: #{40 / $base-font-size}rem;
font-size: #{16 / $base-font-size}rem;
2019-05-22 15:38:24 +02:00
@include themify() {
color: getThemifyVariable('form-input-text-color');
background-color: getThemifyVariable('input-background-color');
}
}
2019-07-09 18:24:09 +02:00
.form__input-flexible-height {
height: auto;
}
.form__input::placeholder {
@include themify() {
color: getThemifyVariable('form-input-placeholder-text-color');
2019-05-22 15:38:24 +02:00
}
}
Email verification (#369) * Re-introduce Email Verification code Revert "Revert "Email verification"" This reverts commit d154d8bff259350523a0f139e844db96c43d2ee1. * Uses MJML to generate Reset Password email * Sends Password Reset and Email Confirmation emails using MJML template * Sends verified status along with user data * API endpoint for resending email verification confirmation * Displays verification status on Account page and allows resending * Send back error string * Passes email address through to sign/verify helper * Uses enum-style object to set verified state * Sends minimal info when user verifies since it can be done without login * Provides /verify UI and sends confirmation token to API * Better name for JWT secret token env var * Adds mail config variables to Readme * Encrypts email address in JWT The JWT sent as the token in the Confirm Password URL can be unencoded by anyone, although it's signature can only be verified by us. To ensure that no passwords are leaked, we encrypt the email address before creating the token. * Removes unused mail templates * Resets verified flag when email is changed and sends another email * Moves email confirmation functions next to each other * Extracts random token generator to helper * Moves email confirmation actions into Redux - updates the AccountForm label with a message to check inbox - show status when verifying email token * Uses generated token stored in DB for email confirmation * Sets email confirmation status to verified if logging in from Github * Sends email using new method on account creation * Fixes linting errors * Removes replyTo config
2017-06-26 18:48:28 +02:00
.form__context {
text-align: left;
margin-top: #{15 / $base-font-size}rem;
}
.form__status {
2019-05-22 15:38:24 +02:00
@include themify() {
color: getThemifyVariable('form-navigation-options-color');
}
Email verification (#369) * Re-introduce Email Verification code Revert "Revert "Email verification"" This reverts commit d154d8bff259350523a0f139e844db96c43d2ee1. * Uses MJML to generate Reset Password email * Sends Password Reset and Email Confirmation emails using MJML template * Sends verified status along with user data * API endpoint for resending email verification confirmation * Displays verification status on Account page and allows resending * Send back error string * Passes email address through to sign/verify helper * Uses enum-style object to set verified state * Sends minimal info when user verifies since it can be done without login * Provides /verify UI and sends confirmation token to API * Better name for JWT secret token env var * Adds mail config variables to Readme * Encrypts email address in JWT The JWT sent as the token in the Confirm Password URL can be unencoded by anyone, although it's signature can only be verified by us. To ensure that no passwords are leaked, we encrypt the email address before creating the token. * Removes unused mail templates * Resets verified flag when email is changed and sends another email * Moves email confirmation functions next to each other * Extracts random token generator to helper * Moves email confirmation actions into Redux - updates the AccountForm label with a message to check inbox - show status when verifying email token * Uses generated token stored in DB for email confirmation * Sets email confirmation status to verified if logging in from Github * Sends email using new method on account creation * Fixes linting errors * Removes replyTo config
2017-06-26 18:48:28 +02:00
}
.form [type="submit"] {
margin-left: auto;
margin-right: auto;
}
// .form [type="submit"] {
// @extend %button;
// padding: #{8 / $base-font-size}rem #{25 / $base-font-size}rem;
// margin: #{39 / $base-font-size}rem 0 #{24 / $base-font-size}rem 0;
// }
2019-07-09 18:24:09 +02:00
// .form [type="submit"][disabled] {
// cursor: not-allowed;
// }
2019-07-09 18:24:09 +02:00
// .form--inline [type="submit"] {
// margin: 0 0 0 #{24 / $base-font-size}rem;
// }
// .form [type="submit"][disabled],
// .form--inline [type="submit"][disabled] {
// cursor: not-allowed;
// }