Make WordPress Core

Ticket #33107: 33107.2.patch

File 33107.2.patch, 2.0 KB (added by dingo_bastard, 8 years ago)

I've created a patch, where I removed the use of the dashicon for the + icon and replaced it with css version of the plus so that the centering issue is easily avoided.

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

     
    14381438#customize-theme-controls .add-new-menu-item {
    14391439        cursor: pointer;
    14401440        float: right;
     1441        line-height: 22px;
    14411442        margin-left: 10px;
    14421443        -webkit-transition: all 0.2s;
    14431444        transition: all 0.2s;
     
    14461447        -ms-user-select: none;
    14471448        user-select: none;
    14481449        outline: none;
     1450        padding-left: 25px;
     1451        position: relative;
    14491452}
    14501453
    14511454.reordering .add-new-widget,
     
    14571460
    14581461.add-new-widget:before,
    14591462.add-new-menu-item:before,
    1460 #available-menu-items .new-content-item .add-content:before {
    1461         content: "\f132";
     1463#available-menu-items .new-content-item .add-content:before,
     1464.add-new-widget:after,
     1465.add-new-menu-item:after,
     1466#available-menu-items .new-content-item .add-content:after {
     1467        content: "";
    14621468        display: inline-block;
    1463         position: relative;
    1464         left: -2px;
    1465         top: -1px;
    1466         font: normal 20px/1 dashicons;
    1467         vertical-align: middle;
     1469        position: absolute;
     1470        left: 11px;
     1471        top: 7px;
     1472        width:3px;
     1473        height:13px;
     1474        background: #555555;
    14681475        -webkit-transition: all 0.2s;
    14691476        transition: all 0.2s;
    14701477        -webkit-font-smoothing: antialiased;
     
    14711478        -moz-osx-font-smoothing: grayscale;
    14721479}
    14731480
     1481.add-new-widget:after,
     1482.add-new-menu-item:after,
     1483#available-menu-items .new-content-item .add-content:after{
     1484        -webkit-transform: rotate(90deg);
     1485        -ms-transform: rotate(90deg);
     1486        transform: rotate(90deg);
     1487}
     1488
    14741489/* Reordering */
    14751490.reorder-toggle {
    14761491        color: #0073aa;
     
    16091624        transform: rotate(45deg);
    16101625}
    16111626
     1627body.adding-widget .add-new-widget:after,
     1628.adding-menu-items .add-new-menu-item:after,
     1629#accordion-section-add_menu .add-new-menu-item.open:after {
     1630        -webkit-transform: rotate(135deg);
     1631        -ms-transform: rotate(135deg);
     1632        transform: rotate(135deg);
     1633}
     1634
    16121635#available-widgets,
    16131636#available-menu-items {
    16141637        position: absolute;