mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
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:
parent
858d70b045
commit
1c6d39cd2a
|
@ -22,6 +22,7 @@
|
|||
@import "about";
|
||||
@import "archive";
|
||||
@import "entry-content";
|
||||
@import "my_pledges";
|
||||
@import "page";
|
||||
@import "pagination";
|
||||
@import "pledge-contributors";
|
||||
|
|
67
themes/wporg-5ftf/css/components/_my_pledges.scss
Normal file
67
themes/wporg-5ftf/css/components/_my_pledges.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue