mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-23 03:23:42 +03:00
Pledge List: Fix grid layout for small screens
This commit is contained in:
parent
ac1027b550
commit
5b5a1d50ff
|
@ -58,24 +58,36 @@ body.archive.post-type-archive-5ftf_pledge {
|
||||||
|
|
||||||
/* Structure */
|
/* Structure */
|
||||||
article {
|
article {
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 330px auto;
|
|
||||||
margin-bottom: ms(12);
|
margin-bottom: ms(12);
|
||||||
|
|
||||||
.entry-image {
|
.entry-image {
|
||||||
grid-column: 1;
|
margin-bottom: ms(4);
|
||||||
grid-row: 1 / span 2;
|
|
||||||
margin-right: ms(8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-header {
|
@include breakpoint( $breakpoint-small ) {
|
||||||
grid-column: 2;
|
display: grid;
|
||||||
grid-row: 1;
|
grid-template-columns: 200px auto;
|
||||||
|
|
||||||
|
.entry-image {
|
||||||
|
grid-column: 1;
|
||||||
|
grid-row: 1 / span 2;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-right: ms(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-header {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-content {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-content {
|
@include breakpoint( $breakpoint-tablet ) {
|
||||||
grid-column: 2;
|
grid-template-columns: 330px auto;
|
||||||
grid-row: 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue