diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/components/_home-welcome.scss wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/components/_home-welcome.scss
index c18a277ba..4de4f3cc6 100644
|
|
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
| 35 | a { |
| 36 | text-decoration: none; |
| 37 | } |
| 38 | |
35 | 39 | p { |
36 | 40 | font-size: 18px; |
37 | 41 | margin: 1em 0; |
… |
… |
|
279 | 283 | } |
280 | 284 | |
281 | 285 | #home-below { |
282 | | font-size: ms( -2 ); |
| 286 | display: block; |
| 287 | font-size: 13px; |
283 | 288 | margin: 0 auto ms( 0 ); |
284 | 289 | max-width: 960px; |
285 | | padding: 0 ms( 1 ); |
| 290 | padding: ms( 10 ) 0; |
286 | 291 | |
287 | 292 | @include breakpoint( sm ) { |
288 | | display: block; |
289 | | |
290 | | .col-2 { |
291 | | display: inline-block; |
292 | | vertical-align: top; |
293 | | width: calc( 50% - #{$grid-gutter} ); |
294 | | } |
| 293 | display: flex; |
| 294 | flex-direction: column; |
| 295 | padding-left: ms( 1 ); |
| 296 | padding-right: ms( 1 ); |
295 | 297 | } |
296 | 298 | |
297 | 299 | h4 { |
| 300 | margin-top: 28px; |
| 301 | margin-bottom: 16px; |
298 | 302 | border-bottom: 1px solid #dedede; |
299 | | font-size: inherit; |
| 303 | font-size: 14px; |
300 | 304 | padding-bottom: 4px; |
301 | 305 | } |
302 | 306 | |
303 | 307 | h5 { |
304 | | line-height: 1; |
305 | 308 | margin: 0; |
306 | 309 | text-transform: none; |
307 | 310 | } |
… |
… |
|
316 | 319 | } |
317 | 320 | } |
318 | 321 | |
| 322 | a { |
| 323 | font-size: 14px; |
| 324 | text-decoration: none; |
| 325 | } |
| 326 | |
319 | 327 | ol, ul { |
320 | 328 | margin: 0; |
321 | 329 | } |
322 | 330 | |
| 331 | .swag-link { |
| 332 | display: block; |
| 333 | text-align: center; |
| 334 | } |
| 335 | |
| 336 | > div { |
| 337 | padding-bottom: 32px; |
| 338 | } |
| 339 | |
| 340 | > div:nth-child(2), |
| 341 | > div:nth-child(3) { |
| 342 | order: -1; |
| 343 | } |
| 344 | |
| 345 | &.has-showcase > div:nth-child(3), |
| 346 | &.has-showcase > div:last-child { |
| 347 | width: 100%; |
| 348 | } |
| 349 | |
| 350 | @include breakpoint( 544px ) { |
| 351 | display: block; |
| 352 | |
| 353 | .swag-link { |
| 354 | text-align: left; |
| 355 | |
| 356 | img { |
| 357 | max-height: 217px; |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | > div { |
| 362 | padding: 16px; |
| 363 | padding-bottom: 0; |
| 364 | float: left; |
| 365 | min-height: 315px; |
| 366 | } |
| 367 | |
| 368 | &.has-showcase > div { |
| 369 | min-height: 0; |
| 370 | } |
| 371 | |
| 372 | > div:first-child, |
| 373 | > div:last-child { |
| 374 | width: 30%; |
| 375 | } |
| 376 | |
| 377 | > div:nth-child(2), |
| 378 | > div:nth-child(3) { |
| 379 | width: 70%; |
| 380 | } |
| 381 | |
| 382 | &.has-showcase > div:nth-child(3) { |
| 383 | width: 100%; |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | @include breakpoint( 975px ) { |
| 388 | |
| 389 | > div { |
| 390 | padding: 8px; |
| 391 | } |
| 392 | |
| 393 | > div:first-child, |
| 394 | > div:last-child { |
| 395 | width: 16.66666666%; |
| 396 | } |
| 397 | |
| 398 | > div:nth-child(2), |
| 399 | > div:nth-child(3), |
| 400 | &.has-showcase > div:nth-child(3), |
| 401 | &.has-showcase > div:first-child { |
| 402 | width: 33.3333333%; |
| 403 | } |
| 404 | } |
| 405 | |
323 | 406 | .steps { |
324 | 407 | list-style: none; |
325 | 408 | padding: 0; |
… |
… |
|
394 | 477 | } |
395 | 478 | } |
396 | 479 | |
| 480 | &.has-showcase .notable-users a { |
| 481 | display: block; |
| 482 | padding: 0 8px 0; |
| 483 | } |
| 484 | |
397 | 485 | .showcase-link { |
398 | 486 | display: block; |
399 | 487 | font-size: ms( -4 ); |
400 | 488 | margin: 1rem 0; |
| 489 | text-align: center; |
| 490 | |
| 491 | @include breakpoint( 544px ) { |
| 492 | text-align: left; |
| 493 | } |
401 | 494 | } |
402 | 495 | } |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/generic/_generic.scss wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/generic/_generic.scss
index 802e6e9ac..2560ecfac 100644
|
|
|
1 | 1 | @import "../../../wporg/css/generic/kube"; |
2 | 2 | @import "../../../wporg/css/generic/normalize"; |
| 3 | @import "legacy"; |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/generic/_legacy.scss wordpress.org/public_html/wp-content/themes/pub/wporg-main/css/generic/_legacy.scss
new file mode 100644
index 000000000..f135e6508
-
|
+
|
|
| 1 | body, |
| 2 | div, |
| 3 | dl, |
| 4 | dt, |
| 5 | dd, |
| 6 | ul, |
| 7 | ol, |
| 8 | li, |
| 9 | h1, |
| 10 | h2, |
| 11 | h3, |
| 12 | h4, |
| 13 | h5, |
| 14 | h6, |
| 15 | pre, |
| 16 | form, |
| 17 | fieldset, |
| 18 | input, |
| 19 | p, |
| 20 | blockquote, |
| 21 | table, |
| 22 | th, |
| 23 | td { |
| 24 | margin: 0; |
| 25 | padding: 0; |
| 26 | } |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php
index c345e6564..5d3a0e382 100644
|
|
if ( is_object( $rosetta ) && $rosetta->showcase instanceof \Rosetta_Showcase ) |
31 | 31 | $showcase = $rosetta->showcase->front(); |
32 | 32 | } |
33 | 33 | |
34 | | $swag_class = $showcase ? 'col-4' : 'col-2'; |
35 | | $user_class = $showcase ? 'col-12' : 'col-2'; |
| 34 | $showcase_class = $showcase ? 'has-showcase' : ''; |
36 | 35 | |
37 | 36 | get_header( 'wporg' ); |
38 | 37 | ?> |
… |
… |
get_header( 'wporg' ); |
161 | 160 | </section> |
162 | 161 | </div> |
163 | 162 | |
164 | | <div id="home-below" class="home-below row gutters"> |
165 | | <div class="col-4"> |
| 163 | <div id="home-below" class="home-below <?php echo esc_attr( $showcase_class ); ?>"> |
| 164 | <div> |
| 165 | <h4><a href="/about/swag/"><?php _e( 'WordPress Swag', 'wporg' ); ?></a></h4> |
| 166 | <a class="swag-link" href="/about/swag/"> |
| 167 | <?php if ( $showcase ) : ?> |
| 168 | <img src="https://s.w.org/images/home/swag_col-2.png" srcset="https://s.w.org/images/home/swag_col-2_x2.png 2x" alt="<?php esc_attr_e( 'WordPress Swag', 'wporg' ); ?>" /> |
| 169 | <?php else : ?> |
| 170 | <img src="https://s.w.org/images/home/swag_col-1.jpg?1" alt="<?php esc_attr_e( 'WordPress Swag', 'wporg' ); ?>" /> |
| 171 | <?php endif; ?> |
| 172 | </a> |
| 173 | </div> |
| 174 | |
| 175 | <div> |
166 | 176 | <h4><a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>"><?php _e( 'News From Our Blog', 'wporg' ); ?></a></h4> |
167 | 177 | |
168 | 178 | <?php |
… |
… |
get_header( 'wporg' ); |
183 | 193 | ?> |
184 | 194 | </div> |
185 | 195 | |
186 | | <div class="col-4"> |
| 196 | <div> |
187 | 197 | <h4><?php _e( 'It’s Easy As…', 'wporg' ); ?></h4> |
188 | 198 | |
189 | 199 | <ol class="steps"> |
… |
… |
get_header( 'wporg' ); |
220 | 230 | </ol> |
221 | 231 | </div> |
222 | 232 | |
223 | | <div class="<?php echo esc_attr( $swag_class ); ?> first"> |
224 | | <h4><a href="/about/swag/"><?php _e( 'WordPress Swag', 'wporg' ); ?></a></h4> |
225 | | <a href="/about/swag/"> |
226 | | <?php if ( $showcase ) : ?> |
227 | | <img width="288" height="288" src="https://s.w.org/images/home/swag_col-2.png" srcset="https://s.w.org/images/home/swag_col-2_x2.png 2x" alt="<?php esc_attr_e( 'WordPress Swag', 'wporg' ); ?>" /> |
228 | | <?php else : ?> |
229 | | <img width="132" height="177" src="https://s.w.org/images/home/swag_col-1.jpg?1" alt="<?php esc_attr_e( 'WordPress Swag', 'wporg' ); ?>" /> |
230 | | <?php endif; ?> |
231 | | </a> |
232 | | </div> |
233 | | |
234 | | <div class="<?php echo esc_attr( $user_class ); ?>"> |
| 233 | <div> |
235 | 234 | <h4><a href="https://wordpress.org/showcase/"><?php _e( 'WordPress Users', 'wporg' ); ?></a></h4> |
236 | 235 | |
237 | 236 | <?php if ( $showcase ) : ?> |
238 | | <div id="notable-users" class="notable-users col-12 row gutters"> |
| 237 | <div id="notable-users" class="notable-users col-12 row"> |
239 | 238 | <?php |
240 | 239 | foreach ( $showcase as $showcase_post ) : |
241 | 240 | $post_url = get_permalink( $showcase_post->ID ); |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg/css/components/_wporg-header.scss wordpress.org/public_html/wp-content/themes/pub/wporg/css/components/_wporg-header.scss
index 67d274fa3..aab991ed4 100644
|
|
|
391 | 391 | margin: 10px 0.25em; |
392 | 392 | padding: 10px 15px; |
393 | 393 | } |
| 394 | |
| 395 | @media screen and ( min-width: 821px ) { |
| 396 | display: none; |
| 397 | } |
394 | 398 | } |