diff --git a/wp-admin/css/colors-classic.dev.css b/wp-admin/css/colors-classic.dev.css index 6d418989a3..41d3fcc13f 100644 --- a/wp-admin/css/colors-classic.dev.css +++ b/wp-admin/css/colors-classic.dev.css @@ -136,6 +136,10 @@ div.dashboard-widget-submit { border-top-color: #ccc; } +ul.category-tabs li { + border-color: transparent; +} + div.tabs-panel, .wp-tab-panel, ul.category-tabs li.tabs, diff --git a/wp-admin/css/colors-fresh.dev.css b/wp-admin/css/colors-fresh.dev.css index c8e127eb51..024a8a49a4 100644 --- a/wp-admin/css/colors-fresh.dev.css +++ b/wp-admin/css/colors-fresh.dev.css @@ -144,6 +144,10 @@ div.dashboard-widget-submit { border-top-color: #ccc; } +ul.category-tabs li { + border-color: transparent; +} + div.tabs-panel, .wp-tab-panel, ul.category-tabs li.tabs, diff --git a/wp-admin/css/ie-rtl.dev.css b/wp-admin/css/ie-rtl.dev.css index be23575dbf..16357de522 100644 --- a/wp-admin/css/ie-rtl.dev.css +++ b/wp-admin/css/ie-rtl.dev.css @@ -126,10 +126,6 @@ p.submit { /* quick edit and reply in edit-comments.php */ height:22px; } -.inner-sidebar { /* fix edit single comment */ - position: static; -} - form#widgets-filter { /* fix widget page */ position: static; } diff --git a/wp-admin/css/ie.dev.css b/wp-admin/css/ie.dev.css index 716d3948c3..1d7946dea7 100644 --- a/wp-admin/css/ie.dev.css +++ b/wp-admin/css/ie.dev.css @@ -1,4 +1,13 @@ -/* Fixes for IE bugs */ +/* Fixes for IE 7 bugs */ + +.wp-editor-wrap .wp-editor-container textarea.wp-editor-area { + width: 97%; +} + +#post-body.columns-2 #postbox-container-1 { + padding-left: 19px; +} + .welcome-panel .wp-badge { position: absolute; } @@ -497,7 +506,6 @@ table.ie-fixed { display: inline; } -* html .inner-sidebar #side-sortables, * html .postbox-container .meta-box-sortables { height: 300px; } diff --git a/wp-admin/css/wp-admin-rtl.dev.css b/wp-admin/css/wp-admin-rtl.dev.css index 48f9478399..2fe4f68955 100644 --- a/wp-admin/css/wp-admin-rtl.dev.css +++ b/wp-admin/css/wp-admin-rtl.dev.css @@ -2119,12 +2119,6 @@ div.star { position: relative; } -#side-info-column { - float: left; - right: auto; - left: 0; -} - h3.tb { margin-left: 0; margin-right: 5px; diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css index 78a11eb18c..5d4dcbe14d 100644 --- a/wp-admin/css/wp-admin.dev.css +++ b/wp-admin/css/wp-admin.dev.css @@ -104,6 +104,7 @@ TABLE OF CONTENTS: } /* inner 2 column liquid layout */ +/* .inner-sidebar { float: right; clear: right; @@ -140,10 +141,7 @@ TABLE OF CONTENTS: margin-right: 300px; } -#post-body-content #side-sortables.empty-container { - border: 0 none; - height: 0; -} +*/ /* 2 columns main area */ @@ -915,11 +913,6 @@ ul#add-to-blog-users { margin-top: -2px; } -#post-body #major-publishing-actions { - border-top: 0; - margin-top: 0; -} - #delete-action { line-height: 25px; vertical-align: middle; @@ -933,32 +926,6 @@ ul#add-to-blog-users { line-height: 23px; } -#post-body #minor-publishing { - padding-bottom: 10px; -} - -#post-body #misc-publishing-actions { - padding: 0; -} - -#post-body .misc-pub-section { - border-left-width: 1px; - border-left-style: solid; - border-top: 0; - border-bottom: 0; - min-height: 30px; - float: left; - max-width: 32%; -} - -#post-body .misc-pub-section:first-child { - border-left: 0; -} - -#post-body .misc-pub-section-last { - border-right: 0; -} - #misc-publishing-actions { padding: 6px 0 0; } @@ -1217,6 +1184,10 @@ form.upgrade .hint { margin: 0 5px 0 2px; } +.metabox-prefs .columns-prefs label input { + margin: 0 2px; +} + .metabox-prefs label a { display: none; } @@ -1825,18 +1796,169 @@ body.admin-bar { margin: 0.6em 0; } +/* Screens with postboxes */ .postbox-container { float: left; } -.postbox-container .meta-box-sortables { - min-height: 350px; +#dashboard-widgets.columns-1 .postbox-container { + width: 100%; } -.postbox-container .meta-box-sortables.empty-container, -#side-sortables.empty-container { +#dashboard-widgets.columns-2 .postbox-container { + width: 49.5%; +} + +#dashboard-widgets.columns-2 #postbox-container-2, +#dashboard-widgets.columns-2 #postbox-container-3, +#dashboard-widgets.columns-2 #postbox-container-4 { + float: right; + width: 50.5%; +} + +#dashboard-widgets.columns-3 .postbox-container { + width: 33.5%; +} + +#dashboard-widgets.columns-3 #postbox-container-1 { + width: 33%; +} + +#dashboard-widgets.columns-3 #postbox-container-3, +#dashboard-widgets.columns-3 #postbox-container-4 { + float: right; +} + +#dashboard-widgets.columns-4 .postbox-container { + width: 25%; +} + +.postbox-container .meta-box-sortables { + min-height: 50px; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; +} + +.postbox-container .meta-box-sortables:empty { + min-height: 0; + height: 0; +} + +.metabox-holder .postbox-container .empty-container { border: 3px dashed #CCCCCC; - height: 350px; + height: 250px; +} + +.metabox-holder.columns-1 .postbox-container .empty-container, +.columns-2 #postbox-container-3 .empty-container, +.columns-2 #postbox-container-4 .empty-container, +.columns-3 #postbox-container-4 .empty-container { + border: 0 none; + height: 0; + min-height: 0; +} + +#poststuff { + padding-top: 10px; +} + +#poststuff #post-body { + padding: 0; +} + +#post-body-content { + width: 100%; + float: left; +} + +#poststuff .postbox-container { + width: 100%; +} + +#poststuff #post-body.columns-2 { + margin-right: 300px; +} + +#post-body.columns-2 #postbox-container-1 { + float: right; + margin-right: -300px; + width: 280px; +} + +/* one column on the dash */ +@media only screen and (max-width: 768px) { + #wpbody-content #dashboard-widgets .postbox-container { + width: 100%; + } + + #wpbody-content .metabox-holder .postbox-container .empty-container { + border: 0 none; + height: 0; + min-height: 0; + } +} + +/* two columns on the dash, but keep the setting if one is selected */ +@media only screen and (min-width: 768px) and (max-width: 1200px) { + #wpbody-content #dashboard-widgets .postbox-container { + width: 49.5%; + } + + #wpbody-content #dashboard-widgets #postbox-container-2, + #wpbody-content #dashboard-widgets #postbox-container-3, + #wpbody-content #dashboard-widgets #postbox-container-4 { + float: right; + width: 50.5%; + } + + #wpbody-content .metabox-holder .postbox-container .empty-container, + #wpbody-content #postbox-container-3 .empty-container, + #wpbody-content #postbox-container-4 .empty-container { + border: 0 none; + height: 0; + min-height: 0; + } + + #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { + width: 100%; + } + + #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { + border: 0 none; + height: 0; + min-height: 0; + } + + /* show the radio buttons for column prefs only for one or two columns */ + .index-php .screen-layout, + .index-php .columns-prefs { + display: block; + } + + .columns-prefs .columns-prefs-3, + .columns-prefs .columns-prefs-4 { + display: none; + } +} + +/* one column on the post write/edit screen */ +@media only screen and (max-width: 1024px) { + #wpbody-content #poststuff #post-body { + margin: 0; + } + + #wpbody-content #post-body.columns-2 #postbox-container-1 { + margin-right: 0; + width: 100%; + } + + /* hide the radio buttons for column prefs */ + .screen-layout, + .columns-prefs { + display: none; + } } .postbox .hndle { @@ -2746,82 +2868,25 @@ input#link_url { max-width: 260px; } -#post-body ul.category-tabs, -#post-body ul.add-menu-item-tabs { - float: left; - width: 120px; - text-align: right; - /* Negative margin for the sake of those without JS: all tabs display */ - margin: 0 -120px 0 5px; - padding: 0; -} - -#post-body ul.category-tabs li, -#post-body ul.add-menu-item-tabs li { - padding: 8px; -} - -#post-body ul.category-tabs li.tabs, -#post-body ul.add-menu-item-tabs li.tabs { - -webkit-border-top-left-radius: 3px; - -webkit-border-bottom-left-radius: 3px; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.wp-tab-panel, -.categorydiv div.tabs-panel, -.customlinkdiv div.tabs-panel, -.posttypediv div.tabs-panel, -.taxonomydiv div.tabs-panel, -#linkcategorydiv div.tabs-panel { - height: 200px; - overflow: auto; - padding: 0.5em 0.9em; - border-style: solid; - border-width: 1px; -} - -.nav-menus-php .customlinkdiv div.tabs-panel, -.nav-menus-php .posttypediv div.tabs-panel, -.nav-menus-php .taxonomydiv div.tabs-panel { - height: auto; - max-height: 205px; -} - -div.tabs-panel-active { - display:block; -} - -div.tabs-panel-inactive { - display:none; -} - -#post-body .categorydiv div.tabs-panel, -.taxonomy div.tabs-panel, -#post-body #linkcategorydiv div.tabs-panel { - margin: 0 5px 0 125px; -} - .press-this #side-sortables .category-tabs li, -.has-right-sidebar #side-sortables .category-tabs li, +ul.category-tabs li, #side-sortables .add-menu-item-tabs li, .wp-tab-bar li { display: inline; line-height: 1.35em; } -.no-js #side-sortables .category-tabs li.hide-if-no-js { +.no-js .category-tabs li.hide-if-no-js { display: none; } -#side-sortables .category-tabs a, +.category-tabs a, #side-sortables .add-menu-item-tabs a, .wp-tab-bar a { text-decoration: none; } -#side-sortables .category-tabs { +.category-tabs { margin: 8px 0 3px; } @@ -2834,16 +2899,6 @@ div.tabs-panel-inactive { margin-bottom: 3px; } -.categorydiv ul, -.customlinkdiv ul, -.posttypediv ul, -.taxonomydiv ul, -#linkcategorydiv ul { - list-style: none; - padding: 0; - margin: 0; -} - #normal-sortables .postbox #replyrow .submit { float: none; margin: 0; @@ -2867,14 +2922,13 @@ ul.wp-tab-bar { margin-top: 12px; } -ul.category-tabs li.tabs, +ul.category-tabs li, ul.add-menu-item-tabs li.tabs, .wp-tab-active { border-style: solid solid none; border-width: 1px 1px 0; } -#post-body .category-tabs li.tabs, #post-body .add-menu-item-tabs li.tabs { border-style: solid none solid solid; border-width: 1px 0 1px 1px; @@ -3141,7 +3195,6 @@ table.diff .diff-deletedline del, table.diff .diff-addedline ins { margin: 0; } -#post-body ul.category-tabs, #post-body ul.add-menu-item-tabs { float: left; width: 120px; @@ -3151,12 +3204,10 @@ table.diff .diff-deletedline del, table.diff .diff-addedline ins { padding: 0; } -#post-body ul.category-tabs li, #post-body ul.add-menu-item-tabs li { padding: 8px; } -#post-body ul.category-tabs li.tabs, #post-body ul.add-menu-item-tabs li.tabs { -webkit-border-top-left-radius: 3px; -webkit-border-bottom-left-radius: 3px; @@ -3164,11 +3215,11 @@ table.diff .diff-deletedline del, table.diff .diff-addedline ins { border-bottom-left-radius: 3px; } +.wp-tab-panel, .categorydiv div.tabs-panel, .customlinkdiv div.tabs-panel, .posttypediv div.tabs-panel, -.taxonomydiv div.tabs-panel, -#linkcategorydiv div.tabs-panel { +.taxonomydiv div.tabs-panel { height: 200px; overflow: auto; padding: 0.5em 0.9em; @@ -3191,17 +3242,14 @@ div.tabs-panel-inactive { display:none; } -#post-body .categorydiv div.tabs-panel, -.taxonomy div.tabs-panel, -#post-body #linkcategorydiv div.tabs-panel { +.colunms-1 .categorydiv div.tabs-panel, +.taxonomy div.tabs-panel { margin: 0 5px 0 125px; } -.categorydiv ul, .customlinkdiv ul, .posttypediv ul, -.taxonomydiv ul, -#linkcategorydiv ul { +.taxonomydiv ul { list-style: none; padding: 0; margin: 0; @@ -3214,8 +3262,7 @@ ul.export-filters, .categorydiv ul.categorychecklist ul, .customlinkdiv ul.categorychecklist ul, .posttypediv ul.categorychecklist ul, -.taxonomydiv ul.categorychecklist ul, -#linkcategorydiv ul.categorychecklist ul { +.taxonomydiv ul.categorychecklist ul { margin-left: 18px; } @@ -4244,7 +4291,6 @@ h3.available-themes { font-size: 15px; } -#post-body ul.category-tabs li.tabs a, #post-body ul.add-menu-item-tabs li.tabs a, #TB_window #TB_title a.tb-theme-preview-link, #TB_window #TB_title a.tb-theme-preview-link:visited { @@ -5170,10 +5216,6 @@ body.full-overlay-active { width: 98%; } -.wp-editor-container textarea.wp-editor-area { - width: 99.9%; -} - #template div { margin-right: 190px; } diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index b6fa5dccb1..23e785758b 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -272,17 +272,9 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> -
diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index a6051ce142..609f0879c1 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -75,17 +75,9 @@ wp_nonce_field( $nonce_action ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> - diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index c119d8d318..71d6c96b33 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -196,51 +196,28 @@ function wp_dashboard() { global $screen_layout_columns; $screen = get_current_screen(); + $class = 'columns-' . $screen_layout_columns; - $hide2 = $hide3 = $hide4 = ''; - switch ( $screen_layout_columns ) { - case 4: - $width = 'width:25%;'; - break; - case 3: - $width = 'width:33.333333%;'; - $hide4 = 'display:none;'; - break; - case 2: - $width = 'width:50%;'; - $hide3 = $hide4 = 'display:none;'; - break; - default: - $width = 'width:100%;'; - $hide2 = $hide3 = $hide4 = 'display:none;'; - } ?> -- - - - - -
+ +