Make WordPress Core

Ticket #27662: 27662.patch

File 27662.patch, 1.0 KB (added by westonruter, 10 years ago)

Prevent default customizer control field styles from applying to widget form fields. https://github.com/x-team/wordpress-develop/pull/8

  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index f9ca1d7..51ada57 100644
    body { 
    150150        margin-bottom: 8px;
    151151}
    152152
    153 .customize-control select,
    154 .customize-control input[type="text"],
    155 .customize-control input[type="radio"],
    156 .customize-control input[type="checkbox"] {
     153.customize-control:not(.customize-control-widget_form) select,
     154.customize-control:not(.customize-control-widget_form) input[type="text"],
     155.customize-control:not(.customize-control-widget_form) input[type="radio"],
     156.customize-control:not(.customize-control-widget_form) input[type="checkbox"] {
    157157        line-height: 28px;
    158158}
    159159
    160 .customize-control input[type="text"] {
     160.customize-control:not(.customize-control-widget_form) input[type="text"] {
    161161        width: 98%;
    162162        line-height: 18px;
    163163        margin: 0;
    164164}
    165165
    166 .customize-control select {
     166.customize-control:not(.customize-control-widget_form) select {
    167167        min-width: 50%;
    168168        max-width: 100%;
    169169        height: 28px;