Theme: Add basic styles for My Pledges page.

There's more work to do here, but this gets us close enough to start beta testing.

See #56
This commit is contained in:
Ian Dunn 2019-10-29 12:52:47 -07:00
parent 858d70b045
commit 1c6d39cd2a
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 68 additions and 0 deletions

View file

@ -22,6 +22,7 @@
@import "about"; @import "about";
@import "archive"; @import "archive";
@import "entry-content"; @import "entry-content";
@import "my_pledges";
@import "page"; @import "page";
@import "pagination"; @import "pagination";
@import "pledge-contributors"; @import "pledge-contributors";

View file

@ -0,0 +1,67 @@
body.page-my-pledges .entry-content {
// move avatar and "pledge x hours" into place, align, etc
.avatar {
display: none;
@include breakpoint($breakpoint-tablet) {
display: block;
// round corners
}
}
}
.fftf_pledge {
text-align: center;
margin-bottom: 25px;
.pledge-logo-container {
display: block;
background-color: #FAFAFA; // todo make var
max-width: 80%;
margin: 0 auto;
.attachment-pledge-logo {
max-height: 100px;
width: auto;
// todo needs tweaking
}
}
.pledge-title a {
text-decoration: underline;
// font size etc
}
.pledge-actions {
input {
display: block;
margin: 1em auto;
&[name="decline_invitation"],
&[name="leave_organization"] {
color: #bf2b2b; // todo var
}
}
}
@include breakpoint($breakpoint-tablet) {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-areas: "logo name actions";
text-align: left;
.pledge-logo-container {
grid-area: logo;
}
.pledge-title {
grid-area: name;
}
.pledge-actions {
grid-area: actions;
}
}
}