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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
4
wp-admin/css/wp-admin-rtl.min.css
vendored
4
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
4
wp-admin/css/wp-admin.min.css
vendored
4
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user