From e45ca7cc8945018ba79425bae97dbcfc2ea3ef8d Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 19 Nov 2013 23:46:05 +0000 Subject: [PATCH] Widgets: - Remove the !important styles that were overriding the widget width when expanded. - Fix missing border-bottom from widgets when dragged and expanded. Props shaunandrews, see #26117. git-svn-id: https://develop.svn.wordpress.org/trunk@26275 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/wp-admin.css | 10 +--------- src/wp-admin/js/widgets.js | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/wp-admin/css/wp-admin.css b/src/wp-admin/css/wp-admin.css index d84d778061..6b356f7260 100644 --- a/src/wp-admin/css/wp-admin.css +++ b/src/wp-admin/css/wp-admin.css @@ -10289,9 +10289,7 @@ div#widgets-right .widgets-holder-wrap { div#widgets-right .widget { margin: 0 auto; border: 1px solid #dedede !important; /* ln 991 in colors-fresh.css */ - border-bottom: none !important; /* ln 991 in colors-fresh.css */ - margin-left: 0 !important; /* Wide format widgets are the devil */ - width: 100% !important; /* Wide format widgets are the devil */ + margin-bottom: -1px; } div#widgets-right .sidebar-description { @@ -10311,7 +10309,6 @@ div#widgets-right .sidebar-name .sidebar-name-arrow:before { top: 4px; } div#widgets-right .widget-top { - border-bottom: none; padding: 0; background: #f7f7f7; } @@ -10329,11 +10326,6 @@ div#widgets-right .widget-inside { border-top: 1px solid #dedede; } -/* The last widget has some additional borders */ -div#widgets-right .widget:last-child { - border-bottom: 1px solid #dedede !important; /* ln 991 in colors-fresh.css */ -} - div#widgets-right .widgets-sortables { min-height: 42px !important; /* Inline styles */ padding: 0 8px; diff --git a/src/wp-admin/js/widgets.js b/src/wp-admin/js/widgets.js index 6beba69ebc..52f5921f35 100644 --- a/src/wp-admin/js/widgets.js +++ b/src/wp-admin/js/widgets.js @@ -46,7 +46,6 @@ wpWidgets = { if ( inside.is(':hidden') ) { if ( w > 250 && inside.closest('div.widgets-sortables').length ) { - css.width = w + 30 + 'px'; if ( inside.closest('div.widget-liquid-right').length ) css[margin] = 235 - w + 'px'; widget.css(css);