mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 19:13:44 +03:00

* 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
75 lines
1.1 KiB
SCSS
75 lines
1.1 KiB
SCSS
article.type-5ftf_pledge {
|
|
/* Structure */
|
|
display: grid;
|
|
grid-template-columns: 330px auto;
|
|
margin-bottom: ms(12);
|
|
|
|
.entry-image {
|
|
grid-column: 1;
|
|
grid-row: 1 / span 2;
|
|
margin-right: ms(8);
|
|
}
|
|
|
|
.entry-header {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.entry-content {
|
|
grid-column: 2;
|
|
grid-row: 2;
|
|
}
|
|
|
|
/* Styles */
|
|
|
|
.entry-image__placeholder {
|
|
background: $color-gray-light-100;
|
|
width: 100%;
|
|
height: 100px;
|
|
}
|
|
|
|
.entry-image__logo {
|
|
padding: ms(-2);
|
|
background: $color-gray-light-100;
|
|
text-align: center;
|
|
|
|
img {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
max-height: 100px;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.entry-title {
|
|
margin-top: 0;
|
|
font-size: ms(2);
|
|
font-weight: 400;
|
|
|
|
a {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.entry-content {
|
|
font-size: ms(-1);
|
|
color: $color__text-darker;
|
|
}
|
|
|
|
.pledge-contributors h3 {
|
|
margin-top: 0;
|
|
font-size: ms(-1);
|
|
color: $color__text-lighter;
|
|
}
|
|
|
|
.pledge-contributor__avatar {
|
|
display: inline-block;
|
|
background: $color-gray-light-700;
|
|
|
|
img {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|