Ticket #42545: 42545.2.diff
File 42545.2.diff, 5.3 KB (added by , 7 years ago) |
---|
-
src/wp-admin/about.php
253 253 function setup() { 254 254 $sections.each( function( i, section ) { 255 255 var $section = $( section ); 256 // Set width on header to prevent column jump257 var $header = $section.find('.section-header');258 $header.css( {259 width: $header.innerWidth() + 'px'260 } );261 262 256 // If the title is long, switch the layout 263 257 var $title = $section.find( 'h2' ); 264 258 if ( $title.innerWidth() > 300 ) { -
src/wp-admin/css/about.css
260 260 261 261 .about-wrap .two-col-text { 262 262 -webkit-column-count: 2; 263 -moz-column-count: 2; 263 264 column-count: 2; 264 265 -webkit-column-gap: 40px; 266 -moz-column-gap: 40px; 265 267 column-gap: 40px; 266 268 } 267 269 … … 368 370 -ms-grid-column: 1; 369 371 grid-column: 1; 370 372 position: relative; 373 min-width: 230px; 374 max-width: 300px; 371 375 } 372 376 373 377 .about-wrap .floating-header-section h2 { 374 378 margin: 0; 375 379 text-align: left; 380 position: absolute; 376 381 } 377 382 378 383 .about-wrap .floating-header-section .section-content { 379 display: -ms-grid;380 display: grid;381 grid-gap: 60px;382 -ms-grid-columns: 5fr 5fr;383 grid-template-columns: 5fr 5fr;384 384 -ms-grid-column: 2; 385 385 grid-column: 2; 386 display: -webkit-box; 387 display: flex; 388 -webkit-box-pack: justify; 389 justify-content: space-between; 390 -webkit-box-align: start; 391 align-items: flex-start; 392 -webkit-box-orient: horizontal; 393 -webkit-box-direction: normal; 394 flex-flow: row wrap; 395 -webkit-box-flex: 2; 396 flex-grow: 2; 397 flex-shrink: 0; 386 398 } 387 399 388 .about-wrap .floating-header-section .section-item:nth-of-type(odd) { 389 -ms-grid-column: 1; 390 grid-column: 1; 400 .about-wrap .floating-header-section .section-item { 401 -webkit-box-flex: 1; 402 flex-grow: 1; 403 max-width: calc(50% - 30px); 391 404 } 392 405 393 .about-wrap .floating-header-section .section-item:nth- of-type(even) {394 -ms-grid-column: 2; 395 grid-column: 2;406 .about-wrap .floating-header-section .section-item:nth-child(1), 407 .about-wrap .floating-header-section .section-item:nth-child(2) { 408 margin-bottom: 60px; 396 409 } 397 410 411 .about-wrap .floating-header-section .section-item:nth-child(1):nth-last-child(2), 412 .about-wrap .floating-header-section .section-item:nth-child(2):nth-last-child(1) { 413 margin-bottom: 0; 414 } 415 398 416 .about-wrap .floating-header-section.has-long-title { 399 -ms-grid-columns: 1fr; 400 grid-template-columns: 1fr; 401 grid-gap: 60px 0; 417 display: block; 402 418 } 403 419 420 .about-wrap .floating-header-section.has-long-title .section-header { 421 max-width: 100%; 422 } 423 424 .about-wrap .floating-header-section.has-long-title h2 { 425 position: static; 426 margin-bottom: 60px; 427 } 428 404 429 .about-wrap .floating-header-section.has-long-title .section-content { 405 - ms-grid-columns: minmax(max-content, 300px) minmax(max-content, 300px);406 grid-template-columns: minmax(max-content, 300px) minmax(max-content, 300px);430 -webkit-box-pack: start; 431 justify-content: flex-start; 407 432 } 408 433 409 434 .about-wrap .floating-header-section.has-long-title .section-item { 410 435 max-width: 300px; 436 margin-bottom: 0; 411 437 } 412 438 413 .about-wrap .floating-header-section.has-long-title .section-header, 414 .about-wrap .floating-header-section.has-long-title .section-content { 415 -ms-grid-column: 1; 416 grid-column: 1; 439 .about-wrap .floating-header-section.has-long-title .section-item + .section-item { 440 margin-left: 60px; 417 441 } 418 442 419 443 /*------------------------------------------------------------------------------ … … 507 531 4.0 - Media Queries 508 532 ------------------------------------------------------------------------------*/ 509 533 510 @media screen and ( max-width: 782px ) { 534 @media screen and (max-width: 1250px) { 535 .about-wrap .floating-header-section.has-long-title .section-item:nth-child(1), 536 .about-wrap .floating-header-section.has-long-title .section-item:nth-child(2) { 537 margin: 0 0 60px; 538 } 539 540 .about-wrap .floating-header-section.has-long-title .section-item:nth-child(3), 541 .about-wrap .floating-header-section.has-long-title .section-item:nth-child(4) { 542 margin: 0; 543 } 544 545 .about-wrap .floating-header-section.has-long-title .section-item:nth-child(2), 546 .about-wrap .floating-header-section.has-long-title .section-item:nth-child(4) { 547 margin-left: 60px; 548 } 549 } 550 551 @media screen and (max-width: 782px) { 511 552 .about-wrap .two-col-text { 512 553 -webkit-column-count: 1; 554 -moz-column-count: 1; 513 555 column-count: 1; 514 556 } 515 557 … … 524 566 } 525 567 526 568 .about-wrap .floating-header-section { 527 -ms-grid-columns: 1fr; 528 grid-template-columns: 1fr; 529 grid-gap: 60px 0; 569 display: block; 530 570 } 531 571 532 572 .about-wrap .floating-header-section .section-header, 533 573 .about-wrap .floating-header-section .section-content { 534 -ms-grid-column: 1; 535 grid-column: 1; 574 max-width: 100%; 536 575 } 576 577 .about-wrap .floating-header-section h2 { 578 position: static; 579 margin-bottom: 60px; 580 } 537 581 } 538 582 539 583 @media only screen and (max-width: 500px) { … … 595 639 hyphens: auto; 596 640 } 597 641 598 .about-wrap .floating-header-section .section-content {599 -ms-grid-columns: 1fr;600 grid-template-columns: 1fr;601 grid-gap: 60px 0;602 }603 604 642 .about-wrap .floating-header-section .section-content .section-item { 605 -ms-grid-column: 1;606 grid-column: 1;607 643 max-width: 100%; 644 margin: 0 0 60px; 608 645 } 609 646 }