More CSS cleanup, props olleicua, see #18314

git-svn-id: http://svn.automattic.com/wordpress/trunk@18939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-10-11 06:25:25 +00:00
parent 82bcca520b
commit 96c3fa3274
3 changed files with 73 additions and 128 deletions

File diff suppressed because one or more lines are too long

View File

@ -61,16 +61,13 @@ TABLE OF CONTENTS:
margin-left: 165px; margin-left: 165px;
} }
#wpbody-content {
padding-bottom: 65px;
}
.folded #wpcontent, .folded #wpcontent,
.folded #footer { .folded #footer {
margin-left: 52px; margin-left: 52px;
} }
#wpbody-content { #wpbody-content {
padding-bottom: 65px;
float: left; float: left;
width: 100%; width: 100%;
} }
@ -163,8 +160,6 @@ TABLE OF CONTENTS:
/* 2 columns main area */ /* 2 columns main area */
#col-container, #col-container,
#col-left, #col-left,
#col-right { #col-right {
@ -643,51 +638,43 @@ div.error p {
/* =CSS 3 transitions /* =CSS 3 transitions
-------------------------------------------------------------- */ -------------------------------------------------------------- */
.fade-1000 {
.fade-1000,
.fade-600,
.fade-400,
.fade-300 {
opacity: 0; opacity: 0;
-moz-transition-property: opacity; -moz-transition-property: opacity;
-moz-transition-duration: 1s;
-webkit-transition-property: opacity; -webkit-transition-property: opacity;
-webkit-transition-duration: 1s;
-o-transition-property: opacity; -o-transition-property: opacity;
-o-transition-duration: 1s;
transition-property: opacity; transition-property: opacity;
}
.fade-1000 {
-moz-transition-duration: 1s;
-webkit-transition-duration: 1s;
-o-transition-duration: 1s;
transition-duration: 1s; transition-duration: 1s;
} }
.fade-600 { .fade-600 {
opacity: 0;
-moz-transition-property: opacity;
-moz-transition-duration: 0.6s; -moz-transition-duration: 0.6s;
-webkit-transition-property: opacity;
-webkit-transition-duration: 0.6s; -webkit-transition-duration: 0.6s;
-o-transition-property: opacity;
-o-transition-duration: 0.6s; -o-transition-duration: 0.6s;
transition-property: opacity;
transition-duration: 0.6s; transition-duration: 0.6s;
} }
.fade-400 { .fade-400 {
opacity: 0;
-moz-transition-property: opacity;
-moz-transition-duration: 0.4s; -moz-transition-duration: 0.4s;
-webkit-transition-property: opacity;
-webkit-transition-duration: 0.4s; -webkit-transition-duration: 0.4s;
-o-transition-property: opacity;
-o-transition-duration: 0.4s; -o-transition-duration: 0.4s;
transition-property: opacity;
transition-duration: 0.4s; transition-duration: 0.4s;
} }
.fade-300 { .fade-300 {
opacity: 0;
-moz-transition-property: opacity;
-moz-transition-duration: 0.3s; -moz-transition-duration: 0.3s;
-webkit-transition-property: opacity;
-webkit-transition-duration: 0.3s; -webkit-transition-duration: 0.3s;
-o-transition-property: opacity;
-o-transition-duration: 0.3s; -o-transition-duration: 0.3s;
transition-property: opacity;
transition-duration: 0.3s; transition-duration: 0.3s;
} }
@ -1371,10 +1358,15 @@ form.upgrade .hint {
#adminmenu a, #adminmenu a,
#sidemenu a, #sidemenu a,
#taglist a, #taglist a,
#catlist a { #catlist a,
#wphead h1 a:hover {
text-decoration: none; text-decoration: none;
} }
#wphead h1 a:hover #site-title {
text-decoration:underline;
}
#header-logo { #header-logo {
float: left; float: left;
margin: 7px 0; margin: 7px 0;
@ -1391,14 +1383,6 @@ form.upgrade .hint {
float: left; float: left;
} }
#wphead h1 a:hover {
text-decoration:none;
}
#wphead h1 a:hover #site-title {
text-decoration:underline;
}
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
6.1 - Favorites Menu 6.1 - Favorites Menu
@ -1507,6 +1491,7 @@ form.upgrade .hint {
line-height: 22px; line-height: 22px;
display: block; display: block;
} }
.toggle-arrow-active { .toggle-arrow-active {
background-position: bottom left; background-position: bottom left;
} }
@ -1669,13 +1654,13 @@ form.upgrade .hint {
.js #adminmenu .wp-submenu.sub-open, .js #adminmenu .wp-submenu.sub-open,
.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,
.no-js #adminmenu .wp-has-submenu:hover .wp-submenu { .no-js #adminmenu .wp-has-submenu:hover .wp-submenu,
#adminmenu .wp-has-current-submenu .wp-submenu {
display: block; display: block;
} }
#adminmenu .wp-has-current-submenu .wp-submenu { #adminmenu .wp-has-current-submenu .wp-submenu {
position: relative; position: relative;
display: block;
z-index: 2; z-index: 2;
top: auto; top: auto;
left: auto; left: auto;
@ -1708,17 +1693,17 @@ form.upgrade .hint {
padding: 0; padding: 0;
} }
#adminmenu .wp-submenu a {
font-size: 12px;
line-height: 18px;
}
#adminmenu .wp-submenu li.current, #adminmenu .wp-submenu li.current,
#adminmenu .wp-submenu li.current a, #adminmenu .wp-submenu li.current a,
#adminmenu .wp-submenu li.current a:hover { #adminmenu .wp-submenu li.current a:hover {
font-weight: bold; font-weight: bold;
} }
#adminmenu .wp-submenu a {
font-size: 12px;
line-height: 18px;
}
#adminmenu a.menu-top, #adminmenu a.menu-top,
#adminmenu .wp-submenu-head { #adminmenu .wp-submenu-head {
font-size: 13px; font-size: 13px;
@ -1744,6 +1729,7 @@ body.no-js #adminmenu .wp-menu-toggle,
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
.folded #adminmenu div.wp-menu-image { .folded #adminmenu div.wp-menu-image {
width: 32px; width: 32px;
} }
@ -1781,27 +1767,23 @@ body.no-js #adminmenu .wp-menu-toggle,
#adminmenu .wp-submenu a { #adminmenu .wp-submenu a {
margin: 0; margin: 0;
padding-left: 12px;
} }
#adminmenu li li { #adminmenu li li {
margin-left: 8px; margin-left: 8px;
} }
.js.folded #adminmenu li li { #adminmenu .wp-submenu a,
margin-left: 0;
}
#adminmenu li li a { #adminmenu li li a {
padding-left: 12px; padding-left: 12px;
} }
.folded #adminmenu li li a { .js.folded #adminmenu li li {
padding-left: 0; margin-left: 0;
} }
.wp-menu-arrow { .folded #adminmenu li li a {
display: none; padding-left: 0;
} }
#adminmenu li.wp-has-current-submenu .wp-menu-arrow, #adminmenu li.wp-has-current-submenu .wp-menu-arrow,
@ -1819,6 +1801,7 @@ body.no-js #adminmenu .wp-menu-toggle,
z-index: 1001; z-index: 1001;
} }
.wp-menu-arrow,
.folded #adminmenu li.menu-top:hover .wp-menu-arrow { .folded #adminmenu li.menu-top:hover .wp-menu-arrow {
display: none; display: none;
} }
@ -2412,10 +2395,7 @@ th.asc:hover span.sorting-indicator {
padding: 3px 6px; padding: 3px 6px;
} }
.tablenav .tablenav-pages a.disabled:hover { .tablenav .tablenav-pages a.disabled:hover ,
cursor: default;
}
.tablenav .tablenav-pages a.disabled:active { .tablenav .tablenav-pages a.disabled:active {
cursor: default; cursor: default;
} }
@ -2482,9 +2462,6 @@ span.post-state-format {
*/ */
/* Layout */ /* Layout */
tr.inline-edit-row td {
padding: 0 0.5em;
}
#wpbody-content .inline-edit-row fieldset { #wpbody-content .inline-edit-row fieldset {
font-size: 12px; font-size: 12px;
@ -2494,6 +2471,7 @@ tr.inline-edit-row td {
width: 100%; width: 100%;
} }
tr.inline-edit-row td,
#wpbody-content .inline-edit-row fieldset .inline-edit-col { #wpbody-content .inline-edit-row fieldset .inline-edit-col {
padding: 0 0.5em; padding: 0 0.5em;
} }
@ -2842,16 +2820,11 @@ input#link_url {
} }
.submitbox .submitdelete { .submitbox .submitdelete {
border-bottom-width: 1px;
border-bottom-style: solid;
text-decoration: none; text-decoration: none;
padding: 1px 2px; padding: 1px 2px;
} }
.inside-submitbox #post_status { .submitbox .submitdelete,
margin: 2px 0 2px -2px;
}
.submitbox .submit a:hover { .submitbox .submit a:hover {
border-bottom-width: 1px; border-bottom-width: 1px;
border-bottom-style: solid; border-bottom-style: solid;
@ -2863,6 +2836,10 @@ input#link_url {
padding: 6px; padding: 6px;
} }
.inside-submitbox #post_status {
margin: 2px 0 2px -2px;
}
#post-status-select, #post-format { #post-status-select, #post-format {
line-height: 2.5em; line-height: 2.5em;
margin-top: 3px; margin-top: 3px;
@ -3162,16 +3139,17 @@ td.post-title p, td.plugin-title p {
vertical-align: top; vertical-align: top;
} }
#jj, #hh, #mn { #aa, #jj, #hh, #mn {
width: 2em;
padding: 1px; padding: 1px;
font-size: 12px; font-size: 12px;
} }
#jj, #hh, #mn {
width: 2em;
}
#aa { #aa {
width: 3.4em; width: 3.4em;
padding: 1px;
font-size: 12px;
} }
.curtime #timestamp { .curtime #timestamp {
@ -3247,14 +3225,11 @@ td.post-title p, td.plugin-title p {
width: 38%; width: 38%;
} }
#postcustomstuff .submit input {
width: auto;
}
#postcustomstuff #newmeta .submit { #postcustomstuff #newmeta .submit {
padding: 0 8px; padding: 0 8px;
} }
#postcustomstuff .submit input,
#postcustomstuff table #addmetasub { #postcustomstuff table #addmetasub {
width: auto; width: auto;
} }
@ -5319,9 +5294,13 @@ div.postbox div.inside {
} }
/* Recent Drafts */ /* Recent Drafts */
#dashboard_recent_drafts ul { #dashboard_recent_drafts ul,
#dashboard_recent_drafts p {
margin: 0; margin: 0;
padding: 0; padding: 0;
}
#dashboard_recent_drafts ul {
list-style: none; list-style: none;
} }
@ -5341,11 +5320,6 @@ div.postbox div.inside {
margin-left: 3px; margin-left: 3px;
} }
#dashboard_recent_drafts p {
margin: 0;
padding: 0;
}
/* Feeds */ /* Feeds */
.rss-widget ul { .rss-widget ul {
margin: 0; margin: 0;
@ -5475,13 +5449,6 @@ a.rsswidget {
} }
/* login */ /* login */
.login form { .login form {
@ -5591,9 +5558,6 @@ a.rsswidget {
} }
/* ms */ /* ms */
/* Dashboard: MS Specific Data */ /* Dashboard: MS Specific Data */
#dashboard_right_now p.musub { #dashboard_right_now p.musub {
@ -5635,11 +5599,6 @@ a.rsswidget {
} }
/* nav-menu */ /* nav-menu */
#nav-menus-frame { #nav-menus-frame {
@ -5654,6 +5613,7 @@ a.rsswidget {
float: left; float: left;
padding-top: 24px; padding-top: 24px;
} }
.no-js #wpbody-content #menu-settings-column { .no-js #wpbody-content #menu-settings-column {
padding-top: 31px; padding-top: 31px;
} }
@ -5670,6 +5630,7 @@ a.rsswidget {
.metabox-holder-disabled .button-controls .select-all { .metabox-holder-disabled .button-controls .select-all {
display: none; display: none;
} }
#wpbody { #wpbody {
position: relative; position: relative;
} }
@ -5772,7 +5733,6 @@ a.rsswidget {
font-size: 14px; font-size: 14px;
} }
#select-nav-menu-container { #select-nav-menu-container {
text-align: right; text-align: right;
padding: 0 10px 3px 10px; padding: 0 10px 3px 10px;
@ -6280,10 +6240,6 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
} }
/* plugin-install */ /* plugin-install */
/* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */ /* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
div.star-holder { div.star-holder {
@ -6433,8 +6389,6 @@ div.star img {
overflow: auto; overflow: auto;
} }
/* press-this */ /* press-this */
body.press-this { body.press-this {
color: #333; color: #333;
@ -6833,10 +6787,6 @@ input.newtag:focus ~ div.taghint {
width: 300px; width: 300px;
} }
/* theme-editor */ /* theme-editor */
.alignleft h3 { .alignleft h3 {
margin: 0; margin: 0;
@ -6915,10 +6865,6 @@ h3 span {
} }
/* theme-install */ /* theme-install */
.theme-listing .theme-item { .theme-listing .theme-item {
display: inline-block; display: inline-block;
@ -6940,7 +6886,8 @@ h3 span {
max-height: 150px; max-height: 150px;
} }
.theme-listing .theme-item-info span { .theme-listing .theme-item-info span,
.theme-listing .theme-item:hover .theme-item-info span.dots {
display: none; display: none;
} }
@ -6948,10 +6895,6 @@ h3 span {
display: inline; display: inline;
} }
.theme-listing .theme-item:hover .theme-item-info span.dots {
display: none;
}
.theme-listing .theme-item-info span.action-links { .theme-listing .theme-item-info span.action-links {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
@ -6963,13 +6906,14 @@ h3 span {
margin-bottom: 3px; margin-bottom: 3px;
} }
#theme-information .available-theme,
.available-theme { .available-theme {
padding: 20px 15px; padding: 20px 15px;
} }
#theme-information .available-theme { #theme-information .available-theme {
overflow: visible; overflow: visible;
padding: 20px 15px;
width: 440px; width: 440px;
} }
@ -6985,14 +6929,17 @@ h3 span {
margin: 10px 5px 0; margin: 10px 5px 0;
} }
#theme-information .action-button #cancel,
#theme-information .action-button #install {
margin: 10px 5px;
}
#theme-information .action-button #cancel { #theme-information .action-button #cancel {
float: left; float: left;
margin: 10px 15px;
} }
#theme-information .action-button #install { #theme-information .action-button #install {
float: right; float: right;
margin: 10px 15px;
} }
#theme-information .available-theme h3 { #theme-information .available-theme h3 {
@ -7031,8 +6978,6 @@ margin-bottom: 10px;
} }
/* widgets */ /* widgets */
/* 2 column liquid layout */ /* 2 column liquid layout */

View File

@ -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(), '20111008' ); $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111010' );
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20111010' ); $styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20111010' );
$styles->add_data( 'ie', 'conditional', 'lte IE 7' ); $styles->add_data( 'ie', 'conditional', 'lte IE 7' );