Make WordPress Core

Ticket #48780: 48780.adjusted-float-drop.diff

File 48780.adjusted-float-drop.diff, 1.7 KB (added by sabernhardt, 6 years ago)

option enforces one-column layout on attachment editor screens up to 1200px

  • src/wp-admin/css/edit.css

     
    14241424        }
    14251425}
    14261426
     1427/* one column on the attachment editor screen */
     1428@media only screen and (max-width: 1200px) {
     1429        .post-type-attachment .poststuff {
     1430                min-width: 0;
     1431        }
     1432
     1433        .post-type-attachment #wpbody-content .poststuff #post-body {
     1434                margin: 0;
     1435        }
     1436
     1437        .post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1 {
     1438                margin-right: 0;
     1439                width: 100%;
     1440        }
     1441
     1442        .post-type-attachment .poststuff #postbox-container-1 .empty-container,
     1443        .post-type-attachment .poststuff #postbox-container-1 #side-sortables:empty {
     1444                border: 0 none;
     1445                height: 0;
     1446                min-height: 0;
     1447        }
     1448
     1449        .post-type-attachment .poststuff #post-body.columns-2 #side-sortables {
     1450                min-height: 0;
     1451                width: auto;
     1452        }
     1453
     1454        /* hide the radio buttons for column prefs */
     1455        .post-type-attachment .screen-layout,
     1456        .post-type-attachment .columns-prefs {
     1457                display: none;
     1458        }
     1459}
     1460
    14271461/* one column on the post write/edit screen */
    14281462@media only screen and (max-width: 850px) {
    14291463        .poststuff {
  • src/wp-admin/css/media.css

     
    852852.wp_attachment_holder .imgedit-wrap .imgedit-panel-content {
    853853        float: left;
    854854        padding: 3px 16px 0 0;
     855        min-width: 400px;
     856        max-width: calc( 100% - 266px );
    855857}
    856858
    857859.wp_attachment_holder .imgedit-wrap .imgedit-settings {
     
    12071209        .wp_attachment_holder .imgedit-wrap .imgedit-settings {
    12081210                float: none;
    12091211                width: auto;
     1212                max-width: none;
    12101213        }
    12111214}
    12121215