Make WordPress Core

Changeset 20759


Ignore:
Timestamp:
05/09/2012 09:47:15 PM (12 years ago)
Author:
koopersmith
Message:

Theme Customizer: Remove !important declarations from hide-if-customize and hide-if-no-customize classes. Use a default no-customize-support class on the body so we can use an element's original display property when visible. fixes #20565, see #19910.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r20479 r20759  
    9191    $admin_body_class .= ' mobile';
    9292
     93$admin_body_class .= ' no-customize-support';
     94
    9395?>
    9496</head>
     
    101103if ( wp_script_is( 'customize-loader', 'queue' ) ) : ?>
    102104    if ( window.postMessage )
    103         document.body.className += ' customize-support';
     105        document.body.className += document.body.className.replace('no-customize-support','customize-support');
    104106<?php endif; ?>
    105107</script>
  • trunk/wp-admin/css/wp-admin.dev.css

    r20754 r20759  
    44124412}
    44134413
    4414 .available-theme a.screenshot {
     4414.available-theme .screenshot {
    44154415    width: 300px;
    44164416    height: 225px;
     
    45574557@media only screen and (max-width: 1200px) {
    45584558    .available-theme,
    4559     .available-theme a.screenshot,
     4559    .available-theme .screenshot,
    45604560    #current-theme img {
    45614561        width: 240px;
    45624562    }
    45634563
    4564     .available-theme a.screenshot {
     4564    .available-theme .screenshot {
    45654565        height: 180px;
    45664566    }
     
    54295429------------------------------------------------------------------------------*/
    54305430
    5431 .hide-if-no-customize,
     5431.no-customize-support .hide-if-no-customize,
    54325432.customize-support .hide-if-customize {
    5433     display: none !important;
    5434 }
    5435 
    5436 .hide-if-customize,
    5437 .customize-support .hide-if-no-customize {
    5438     display: block !important;
     5433    display: none;
    54395434}
    54405435
Note: See TracChangeset for help on using the changeset viewer.