Make WordPress Core

Changeset 26275


Ignore:
Timestamp:
11/19/2013 11:46:05 PM (13 years ago)
Author:
azaozz
Message:

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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/wp-admin.css

    r26271 r26275  
    1029010290        margin: 0 auto;
    1029110291        border: 1px solid #dedede !important; /* ln 991 in colors-fresh.css */
    10292         border-bottom: none !important; /* ln 991 in colors-fresh.css */
    10293         margin-left: 0 !important; /* Wide format widgets are the devil */
    10294         width: 100% !important; /* Wide format widgets are the devil */
     10292        margin-bottom: -1px;
    1029510293}
    1029610294
    … …  
    1031210310}
    1031310311div#widgets-right .widget-top {
    10314         border-bottom: none;
    1031510312        padding: 0;
    1031610313        background: #f7f7f7;
    … …  
    1032810325div#widgets-right .widget-inside {
    1032910326        border-top: 1px solid #dedede;
    10330 }
    10331 
    10332 /* The last widget has some additional borders */
    10333 div#widgets-right .widget:last-child {
    10334         border-bottom: 1px solid #dedede !important; /* ln 991 in colors-fresh.css */
    1033510327}
    1033610328
  • trunk/src/wp-admin/js/widgets.js

    r26271 r26275  
    4747                                if ( inside.is(':hidden') ) {
    4848                                        if ( w > 250 && inside.closest('div.widgets-sortables').length ) {
    49                                                 css.width = w + 30 + 'px';
    5049                                                if ( inside.closest('div.widget-liquid-right').length )
    5150                                                        css[margin] = 235 - w + 'px';
Note: See TracChangeset for help on using the changeset viewer.