About: Optimize freedoms sprite and add 2 column layout.

Props garrett-eclipse, ryelle.
Fixes #46363.


git-svn-id: https://develop.svn.wordpress.org/trunk@49479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi
2020-11-02 19:43:36 +00:00
parent f82f8eccf5
commit 07171631d0
3 changed files with 36 additions and 5 deletions
+36 -5
View File
@@ -296,17 +296,36 @@
@media screen and (max-width: 782px) {
.about__section.has-2-columns.is-wider-right,
.about__section.has-2-columns.is-wider-left,
.about__section.has-3-columns,
.about__section.has-4-columns {
.about__section.has-3-columns {
display: block;
padding-bottom: 16px;
}
.about__section.has-3-columns .column:nth-of-type(n),
.about__section.has-4-columns .column:nth-of-type(n) {
.about__section.has-3-columns .column:nth-of-type(n) {
padding-top: 16px;
padding-bottom: 16px;
}
.about__section.has-4-columns {
-ms-grid-columns: (1fr)[2];
grid-template-columns: repeat(2, 1fr);
}
.about__section.has-4-columns .column:nth-of-type(2n+1) {
-ms-grid-column: 1;
grid-column-start: 1;
}
.about__section.has-4-columns .column:nth-of-type(2n) {
-ms-grid-column: 2;
grid-column-start: 2;
}
.about__section.has-4-columns .column:nth-of-type(4n+3),
.about__section.has-4-columns .column:nth-of-type(4n) {
-ms-grid-row: 2;
grid-row-start: 2;
}
}
@media screen and (max-width: 600px) {
@@ -327,6 +346,18 @@
}
}
@media screen and (max-width: 480px) {
.about__section.has-4-columns {
display: block;
padding-bottom: 16px;
}
.about__section.has-4-columns .column:nth-of-type(n) {
padding-top: 16px;
padding-bottom: 16px;
}
}
/* 1.2 - Typography & Elements */
.about__container {
@@ -1113,7 +1144,7 @@
}
.freedoms-php .column .freedoms-image {
background-image: url('../images/freedoms-2x.png');
background-image: url('../images/freedoms.png');
background-size: 100%;
padding-top: 100%;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB