Manage Pledge: Update email dialog to use JS submission (#104)

Use the proper dialog behavior for submitting an email to generate a manage link.

Fixes #98.
This commit is contained in:
Kelly Dwan 2019-11-21 15:31:29 -05:00 committed by GitHub
parent a67ef04505
commit a11e3c5fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1202 additions and 134 deletions

View file

@ -51,54 +51,43 @@ body.single.single-5ftf_pledge {
.entry-footer {
margin-top: ms(2);
margin-bottom: ms(20);
border-top: 1px solid $color-gray-light-500;
padding-top: ms(2);
.report-wrapper {
margin-bottom: 1em;
a {
color: $color-alert-red;
}
}
.edit-pledge-wrapper {
text-align: right;
p {
font-size: ms(-2);
}
.button {
padding-right: 4px;
text-decoration: none;
color: $color__wp-blue;
font-size: 1rem;
&:hover {
border-bottom: 1px solid currentColor;
}
}
}
@include breakpoint( $breakpoint-tablet ) {
display: grid;
grid-template-columns: 50% 50%;
display: flex;
#toggle-management-link-form,
#request-management-link {
float: right;
clear: both;
.report-wrapper {
flex: 1 0 auto;
}
}
}
#request-management-link {
width: 300px;
border: 1px solid #ebeced; // setup var
box-shadow: rgba(25, 30, 35, 0.1) 0 3px 30px;
margin-top: 20px;
padding: 15px;
// todo add the upper ^ carot thing
// border-radius or something to draw triangle
// element inside the box, but then abs position outside it?
// z-index above parent so it's above box-shadow - probably happens by default?
p:first-child {
margin-top: 0;
}
input[type="email"] {
width: 100%;
margin: 0 0 20px 0;
}
input[type="submit"] {
float: right;
clear: both;
margin-bottom: 20px;
}
#form-messages {
clear: both;
}
}
}