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..04d798fa5 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 | font-size: 13px; |
| 283 | 287 | margin: 0 auto ms( 0 ); |
| 284 | 288 | max-width: 960px; |
| 285 | | padding: 0 ms( 1 ); |
| | 289 | padding: ms( 10 ) 0; |
| 286 | 290 | |
| 287 | 291 | @include breakpoint( sm ) { |
| 288 | 292 | display: block; |
| 289 | | |
| 290 | | .col-2 { |
| 291 | | display: inline-block; |
| 292 | | vertical-align: top; |
| 293 | | width: calc( 50% - #{$grid-gutter} ); |
| 294 | | } |
| | 293 | padding-left: ms( 1 ); |
| | 294 | padding-right: ms( 1 ); |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | h4 { |
| | 298 | margin-top: 28px; |
| | 299 | margin-bottom: 16px; |
| 298 | 300 | border-bottom: 1px solid #dedede; |
| 299 | | font-size: inherit; |
| | 301 | font-size: 14px; |
| 300 | 302 | padding-bottom: 4px; |
| 301 | 303 | } |
| 302 | 304 | |
| 303 | 305 | h5 { |
| 304 | | line-height: 1; |
| 305 | 306 | margin: 0; |
| 306 | 307 | text-transform: none; |
| 307 | 308 | } |
| … |
… |
|
| 316 | 317 | } |
| 317 | 318 | } |
| 318 | 319 | |
| | 320 | a { |
| | 321 | font-size: 14px; |
| | 322 | text-decoration: none; |
| | 323 | } |
| | 324 | |
| 319 | 325 | ol, ul { |
| 320 | 326 | margin: 0; |
| 321 | 327 | } |
| 322 | 328 | |
| | 329 | .swag-link { |
| | 330 | display: block; |
| | 331 | text-align: center; |
| | 332 | } |
| | 333 | |
| | 334 | > div { |
| | 335 | padding-bottom: 32px; |
| | 336 | } |
| | 337 | |
| | 338 | &.has-showcase > div:nth-child(3), |
| | 339 | &.has-showcase > div:last-child { |
| | 340 | width: 100%; |
| | 341 | } |
| | 342 | |
| | 343 | @include breakpoint( 544px ) { |
| | 344 | |
| | 345 | .swag-link { |
| | 346 | text-align: left; |
| | 347 | |
| | 348 | img { |
| | 349 | max-height: 217px; |
| | 350 | } |
| | 351 | } |
| | 352 | |
| | 353 | > div { |
| | 354 | padding: 16px; |
| | 355 | padding-bottom: 0; |
| | 356 | float: left; |
| | 357 | min-height: 315px; |
| | 358 | } |
| | 359 | |
| | 360 | &.has-showcase > div { |
| | 361 | min-height: 0; |
| | 362 | } |
| | 363 | |
| | 364 | > div:first-child, |
| | 365 | > div:last-child { |
| | 366 | width: 30%; |
| | 367 | } |
| | 368 | |
| | 369 | > div:nth-child(2), |
| | 370 | > div:nth-child(3) { |
| | 371 | width: 70%; |
| | 372 | } |
| | 373 | |
| | 374 | &.has-showcase > div:nth-child(3) { |
| | 375 | width: 100%; |
| | 376 | } |
| | 377 | } |
| | 378 | |
| | 379 | @include breakpoint( 975px ) { |
| | 380 | |
| | 381 | > div { |
| | 382 | padding: 8px; |
| | 383 | } |
| | 384 | |
| | 385 | > div:first-child, |
| | 386 | > div:last-child { |
| | 387 | width: 16.66666666%; |
| | 388 | } |
| | 389 | |
| | 390 | > div:nth-child(2), |
| | 391 | > div:nth-child(3), |
| | 392 | &.has-showcase > div:nth-child(3), |
| | 393 | &.has-showcase > div:first-child { |
| | 394 | width: 33.3333333%; |
| | 395 | } |
| | 396 | } |
| | 397 | |
| 323 | 398 | .steps { |
| 324 | 399 | list-style: none; |
| 325 | 400 | padding: 0; |
| … |
… |
|
| 373 | 448 | margin-bottom: 8px; |
| 374 | 449 | width: 130px; |
| 375 | 450 | |
| | 451 | @include breakpoint( 544px ) { |
| | 452 | margin-left: 0; |
| | 453 | margin-right: 0; |
| | 454 | } |
| | 455 | |
| 376 | 456 | &:active { |
| 377 | 457 | border: 1px solid #dedede; |
| 378 | 458 | border-right-color: #f5f5f5; |
| 379 | 459 | border-bottom-color: #f5f5f5; |
| 380 | 460 | } |
| | 461 | |
| | 462 | display: block; |
| | 463 | width: auto; |
| | 464 | |
| | 465 | img { |
| | 466 | margin: 0 auto; |
| | 467 | display: block; |
| | 468 | } |
| 381 | 469 | } |
| 382 | 470 | |
| | 471 | |
| 383 | 472 | &.col-12 { |
| 384 | 473 | margin-bottom: 0; |
| 385 | 474 | } |
| … |
… |
|
| 394 | 483 | } |
| 395 | 484 | } |
| 396 | 485 | |
| | 486 | &.has-showcase .notable-users a { |
| | 487 | display: block; |
| | 488 | padding: 0 8px 0; |
| | 489 | } |
| | 490 | |
| 397 | 491 | .showcase-link { |
| 398 | 492 | display: block; |
| 399 | 493 | font-size: ms( -4 ); |
| 400 | 494 | margin: 1rem 0; |
| | 495 | text-align: center; |
| | 496 | |
| | 497 | @include breakpoint( 544px ) { |
| | 498 | text-align: left; |
| | 499 | } |
| 401 | 500 | } |
| 402 | 501 | } |
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/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-main/functions.php wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
index 437987d02..adf962b4e 100644
|
|
|
function scripts() { |
| 107 | 107 | if ( is_page() && get_queried_object()->post_parent ) { |
| 108 | 108 | wp_enqueue_script( 'wporg-navigation', get_theme_file_uri( "/js/navigation$suffix.js" ), [], '20151215', true ); |
| 109 | 109 | } |
| | 110 | |
| | 111 | add_theme_support( 'wp4-styles' ); |
| 110 | 112 | } |
| 111 | 113 | add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts' ); |
| 112 | 114 | |