Make WordPress Core

Changeset 41677


Ignore:
Timestamp:
10/02/2017 06:39:10 PM (7 years ago)
Author:
westonruter
Message:

Customize: Fix positioning of outer section (e.g. publish settings) on large screen sizes.

Also fix preview link CSS for desktop and mobile.

Props sayedwp, bduclos.
See #39896.
Fixes #42051.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r41672 r41677  
    4343}
    4444
    45 #customize-outer-theme-controls-wrapper {
     45#customize-sidebar-outer-content {
    4646    position: absolute;
    4747    top: 0;
     
    5757    transition: left .18s;
    5858    border-right: 1px solid #ddd;
    59 }
    60 
    61 .outer-section-open .wp-full-overlay.expanded {
    62     margin-left: 300px;
     59    height: 100%;
    6360}
    6461
     
    7572}
    7673
    77 .outer-section-open .wp-full-overlay.expanded #customize-outer-theme-controls-wrapper {
     74.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content {
    7875    visibility: visible;
    7976    left: 0;
     
    8683
    8784.outer-section-open .wp-full-overlay.expanded #customize-preview {
     85    left: 300px;
    8886    opacity: 0.4;
    89 }
    90 
    91 body.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main {
    92     left: 300px;
    9387}
    9488
     
    200194}
    201195
    202 .customize-copy-preview-link {
     196.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button {
     197    margin: 0;
    203198    position: absolute;
    204199    bottom: 9px;
    205200    right: 0;
     201}
     202
     203.preview-link-wrapper {
     204    position: relative;
    206205}
    207206
     
    246245    white-space: nowrap;
    247246    overflow: hidden;
    248     width: 217px;
     247    width: 90%;
    249248    bottom: 14px;
    250249    font-size: 14px;
     
    319318
    320319#customize-control-changeset_preview_link {
    321     margin-top: 20px;
     320    margin-top: 6px;
    322321}
    323322
     
    331330    width: 100%;
    332331    margin-left: -12px;
    333     padding: 12px 12px 18px;
     332    padding: 12px 12px 10px;
    334333    background: #ffffff;
    335334    border-bottom: 1px solid #ddd;
     
    27122711    }
    27132712
     2713    #customize-control-changeset_preview_link a {
     2714        bottom: 16px;
     2715    }
     2716
     2717    .preview-link-wrapper .customize-copy-preview-link.preview-control-element.button {
     2718        bottom: 10px;
     2719    }
     2720
    27142721    .wp-core-ui.wp-customizer .button {
    27152722        margin-top: 12px;
     
    28112818    body.adding-widget div#available-widgets,
    28122819    body.adding-menu-items div#available-menu-items,
    2813     body.outer-section-open div#customize-outer-theme-controls-wrapper {
     2820    body.outer-section-open div#customize-sidebar-outer-content {
    28142821        top: 46px;
    28152822        left: 0;
  • trunk/src/wp-admin/customize.php

    r41648 r41677  
    219219    <div id="customize-preview" class="wp-full-overlay-main"></div>
    220220    <div id="customize-sidebar-outer-content">
    221         <div id="customize-outer-theme-controls-wrapper">
    222             <div id="customize-outer-theme-controls">
    223                 <ul class="customize-outer-pane-parent"><?php // Outer panel and sections are not implemented, but its here as a placeholder to avoid any side-effect in api.Section. ?></ul>
    224             </div>
     221        <div id="customize-outer-theme-controls">
     222            <ul class="customize-outer-pane-parent"><?php // Outer panel and sections are not implemented, but its here as a placeholder to avoid any side-effect in api.Section. ?></ul>
    225223        </div>
    226224    </div>
Note: See TracChangeset for help on using the changeset viewer.