Changeset 6635 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/components/_about.scss
- Timestamp:
- 02/14/2018 11:59:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/components/_about.scss
r6608 r6635 158 158 159 159 .freedoms { 160 margin-top: 2rem; 160 161 text-align: center; 162 163 .graphic { 164 background: url( '/wp-content/themes/pub/wporg-main/images/freedoms.png' ) no-repeat; // TODO: CDN 165 background-size: 100%; 166 padding-top: 100%; 167 168 @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx), only screen and (min-resolution: 144dpi) { 169 background-image: url( '/wp-content/themes/pub/wporg-main/images/freedoms-2x.png' ); // TODO: CDN 170 } 171 } 172 173 @include breakpoint( 0, 479px ) { 174 .graphic { 175 float: left; 176 margin: 0 1rem 1rem 0; 177 padding-top: 25%; 178 width: 25%; 179 } 180 181 h4, p { 182 clear: none; 183 margin-top: 0; 184 text-align: left; 185 } 186 } 187 188 @include breakpoint( 480px, 767px ) { 189 &.row { 190 flex-direction: row; 191 flex-wrap: wrap; 192 } 193 .col-3 { 194 width: calc( 50% - #{$grid-gutter} ); 195 } 196 } 197 198 [class*="col-"]:nth-of-type(2) .graphic { 199 background-position: 0 34%; 200 } 201 202 [class*="col-"]:nth-of-type(3) .graphic { 203 background-position: 0 66%; 204 } 205 206 [class*="col-"]:nth-of-type(4) .graphic { 207 background-position: 0 100%; 208 } 161 209 162 210 h4 {
Note: See TracChangeset
for help on using the changeset viewer.