Only show #screen-meta (which encloses the panels) when a panel is showing. Otherwise there's a one-pixel gray line that's really aggravating my OCD. see #18197.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
230d3d62ce
commit
4454d5e50c
File diff suppressed because one or more lines are too long
|
@ -1365,6 +1365,7 @@ form.upgrade .hint {
|
||||||
|
|
||||||
/* screen options and help tabs revert */
|
/* screen options and help tabs revert */
|
||||||
#screen-meta {
|
#screen-meta {
|
||||||
|
display: none;
|
||||||
margin: 0 15px 0 5px;
|
margin: 0 15px 0 5px;
|
||||||
border-width: 0 1px 1px;
|
border-width: 0 1px 1px;
|
||||||
border-style: none solid solid;
|
border-style: none solid solid;
|
||||||
|
|
|
@ -121,6 +121,7 @@ screenMeta = {
|
||||||
|
|
||||||
$('.screen-meta-toggle').not( link.parent() ).css('visibility', 'hidden');
|
$('.screen-meta-toggle').not( link.parent() ).css('visibility', 'hidden');
|
||||||
|
|
||||||
|
panel.parent().show();
|
||||||
panel.slideDown( 'fast', function() {
|
panel.slideDown( 'fast', function() {
|
||||||
link.addClass('screen-meta-active');
|
link.addClass('screen-meta-active');
|
||||||
});
|
});
|
||||||
|
@ -140,7 +141,8 @@ screenMeta = {
|
||||||
close: function( panel, link ) {
|
close: function( panel, link ) {
|
||||||
panel.slideUp( 'fast', function() {
|
panel.slideUp( 'fast', function() {
|
||||||
link.removeClass('screen-meta-active');
|
link.removeClass('screen-meta-active');
|
||||||
$('.screen-meta-toggle').css('visibility', '');
|
$('.screen-meta-toggle').css('visibility', '');
|
||||||
|
panel.parent().hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -61,7 +61,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
|
|
||||||
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
|
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
|
||||||
|
|
||||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111103', 1 );
|
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111103b', 1 );
|
||||||
$scripts->add_script_data( 'common', 'commonL10n', array(
|
$scripts->add_script_data( 'common', 'commonL10n', array(
|
||||||
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.")
|
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.")
|
||||||
) );
|
) );
|
||||||
|
@ -431,7 +431,7 @@ function wp_default_styles( &$styles ) {
|
||||||
// Any rtl stylesheets that don't have a .dev version for ltr
|
// Any rtl stylesheets that don't have a .dev version for ltr
|
||||||
$no_suffix = array( 'farbtastic' );
|
$no_suffix = array( 'farbtastic' );
|
||||||
|
|
||||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111103' );
|
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111103b' );
|
||||||
|
|
||||||
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20111015' );
|
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20111015' );
|
||||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||||
|
|
Loading…
Reference in New Issue