Some dashboard and IE layout fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@9422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-10-30 23:43:08 +00:00
parent 03a2e31631
commit e86dfe684f
3 changed files with 36 additions and 75 deletions

View File

@ -1,13 +1,10 @@
/* Fixes for IE bugs */ /* Fixes for IE bugs */
* html #wpbody-content { * html #wpbody-content {
margin-left: 160px; float: right;
} }
* html #wpbody { * html #wpbody {
clear: right;
float: right;
margin-left: -185px;
width: 100%; width: 100%;
} }
@ -27,19 +24,12 @@
width: 100%; width: 100%;
} }
.metabox-holder .postbox h3 { input.button,
padding-left: 23px; input.button-secondary,
} input.button-highlighted {
input.button, input.button-secondary, input.button-highlighted {
padding: 0; padding: 0;
} }
#side-info-column {
position: absolute;
right: 15px;
}
#wphead-info { #wphead-info {
float: right; float: right;
} }
@ -54,68 +44,44 @@ input.button, input.button-secondary, input.button-highlighted {
} }
*/ */
#adminmenu { * html #adminmenu {
z-index: 1; z-index: 1;
width: 125px; width: 125px;
float: none; margin: 12px;
background-color: f1f1f1; padding: 0;
} }
#adminmenu li.wp-has-submenu { * html #wpcontent #adminmenu.folded {
width: 28px;
}
ul#adminmenu li.wp-has-submenu {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
#adminmenu a.wp-has-submenu {
display: block;
}
#adminmenu,
#adminmenu .wp-menu-toggle,
ul.wp-submenu,
ul.wp-submenu li,
ul.wp-submenu a,
#adminmenu a.wp-has-submenu,
#adminmenu .wp-menu-image {
zoom: 100%;
}
#adminmenu.folded .wp-submenu {
margin: -1px 0 0 4px;
}
#adminmenu.folded li.wp-has-submenu {
height: 24px;
}
#wpcontent #adminmenu ul.wp-submenu a {
padding: 2px 4px 2px 10px;
margin: 0;
line-height: 18px;
}
* html #wpcontent #adminmenu {
margin: 8px 9px;
}
#wpcontent #adminmenu ul.wp-submenu li { #wpcontent #adminmenu ul.wp-submenu li {
padding: 0; padding: 0;
} }
#adminmenu,
#adminmenu .wp-menu-toggle,
ul.wp-submenu li,
ul.wp-submenu {
zoom: 100%;
}
#wpcontent #adminmenu .wp-submenu li.wp-submenu-head { #wpcontent #adminmenu.folded li.wp-menu-separator {
width: 28px;
}
#wpcontent #adminmenu ul.wp-submenu li.wp-submenu-head {
padding: 3px 4px 4px 10px; padding: 3px 4px 4px 10px;
zoom: 100%;
} }
/* #adminmenu.folded ul.wp-submenu {
ul#adminmenu li.wp-menu-separator { margin: -1px 0 0 13px;
background-color: #fff;
height: 3px;
line-height: 3px;
font-size: 3px;
} }
*/
#template, #template,
#template div, #template div,
@ -124,12 +90,6 @@ ul#adminmenu li.wp-menu-separator {
zoom: 100%; zoom: 100%;
} }
* html #poststuff .postarea,
* html #poststuff #titlediv {
}
.submitbox { .submitbox {
margin-top: 10px; margin-top: 10px;
} }
@ -142,7 +102,8 @@ ul#adminmenu li.wp-menu-separator {
#wpwrap, #wpwrap,
#wpcontent, #wpcontent,
#post, #wrap, #post,
#wrap,
#postdivrich, #postdivrich,
#postdiv, #postdiv,
#poststuff, #poststuff,
@ -165,7 +126,9 @@ li.widget-list-control-item h4,
zoom: 100%; zoom: 100%;
} }
#favorite-inside, #favorite-inside a, .favorite-action { #favorite-inside,
#favorite-inside a,
.favorite-action {
z-index: 11; z-index: 11;
zoom: 100%; zoom: 100%;
} }

View File

@ -50,8 +50,6 @@ adminMenu = {
fold : function(off) { fold : function(off) {
if (off) { if (off) {
if ( $.browser.msie && $.browser.version.charAt(0) == 6 )
$('#wpbody-content').css('marginLeft', '180px');
$('#adminmenu').removeClass('folded'); $('#adminmenu').removeClass('folded');
$('#adminmenu li.wp-submenu-head').hide(); $('#adminmenu li.wp-submenu-head').hide();
$('#adminmenu a.wp-has-submenu, #adminmenu .wp-menu-open .wp-submenu, #adminmenu div.wp-menu-toggle').show(); $('#adminmenu a.wp-has-submenu, #adminmenu .wp-menu-open .wp-submenu, #adminmenu div.wp-menu-toggle').show();
@ -61,8 +59,6 @@ adminMenu = {
$('#adminmenu').addClass('folded'); $('#adminmenu').addClass('folded');
$('#adminmenu a.wp-has-submenu, #adminmenu .wp-submenu, #adminmenu div.wp-menu-toggle').hide(); $('#adminmenu a.wp-has-submenu, #adminmenu .wp-submenu, #adminmenu div.wp-menu-toggle').hide();
$('#adminmenu li.wp-submenu-head').show(); $('#adminmenu li.wp-submenu-head').show();
if ( $.browser.msie && $.browser.version.charAt(0) == 6 )
$('#wpbody-content').css('marginLeft', '60px');
$('#adminmenu li.wp-has-submenu').css({'width':'28px'}).hoverIntent({ $('#adminmenu li.wp-has-submenu').css({'width':'28px'}).hoverIntent({
over: function(e){ over: function(e){
var m = $(this).find('.wp-submenu'), t = e.clientY, H = $(window).height(), h = m.height(), o; var m = $(this).find('.wp-submenu'), t = e.clientY, H = $(window).height(), h = m.height(), o;

View File

@ -31,11 +31,13 @@
expandSidebar : function(doIt) { expandSidebar : function(doIt) {
if ( doIt || $('#side-sortables > .postbox:visible').length ) { if ( doIt || $('#side-sortables > .postbox:visible').length ) {
if ( ! $('#post-body').hasClass('has-sidebar') ) {
$('#post-body').addClass('has-sidebar'); $('#post-body').addClass('has-sidebar');
$('#side-sortables').height( $('#post-body').height() ); $('#side-sortables').css({'minHeight':$('#post-body').height()+'px'});
}
} else { } else {
$('#post-body').removeClass('has-sidebar'); $('#post-body').removeClass('has-sidebar');
$('#side-sortables').height('0') $('#side-sortables').css({'minHeight':'0'});
} }
}, },