mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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:
@@ -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 |
Reference in New Issue
Block a user