Widgets: split the sidebars in two containers so there are no empty spaces when they are shown in two columns and some are open, other closed. See #25952.

git-svn-id: https://develop.svn.wordpress.org/trunk@26285 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2013-11-20 04:44:21 +00:00
parent dfd0c43896
commit b31a5258cd
3 changed files with 54 additions and 37 deletions

View File

@@ -10810,33 +10810,33 @@ li#wp-admin-bar-toggle-button {
#menu-locations-wrap .widefat {
width: 100%;
}
}
@media only screen and (min-width: 1250px) {
#widgets-left #available-widgets .widget {
width: 49%;
float: left;
}
#widgets-left #available-widgets .widget:nth-child(even) {
float: right;
}
#widgets-right .widgets-holder-wrap {
width: 48.5%;
#widgets-right .sidebars-column-1,
#widgets-right .sidebars-column-2 {
float: left;
}
#widgets-right .widgets-holder-wrap:nth-child(odd) {
clear: both;
}
#widgets-right .widgets-holder-wrap:nth-child(even) {
float: right;
width: 49%;
}
#widgets-right.single-sidebar .widgets-holder-wrap {
#widgets-right .sidebars-column-1 {
margin-right: 2%;
}
#widgets-right.single-sidebar .sidebars-column-1,
#widgets-right.single-sidebar .sidebars-column-2 {
float: none;
width: 100%;
margin: 0;
}
}