Make WordPress Core

Ticket #29897: 29897.2.patch

File 29897.2.patch, 7.5 KB (added by afercia, 11 years ago)

Refreshed simplified patch

  • src/wp-admin/css/common.css

     
    719719}
    720720
    721721/* @todo can we combine these into a class or use an existing dashicon one? */
    722 #welcome-panel.welcome-panel .welcome-panel-close:before,
     722.welcome-panel .welcome-panel-close:before,
    723723.tagchecklist span a:before,
    724724#bulk-titles div a:before {
    725725        background: none;
    726726        color: #bbb;
    727727        content: '\f153';
    728         display: block !important;
     728        display: block;
    729729        font: normal 16px/1 'dashicons';
    730730        speak: none;
    731731        height: 20px;
    732732        text-align: center;
    733733        width: 20px;
    734         -webkit-font-smoothing: antialiased !important;
     734        -webkit-font-smoothing: antialiased;
     735        -moz-osx-font-smoothing: grayscale;
    735736}
    736737
    737 #welcome-panel.welcome-panel .welcome-panel-close:before {
     738.welcome-panel .welcome-panel-close:before {
    738739        margin: 0;
    739740}
    740741
     
    743744        margin: 2px 0;
    744745}
    745746
    746 #welcome-panel.welcome-panel .welcome-panel-close:hover:before,
     747.welcome-panel .welcome-panel-close:hover:before,
     748.welcome-panel .welcome-panel-close:focus:before,
    747749.tagchecklist span a:hover:before,
    748750#bulk-titles div a:hover:before {
    749751        color: #c00;
     
    912914        -moz-box-sizing: border-box;
    913915        box-sizing: border-box;
    914916        margin: 12px 0 25px;
    915         padding: 0 20px;
     917        padding: 0 9px 0 11px;
    916918        width: 100%;
    917919        -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    918920        box-shadow: 0 1px 1px rgba(0,0,0,0.04);
     
    974976}
    975977
    976978.filter-links .current {
    977         -webkit-box-shadow: none;
    978         box-shadow: none;
    979979        border-bottom: 4px solid #666;
    980980        color: #222;
    981981}
     
    16161616
    16171617.widefat th,
    16181618.widefat td {
    1619         overflow: hidden;
    16201619        color: #555;
    16211620}
    16221621
     
    20022001        height: auto;
    20032002}
    20042003
     2004td.image-icon a {
     2005        display: inline-block;
     2006}
     2007
    20052008td.image-icon img {
     2009        display: block;
    20062010        border: 1px solid rgba(0, 0, 0, 0.07);
    20072011}
    20082012
  • src/wp-admin/css/dashboard.css

     
    146146
    147147.welcome-panel .welcome-panel-close {
    148148        position: absolute;
    149         top: 5px;
     149        top: 15px;
    150150        right: 10px;
    151         padding: 20px 15px 0 3px;
     151        padding: 10px 15px 10px 21px;
    152152        font-size: 13px;
    153153        text-decoration: none;
    154154        line-height: 1;
     
    156156
    157157#welcome-panel.welcome-panel .welcome-panel-close:before {
    158158        position: absolute;
    159         left: -18px;
     159        left: 0;
    160160        margin-top: -2px;
    161161        -webkit-transition: all .1s ease-in-out;
    162162        transition: all .1s ease-in-out;
     
    177177
    178178.welcome-panel .welcome-panel-column-container {
    179179        clear: both;
    180         overflow: hidden;
    181180        position: relative;
    182181}
    183182
     
    205204}
    206205
    207206.welcome-panel .welcome-icon {
    208         display: block;
    209         padding: 0 0 8px;
    210207        background: transparent !important;
    211208}
    212209
     
    265262.welcome-panel .welcome-panel-column li {
    266263        line-height: 16px;
    267264        list-style-type: none;
     265        padding: 0 0 8px;
    268266}
    269267
    270268/* Dashboard WordPress news */
     
    328326
    329327#dashboard_right_now ul {
    330328        margin: 0;
    331         overflow: hidden;
     329        /* contain floats */
     330        display: table;
     331        width: 100%;
    332332}
    333333
    334334#dashboard_right_now li {
     
    338338}
    339339
    340340#dashboard_right_now .inside {
    341         overflow: hidden;
    342341        padding: 0;
    343342}
    344343
    345344#dashboard_right_now .main {
    346         overflow: hidden;
    347345        padding: 0 12px 11px;
    348346}
    349347
     
    450448}
    451449
    452450#dashboard_quick_press form {
    453         overflow: hidden;
    454451        margin: 12px;
    455452}
    456453
     
    570567        word-wrap: break-word;
    571568}
    572569
    573 #dashboard_quick_press .draft-title {
    574         overflow: hidden;
    575 }
    576 
    577570#dashboard_quick_press .draft-title a,
    578571#dashboard_quick_press .draft-title time {
    579         float: left;
    580572        margin: 0 5px 0 0;
    581573}
    582574
     
    658650
    659651#future-posts li,
    660652#published-posts li {
    661         overflow: hidden;
    662653        margin-bottom: 8px;
    663654}
    664655
    665656#future-posts ul span,
    666657#published-posts ul span {
     658        display: inline-block;
     659        min-width: 150px;
     660        margin-right: 5px;
    667661        color: #777;
    668         float: left;
    669         margin-right: 8px;
    670         min-width: 150px;
    671662}
    672663
    673664.activity-block {
     
    922913}
    923914
    924915.dashboard-comment-wrap {
    925         overflow: hidden;
    926916        word-wrap: break-word;
    927917}
    928918
     
    11001090        /* Keep the close icon from overlapping the Welcome text. */
    11011091        .welcome-panel .welcome-panel-close {
    11021092                overflow: hidden;
    1103                 text-indent: 100%;
     1093                text-indent: 40px;
    11041094                white-space: nowrap;
    11051095                width: 20px;
    11061096                height: 20px;
    1107                 right: 0;
    11081097                padding: 5px;
     1098                top: 5px;
     1099                right: 5px;
    11091100        }
    11101101
    11111102        /* Make the close icon larger for tappability. */
     
    11121103        #welcome-panel.welcome-panel .welcome-panel-close:before {
    11131104                font-size: 20px;
    11141105                margin: 0;
     1106                left: -35px;
    11151107        }
    11161108}
  • src/wp-admin/css/list-tables.css

     
    624624
    625625.tablenav .view-switch {
    626626        float: right;
    627         margin: 5px 16px 0 8px;
     627        margin: 1px 4px;
     628        line-height: 30px;
     629        /* in list mode markup has white spaces between elements, in grid mode has not */
     630        /* need to minimize white-space do not use 0px or IE 8 will explode */
     631        font-size: 1px;
    628632}
    629633
    630634.wp-filter .view-switch {
    631635        display: inline-block;
     636        margin: 0 7px 0 0;
     637        line-height: 50px;
    632638        vertical-align: middle;
    633         padding: 14px 0;
    634         margin: 0 20px 0 0;
     639        /* minimize white-space */
     640        font-size: 1px;
    635641}
    636642
     643.mode-grid .wp-filter .view-switch {
     644        margin: 0 11px 0 0;
     645}
     646
    637647.view-switch a {
    638648        text-decoration: none;
    639649}
     
    640650
    641651.view-switch > a {
    642652        display: inline-block;
    643         width: 18px;
    644         height: 18px;
     653        width: 28px;
     654        height: 28px;
     655        line-height: 28px;
     656        text-align: center;
     657        vertical-align: middle;
    645658}
    646659
     660.tablenav .view-switch > a {
     661        vertical-align: bottom;
     662}
     663
     664.view-switch > a + a {
     665        margin-left: 5px;
     666}
     667
    647668.view-switch > a:before {
    648         color: #bbb;
    649669        display: inline-block;
    650         float: left;
    651         font: normal 20px/1 'dashicons';
     670        font: normal 20px/28px 'dashicons';
    652671        speak: none;
    653         vertical-align: middle;
    654         margin-left: 0;
     672        color: #bbb;
    655673        -webkit-font-smoothing: antialiased;
    656674        -moz-osx-font-smoothing: grayscale;
    657675}
     
    668686        color: #0074a2;
    669687}
    670688
    671 .view-switch > a + a {
    672         margin-left: 5px;
    673 }
    674 
    675689.view-switch > .view-excerpt:before {
    676690        content: '\f164';
    677691}
     
    14881502        }
    14891503
    14901504        .tablenav.top {
    1491                 margin: 20px 0 5px 0;
     1505                margin: 0;
    14921506        }
    14931507
    14941508        .tablenav.bottom {
  • src/wp-admin/css/themes.css

     
    300300        border: none;
    301301        -webkit-box-shadow: none;
    302302        box-shadow: none;
    303 }
    304 
    305 .theme-browser .theme.add-new-theme a {
    306303        color: #999;
     304        display: block;
    307305        text-decoration: none;
    308         display: block;
    309         position: relative;
    310         z-index: 1;
    311306}
    312307
    313308.theme-browser .theme.add-new-theme:after {
  • src/wp-admin/js/theme.js

     
    962962
    963963                // 'Add new theme' element shown at the end of the grid
    964964                if ( themes.data.settings.canInstall ) {
    965                         this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + l10n.addNew + '</h3></a></div>' );
     965                        this.$el.append( '<a class="theme add-new-theme" href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span></span></div><h3 class="theme-name">' + l10n.addNew + '</h3></div>' );
    966966                }
    967967
    968968                this.parent.page++;