mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-07 19:25:44 +03:00
Pledge List: Display pledges in list with sort and search ability (#33)
* Use the post-type when choosing template partial * Add pledge archive templates * Style pledge list page * Style individual pledge * Use pledge featured image for the logo * Fix aspect ratio of image * Add real contributors to the pledges * Enable sorting and searching of pledges * Add pledge sorting markup * Style the page header * Restrict any pledges with no contributors from being shown on the frontend * Update contributor count key name
This commit is contained in:
parent
f47024efda
commit
553247cbf7
13 changed files with 398 additions and 10 deletions
9
themes/wporg-5ftf/css/components/_archive.scss
Normal file
9
themes/wporg-5ftf/css/components/_archive.scss
Normal file
|
@ -0,0 +1,9 @@
|
|||
body.archive {
|
||||
|
||||
.page-title {
|
||||
color: $color__text-heading-darker;
|
||||
font-size: ms(8);
|
||||
font-weight: 300;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
|
@ -20,8 +20,10 @@
|
|||
@import "../../../pub/wporg/css/components/wporg-footer";
|
||||
@import "../../../pub/wporg/css/components/wporg-header";
|
||||
@import "about";
|
||||
@import "archive";
|
||||
@import "entry-content";
|
||||
@import "page";
|
||||
@import "pledge-list";
|
||||
@import "site-content";
|
||||
@import "site-header";
|
||||
@import "site-title";
|
||||
|
|
58
themes/wporg-5ftf/css/components/_pledge-list.scss
Normal file
58
themes/wporg-5ftf/css/components/_pledge-list.scss
Normal file
|
@ -0,0 +1,58 @@
|
|||
body.archive.post-type-archive-5ftf_pledge {
|
||||
|
||||
// Expand archive content area to full-width of header.
|
||||
.site-content .site-main {
|
||||
padding: 0 10px;
|
||||
max-width: $size__site-main;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: center;
|
||||
margin: ms(12) 0;
|
||||
|
||||
.page-title {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-header-callout {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.page-header-controls {
|
||||
grid-column: 1 / span 2;
|
||||
grid-row: 2;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
margin-top: ms(2);
|
||||
border-top: 1px solid $color-gray-light-500;
|
||||
padding-top: ms(2);
|
||||
|
||||
form:nth-of-type(2n+1) {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
form:nth-of-type(2n) {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-header-controls {
|
||||
font-size: ms(-2);
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
font-size: 1em;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue