[wp-trac] [WordPress Trac] #26168: Empty sidebars missing some indication of "droppablity"
WordPress Trac
noreply at wordpress.org
Fri Nov 29 00:40:04 UTC 2013
#26168: Empty sidebars missing some indication of "droppablity"
--------------------------+----------------------------
Reporter: shaunandrews | Owner: iammattthomas
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.8
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: ui-focus |
--------------------------+----------------------------
Comment (by azaozz):
> ...its way harder than adding an :after pseudo element.
Yeah, almost got it working with:
{{{
div#widgets-right .sidebar-description {
padding-bottom: 45px;
}
div#widgets-right .widgets-holder-wrap:not(.closed) .sidebar-description +
div,
div#widgets-right .widgets-holder-wrap:not(.closed) .sidebar-description +
div.ui-draggable + div.widget-placeholder,
div#widgets-right .widgets-holder-wrap:not(.closed) .sidebar-description +
div.ui-sortable-helper + div {
margin-top: -45px;
}
}}}
However that makes the first widget in each sidebar shift position
momentarily on drag start, which breaks the drag-helper in UI Sortable and
makes it quite hard to place the widget properly.
How about 26168.2.patch: when starting to drag, add "highlighting" of all
areas where a widget can be dropped, including closed sidebars. This makes
it even more obvious than a placeholder in empty sidebars.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26168#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list