Fix base css blocks for easier horizontal scrolling, fixes #8092

git-svn-id: https://develop.svn.wordpress.org/trunk@9827 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-21 06:26:23 +00:00
parent 035c2e33c4
commit e157d40624
7 changed files with 60 additions and 87 deletions

View File

@ -304,11 +304,6 @@ td.help {
background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top; background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;
} }
#wpcontent select {
background: url(../images/white-grad.png) repeat-x scroll left top;
color: #555;
}
.button-secondary, .button-secondary,
.submit .button-secondary { .submit .button-secondary {
border-color: #CFE1EF; border-color: #CFE1EF;
@ -1046,7 +1041,7 @@ abbr.required,
background: transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px; background: transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;
} }
#adminmenu.folded li.wp-menu-separator { .folded #adminmenu li.wp-menu-separator {
background: transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px; background: transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;
} }
@ -1121,7 +1116,7 @@ abbr.required,
background-color: #fff; background-color: #fff;
} }
#adminmenu.folded li.menu-top, .folded #adminmenu li.menu-top,
#adminmenu .wp-submenu .wp-submenu-head { #adminmenu .wp-submenu .wp-submenu-head {
background-color: #F1F1F1; background-color: #F1F1F1;
} }

View File

@ -1041,7 +1041,7 @@ abbr.required,
background: transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px; background: transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;
} }
#adminmenu.folded li.wp-menu-separator { .folded #adminmenu li.wp-menu-separator {
background: transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px; background: transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;
} }
@ -1116,7 +1116,7 @@ abbr.required,
background-color: #fff; background-color: #fff;
} }
#adminmenu.folded li.menu-top, .folded #adminmenu li.menu-top,
#adminmenu .wp-submenu .wp-submenu-head { #adminmenu .wp-submenu .wp-submenu-head {
background-color: #F1F1F1; background-color: #F1F1F1;
} }

View File

@ -69,17 +69,31 @@ table {
padding-bottom: 50px; padding-bottom: 50px;
} }
#wpbody {
clear: both;
margin-left: 175px;
}
div.folded #wpbody {
margin-left: 60px;
}
#wpbody-content { #wpbody-content {
overflow: hidden; float: left;
width: 100%;
} }
#adminmenu { #adminmenu {
float: left; float: left;
clear: left; clear: left;
margin: 15px 5px 15px 18px; margin: 15px 5px 15px -160px;
position: relative; position: relative;
} }
div.folded #adminmenu {
margin-left: -45px;
}
#footer { #footer {
clear: both; clear: both;
position: relative; position: relative;
@ -347,11 +361,8 @@ h6 {
vertical-align: middle; vertical-align: middle;
} }
.wrap, .wrap {
.updated, margin: 0 15px 0 5px;
.error {
margin: 0 15px;
padding: 0;
} }
.updated, .updated,
@ -359,7 +370,7 @@ h6 {
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
padding: 0 0.6em; padding: 0 0.6em;
margin: 3px 15px 5px; margin: 5px 15px 2px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
-khtml-border-radius: 3px; -khtml-border-radius: 3px;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
@ -379,7 +390,7 @@ h6 {
.wrap h2 { .wrap h2 {
font: italic normal normal 24px/29px Georgia, "Times New Roman", Times, serif; font: italic normal normal 24px/29px Georgia, "Times New Roman", Times, serif;
margin: 0; margin: 0;
padding: 14px 15px 1px 0; padding: 12px 15px 1px 0;
} }
.wrap h2.long-header { .wrap h2.long-header {

View File

@ -1,29 +1,4 @@
/* Fixes for IE bugs */ /* Fixes for IE bugs */
* html #wpbody-content {
float: right;
}
* html #wpbody {
width: 100%;
}
* html body {
background-color: #464646;
}
* html #wpwrap {
background-color: #fff;
}
#footer {
overflow: hidden;
}
* html #footer {
width: 100%;
}
input.button, input.button,
input.button-secondary, input.button-secondary,
input.button-highlighted { input.button-highlighted {
@ -75,18 +50,13 @@ input.button-highlighted {
_width: expression(document.documentElement.clientWidth > 982 ? "980px" : "99.9%"); _width: expression(document.documentElement.clientWidth > 982 ? "980px" : "99.9%");
} }
*/ */
ul#adminmenu {
z-index: 99;
}
* html #adminmenu { * html #adminmenu {
width: 145px; margin-left: -80px;
margin: 12px;
padding: 0;
} }
#wpcontent #adminmenu.folded li.menu-top { * html div.folded #adminmenu {
display: block; margin-left: -22px;
} }
* html #wpcontent #adminmenu li.menu-top { * html #wpcontent #adminmenu li.menu-top {
@ -95,6 +65,14 @@ ul#adminmenu {
margin: 0; margin: 0;
} }
#wpcontent.folded #adminmenu li.menu-top {
display: block;
}
ul#adminmenu {
z-index: 99;
}
#adminmenu li.menu-top a.menu-top { #adminmenu li.menu-top a.menu-top {
min-width: auto; min-width: auto;
width: auto; width: auto;
@ -131,7 +109,7 @@ ul#adminmenu {
zoom: 100%; zoom: 100%;
} }
#wpcontent #adminmenu.folded li.wp-menu-separator { #wpcontent.folded #adminmenu li.wp-menu-separator {
width: 28px; width: 28px;
} }
@ -140,11 +118,11 @@ ul#adminmenu {
zoom: 100%; zoom: 100%;
} }
#wpcontent #adminmenu.folded .menu-top { #wpcontent.folded #adminmenu .menu-top {
height: 30px; height: 30px;
} }
#adminmenu.folded .wp-submenu { .folded #adminmenu .wp-submenu {
margin: -1px 0 0 0; margin: -1px 0 0 0;
} }

View File

@ -245,7 +245,7 @@ adminMenu = {
this.favorites(); this.favorites();
$('.wp-menu-separator').click(function(){ $('.wp-menu-separator').click(function(){
if ( $('#adminmenu').hasClass('folded') ) { if ( $('#wpcontent').hasClass('folded') ) {
adminMenu.fold(1); adminMenu.fold(1);
setUserSetting( 'mfold', 'o' ); setUserSetting( 'mfold', 'o' );
} else { } else {
@ -285,10 +285,10 @@ adminMenu = {
fold : function(off) { fold : function(off) {
if (off) { if (off) {
$('#adminmenu').removeClass('folded'); $('#wpcontent').removeClass('folded');
$('#adminmenu li.wp-has-submenu').unbind(); $('#adminmenu li.wp-has-submenu').unbind();
} else { } else {
$('#adminmenu').addClass('folded'); $('#wpcontent').addClass('folded');
$('#adminmenu li.wp-has-submenu').hoverIntent({ $('#adminmenu li.wp-has-submenu').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

@ -1,6 +1,3 @@
#wpbody {
clear: both;
}
p, ul, ol, blockquote { font-size: 12px; } p, ul, ol, blockquote { font-size: 12px; }
@ -929,8 +926,8 @@ a#view-site-link {
font: normal 13px/18px Georgia, "Times New Roman", Times, serif; font: normal 13px/18px Georgia, "Times New Roman", Times, serif;
} }
#adminmenu.folded, .folded #adminmenu,
#adminmenu.folded li.menu-top { .folded #adminmenu li.menu-top {
width: 28px; width: 28px;
} }
@ -938,15 +935,15 @@ a#view-site-link {
display: none; display: none;
} }
#adminmenu.folded div.wp-submenu-head, .folded #adminmenu div.wp-submenu-head,
#adminmenu.folded li.wp-has-submenu div.sub-open { .folded #adminmenu li.wp-has-submenu div.sub-open {
display: block; display: block;
} }
#adminmenu.folded a.menu-top, .folded #adminmenu a.menu-top,
#adminmenu.folded .wp-submenu, .folded #adminmenu .wp-submenu,
#adminmenu.folded li.wp-menu-open .wp-submenu, .folded #adminmenu li.wp-menu-open .wp-submenu,
#adminmenu.folded div.wp-menu-toggle { .folded #adminmenu div.wp-menu-toggle {
display: none; display: none;
} }
@ -1000,7 +997,7 @@ a#view-site-link {
margin: 0; margin: 0;
} }
#adminmenu.folded li.menu-top { .folded #adminmenu li.menu-top {
width: 28px; width: 28px;
height: 30px; height: 30px;
overflow: hidden; overflow: hidden;
@ -1009,7 +1006,7 @@ a#view-site-link {
} }
#adminmenu .menu-top-first a.menu-top, #adminmenu .menu-top-first a.menu-top,
#adminmenu.folded li.menu-top-first, .folded #adminmenu li.menu-top-first,
#adminmenu .wp-submenu .wp-submenu-head { #adminmenu .wp-submenu .wp-submenu-head {
border-width: 1px 1px 0; border-width: 1px 1px 0;
border-style: solid solid none; border-style: solid solid none;
@ -1024,7 +1021,7 @@ a#view-site-link {
} }
#adminmenu .menu-top-last a.menu-top, #adminmenu .menu-top-last a.menu-top,
#adminmenu.folded li.menu-top-last { .folded #adminmenu li.menu-top-last {
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
-moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomleft: 6px;
@ -1054,7 +1051,7 @@ a#view-site-link {
padding: 8px 6px 0; padding: 8px 6px 0;
} }
#adminmenu.folded img.wp-menu-image { .folded #adminmenu img.wp-menu-image {
padding: 7px 0 0 6px; padding: 7px 0 0 6px;
} }
@ -1076,7 +1073,7 @@ a#view-site-link {
cursor: default; cursor: default;
} }
#adminmenu.folded .wp-submenu { .folded #adminmenu .wp-submenu {
position: absolute; position: absolute;
margin: -1px 0 0 28px; margin: -1px 0 0 28px;
padding: 0 8px 8px; padding: 0 8px 8px;
@ -1084,21 +1081,21 @@ a#view-site-link {
border: 0 none; border: 0 none;
} }
#adminmenu.folded .wp-submenu ul { .folded #adminmenu .wp-submenu ul {
width: 140px; width: 140px;
border-width: 0 0 1px; border-width: 0 0 1px;
border-style: none none solid; border-style: none none solid;
} }
#adminmenu.folded .wp-submenu li.wp-first-item { .folded #adminmenu .wp-submenu li.wp-first-item {
border-top: 0 none; border-top: 0 none;
} }
#adminmenu.folded .wp-submenu a { .folded #adminmenu .wp-submenu a {
padding-left: 10px; padding-left: 10px;
} }
#adminmenu.folded a.wp-has-submenu { .folded #adminmenu a.wp-has-submenu {
margin-left: 40px; margin-left: 40px;
} }
@ -1412,12 +1409,7 @@ table.form-table td .updated {
margin: 2px 0 12px; margin: 2px 0 12px;
} }
#col-left .col-wrap {
margin-left: 12px;
}
/* Post Screen */ /* Post Screen */
#normal-sortables { #normal-sortables {
min-height: 50px; min-height: 50px;
} }
@ -2513,7 +2505,7 @@ fieldset {
font-family: "Lucida Grande", Verdana, Arial, sans-serif; font-family: "Lucida Grande", Verdana, Arial, sans-serif;
height: 23px; height: 23px;
padding: 0; padding: 0;
margin: -1px 6px 0 0; margin: 0 6px 0 0;
} }
#screen-meta a.show-settings { #screen-meta a.show-settings {
@ -2527,9 +2519,6 @@ fieldset {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right bottom; background-position: right bottom;
background-color: transparent; background-color: transparent;
border-top-color: #dfdfdf;
border-top-width: 1px;
border-top-style: solid;
text-shadow: rgba(255,255,255,0.7) 0 1px 0; text-shadow: rgba(255,255,255,0.7) 0 1px 0;
} }

View File

@ -41,7 +41,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->base_url = $guessurl; $scripts->base_url = $guessurl;
$scripts->default_version = get_bloginfo( 'version' ); $scripts->default_version = get_bloginfo( 'version' );
$scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081120' ); $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081120b' );
$scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
$scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' ); $scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' );