Revert placement of Help and Screen Options to under the admin bar on the right, see #18197, see #18785

git-svn-id: https://develop.svn.wordpress.org/trunk@19130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-11-03 17:08:12 +00:00
parent ccaca0274d
commit 882574b78c
15 changed files with 75 additions and 81 deletions
File diff suppressed because one or more lines are too long
+2 -3
View File
@@ -1618,9 +1618,8 @@ table.diff .diff-addedline ins {
#contextual-help-back {
background-color: #EFF8FF;
border-color: #D1E5EE;
-webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
-moz-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
-webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.contextual-help-tabs a:hover {
File diff suppressed because one or more lines are too long
+3 -4
View File
@@ -784,13 +784,12 @@ table.widefat span.spam a,
#screen-meta {
background-color: #fff;
}
#contextual-help-back {
background-color: #f1f1f1;
border-color: #ccc;
-webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
-moz-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 );
-webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.contextual-help-tabs a:hover {
File diff suppressed because one or more lines are too long
+4
View File
@@ -1311,6 +1311,10 @@ table .column-rating {
text-align: right;
}
.screen-meta-toggle {
right: auto;
left: 15px;
}
/*------------------------------------------------------------------------------
23.0 - Dead
File diff suppressed because one or more lines are too long
+29 -14
View File
@@ -39,7 +39,6 @@ TABLE OF CONTENTS:
20.0 - Settings
21.0 - Admin Footer
22.0 - Misc
23.0 - Dead
------------------------------------------------------------------------*/
@@ -1029,16 +1028,15 @@ th.action-links {
4.0 - Notifications
------------------------------------------------------------------------------*/
#update-nag, .update-nag {
#update-nag,
.update-nag {
line-height: 19px;
padding: 5px 0;
font-size: 12px;
text-align: center;
margin: 0 15px;
border-width: 1px;
border-style: solid;
border-top-width: 0;
border-top-style: none;
margin: 0 15px 0 0;
border-width: 0 1px 1px;
border-style: none solid solid;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
@@ -1367,12 +1365,26 @@ form.upgrade .hint {
padding: 8px 20px 12px;
max-height: 300px;
overflow: auto;
position: relative;
overflow: auto;
}
#screen-meta .screen-reader-text {
visibility: hidden;
}
.screen-meta-toggle {
font-size: 12px;
position: absolute;
right: 15px;
top: 20px;
display: none;
}
.screen-meta-toggle a {
text-decoration: none;
}
.toggle-arrow {
background-repeat: no-repeat;
background-position: top left;
@@ -1428,9 +1440,7 @@ form.upgrade .hint {
}
#contextual-help-wrap {
position: relative;
padding: 0 0 0 4px;
overflow: auto;
}
.contextual-help-tabs {
@@ -4624,7 +4634,8 @@ input.button-highlighted,
22.0 - Misc
------------------------------------------------------------------------------*/
#excerpt, .attachmentlinks {
#excerpt,
.attachmentlinks {
margin: 0;
height: 4em;
width: 98%;
@@ -4744,16 +4755,19 @@ table.form-table td .updated {
padding: 0;
}
#titlediv, #poststuff .postarea {
#titlediv,
#poststuff .postarea {
margin-bottom: 20px;
}
td.post-title strong, td.plugin-title strong {
td.post-title strong,
td.plugin-title strong {
display: block;
margin-bottom: .2em;
}
td.post-title p, td.plugin-title p {
td.post-title p,
td.plugin-title p {
margin: 6px 0;
}
@@ -4814,7 +4828,8 @@ td.post-title p, td.plugin-title p {
display: none;
}
.plugin-install #description, .plugin-install-network #description {
.plugin-install #description,
.plugin-install-network #description {
width: 60%;
}
+17 -13
View File
@@ -689,20 +689,9 @@ final class WP_Screen {
) );
}
// Add screen options tab
if ( $this->show_screen_options() ) {
$this->add_help_tab( array(
'id' => 'screen-options',
'title' => __('Screen Options'),
'callback' => array( $this, 'render_screen_options' ),
) );
$_options_tab = array_pop( $this->_help_tabs );
array_unshift( $this->_help_tabs, $_options_tab );
}
// Time to render!
?>
<div id="screen-meta" class='metabox-prefs'>
<div id="screen-meta" class="metabox-prefs">
<div id="contextual-help-back"></div>
<div id="contextual-help-wrap" class="hidden">
<div class="contextual-help-tabs">
@@ -748,6 +737,19 @@ final class WP_Screen {
<?php endforeach; ?>
</div>
</div>
<?php
// Add screen options
if ( $this->show_screen_options() )
$this->render_screen_options();
?>
</div>
<div class="screen-meta-toggle">
<?php
if ( $this->show_screen_options() )
echo '<a href="#screen-options-wrap">' . __('Screen Options') . '</a> |';
?>
<a href="#contextual-help-wrap"><?php _e('Help'); ?></a>
</div>
<?php
}
@@ -789,6 +791,7 @@ final class WP_Screen {
$hidden = get_hidden_columns( $this );
?>
<div id="screen-options-wrap" class="hidden">
<form id="adv-settings" action="" method="post">
<?php
if ( $this->get_option('overview') )
@@ -840,6 +843,7 @@ final class WP_Screen {
?>
<div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div>
</form>
</div>
<?php
}
@@ -939,4 +943,4 @@ final class WP_Screen {
</div>
<?php
}
}
}
+8 -13
View File
@@ -95,29 +95,24 @@ screenMeta = {
page: null, // #wpcontent
padding: null, // the closed page padding-top property
top: null, // the closed element top property
map: {
'wp-admin-bar-screen-options': 'screen-options-wrap',
'wp-admin-bar-help': 'contextual-help-wrap'
},
init: function() {
screenMeta.element = $('#screen-meta');
screenMeta.toggles = $('.screen-meta-toggle');
screenMeta.page = $('#wpcontent');
this.element = $('#screen-meta');
this.toggles = $('.screen-meta-toggle a');
this.page = $('#wpcontent');
screenMeta.toggles.click( screenMeta.toggleEvent );
this.toggles.click( this.toggleEvent );
$('.screen-meta-toggle').css('top', ($('h2').offset().top - 12) + 'px' ).fadeIn();
},
toggleEvent: function( e ) {
var panel;
var panel = $( this.href.replace(/.+#/, '#') );
e.preventDefault();
// Check to see if we found a panel.
if ( ! screenMeta.map[ this.id ] )
if ( !panel.length )
return;
panel = $('#' + screenMeta.map[ this.id ]);
if ( panel.is(':visible') )
screenMeta.close( panel, $(this) );
else
File diff suppressed because one or more lines are too long