Ticket #32296: 32296-e.diff
File 32296-e.diff, 4.8 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
1189 1189 .customize-section-description-container + #customize-control-custom_css:last-child { 1190 1190 margin-left: -12px; 1191 1191 width: 299px; 1192 width: -webkit-calc( 100% + 24px ); 1193 width: calc( 100% + 24px ); 1192 1194 margin-bottom: -12px; 1193 1195 } 1194 1196 1195 1197 @media screen and ( max-width: 640px ) { 1196 1198 .customize-section-description-container + #customize-control-custom_css:last-child { 1197 margin-left: 0;1198 1199 margin-right: 0; 1199 width: 100%;1200 1200 } 1201 1201 .customize-section-description-container + #customize-control-custom_css:last-child textarea { 1202 1202 height: -webkit-calc( 100vh - 140px ); 1203 1203 height: calc( 100vh - 140px ); 1204 width: 100%;1205 border: solid 1px #ddd;1206 1204 } 1207 1205 } 1208 1206 -
src/wp-admin/css/themes.css
1332 1332 -moz-box-sizing: border-box; 1333 1333 box-sizing: border-box; 1334 1334 position: fixed; 1335 width: 300px; 1335 min-width: 300px; 1336 max-width: 600px; 1337 width: 18%; 1336 1338 height: 100%; 1337 1339 top: 0; 1338 1340 bottom: 0; … … 1361 1363 margin-left: -300px; 1362 1364 } 1363 1365 1366 @media screen and (min-width: 1667px) { 1367 .wp-full-overlay.expanded { 1368 margin-left: 18%; 1369 } 1370 1371 .wp-full-overlay.collapsed .wp-full-overlay-sidebar { 1372 margin-left: -18%; 1373 } 1374 } 1375 1376 @media screen and (min-width: 3333px) { 1377 .wp-full-overlay.expanded { 1378 margin-left: 600px; 1379 } 1380 1381 .wp-full-overlay.collapsed .wp-full-overlay-sidebar { 1382 margin-left: -600px; 1383 } 1384 } 1385 1364 1386 .wp-full-overlay-sidebar:after { 1365 1387 content: ""; 1366 1388 display: block; … … 1520 1542 box-shadow: none !important; 1521 1543 -webkit-border-radius: 0 !important; 1522 1544 border-radius: 0 !important; 1523 z-index: -1; /* Below device buttons */1524 1545 } 1525 1546 1526 1547 .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, … … 1616 1637 position: fixed; 1617 1638 bottom: 0; 1618 1639 left: 0; 1619 width: 299px; 1640 min-width: 299px; 1641 max-width: 599px; 1642 width: 18%; 1620 1643 height: 45px; 1621 1644 border-top: 1px solid #ddd; 1622 1645 background: #eee; 1623 1646 } 1624 1647 1625 .wp-full-overlay-footer .devices {1648 .wp-full-overlay-footer .devices-wrapper { 1626 1649 float: right; 1650 } 1651 1652 .wp-full-overlay-footer .devices { 1653 position: relative; 1627 1654 background: #eee; 1628 1655 -webkit-box-shadow: -20px 0 10px -5px #eee; 1629 1656 box-shadow: -20px 0 10px -5px #eee; -
src/wp-admin/customize.php
171 171 </div> 172 172 173 173 <div id="customize-footer-actions" class="wp-full-overlay-footer"> 174 <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?>175 <?php if ( ! empty( $previewable_devices ) ) : ?>176 <div class="devices">177 <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?>178 <?php179 if ( empty( $settings['label'] ) ) {180 continue;181 }182 $active = ! empty( $settings['default'] );183 $class = 'preview-' . $device;184 if ( $active ) {185 $class .= ' active';186 }187 ?>188 <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>">189 <span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>190 </button>191 <?php endforeach; ?>192 </div>193 <?php endif; ?>194 174 <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>"> 195 175 <span class="collapse-sidebar-arrow"></span> 196 176 <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span> 197 177 </button> 178 <?php $previewable_devices = $wp_customize->get_previewable_devices(); ?> 179 <?php if ( ! empty( $previewable_devices ) ) : ?> 180 <div class="devices-wrapper"> 181 <div class="devices"> 182 <?php foreach ( (array) $previewable_devices as $device => $settings ) : ?> 183 <?php 184 if ( empty( $settings['label'] ) ) { 185 continue; 186 } 187 $active = ! empty( $settings['default'] ); 188 $class = 'preview-' . $device; 189 if ( $active ) { 190 $class .= ' active'; 191 } 192 ?> 193 <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ) ?>" data-device="<?php echo esc_attr( $device ); ?>"> 194 <span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span> 195 </button> 196 <?php endforeach; ?> 197 </div> 198 </div> 199 <?php endif; ?> 198 200 </div> 199 201 </form> 200 202 <div id="customize-preview" class="wp-full-overlay-main"></div>