Administration: Add a "Drag boxes here" message to empty dashboard meta boxes so it's clear to users that it's possible to drag meta boxes into empty spaces.

Props xavortm
Fixes #26399

Built from https://develop.svn.wordpress.org/trunk@36295


git-svn-id: http://core.svn.wordpress.org/trunk@36262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn
2016-01-14 04:13:26 +00:00
parent 0f9b770b6c
commit 9ae1736d01
10 changed files with 82 additions and 8 deletions

View File

@@ -1843,6 +1843,23 @@ html.wp-toolbar {
.metabox-holder .postbox-container .empty-container {
border: 3px dashed #b4b9be;
height: 250px;
position: relative;
}
.metabox-holder .postbox-container .empty-container:after {
content: attr(data-emptystring);
margin: auto;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 1em;
width: 200px;
text-align: center;
color: #ccc;
font-size:18px;
display: none;
}
.metabox-holder.columns-1 .postbox-container .empty-container,

View File

@@ -1843,6 +1843,23 @@ html.wp-toolbar {
.metabox-holder .postbox-container .empty-container {
border: 3px dashed #b4b9be;
height: 250px;
position: relative;
}
.metabox-holder .postbox-container .empty-container:after {
content: attr(data-emptystring);
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 1em;
width: 200px;
text-align: center;
color: #ccc;
font-size:18px;
display: none;
}
.metabox-holder.columns-1 .postbox-container .empty-container,

View File

@@ -991,6 +991,11 @@ a.rsswidget {
min-height: 0;
}
#dashboard-widgets #postbox-container-3 .empty-container:after,
#dashboard-widgets #postbox-container-4 .empty-container:after {
display: none;
}
#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container {
width: 100%;
}
@@ -1011,6 +1016,10 @@ a.rsswidget {
.columns-prefs .columns-prefs-4 {
display: none;
}
.metabox-holder .postbox-container .empty-container:after {
display: block;
}
}
/* three columns on the dash */
@@ -1033,6 +1042,14 @@ a.rsswidget {
height: 0;
min-height: 0;
}
#dashboard-widgets #postbox-container-4 .empty-container:after {
display: none;
}
.metabox-holder .postbox-container .empty-container:after {
display: block;
}
}
@media screen and (max-width: 870px) {

View File

@@ -991,6 +991,11 @@ a.rsswidget {
min-height: 0;
}
#dashboard-widgets #postbox-container-3 .empty-container:after,
#dashboard-widgets #postbox-container-4 .empty-container:after {
display: none;
}
#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container {
width: 100%;
}
@@ -1011,6 +1016,10 @@ a.rsswidget {
.columns-prefs .columns-prefs-4 {
display: none;
}
.metabox-holder .postbox-container .empty-container:after {
display: block;
}
}
/* three columns on the dash */
@@ -1033,6 +1042,14 @@ a.rsswidget {
height: 0;
min-height: 0;
}
#dashboard-widgets #postbox-container-4 .empty-container:after {
display: none;
}
.metabox-holder .postbox-container .empty-container:after {
display: block;
}
}
@media screen and (max-width: 870px) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long