Make WordPress Core

Ticket #37504: 37504.patch

File 37504.patch, 2.3 KB (added by rahulsprajapati, 10 years ago)

Added css for WP < 4.6 version update message displays using :not(.notice) as .notice class is added after 4.6

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

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index b09c390..c5548ac 100644
    a b th.action-links {  
    12981298------------------------------------------------------------------------------*/
    12991299
    13001300.notice,
     1301.update-message:not(.notice),
    13011302div.updated,
    13021303div.error {
    13031304        background: #fff;
    … … div.error {  
    13051306        -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
    13061307        box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
    13071308        margin: 5px 15px 2px;
     1309}
     1310
     1311.notice,
     1312div.updated,
     1313div.error {
    13081314        padding: 1px 12px;
    13091315}
    13101316
     1317.update-message:not(.notice) {
     1318        padding: 6.5px 12px;
     1319}
     1320
    13111321.notice p,
    13121322.notice-title,
    13131323div.updated p,
    … … div.error {  
    14081418}
    14091419
    14101420.update-message p:before,
     1421.update-message:not(.notice):before,
    14111422.updating-message p:before,
    14121423.updated-message p:before,
    14131424.import-php .updating-message:before,
    … … div.error {  
    14321443
    14331444/* Update icon. */
    14341445.update-message p:before,
     1446.update-message:not(.notice):before,
    14351447.updating-message p:before,
    14361448.import-php .updating-message:before,
    14371449.button.updating-message:before,
    … … div.error {  
    14401452        content: "\f463";
    14411453}
    14421454
     1455.update-message:not(.notice):before {
     1456        margin-right: 6px;
     1457}
     1458
    14431459/* Spins the update icon. */
    14441460.updating-message p:before,
    14451461.import-php .updating-message:before,
    … … form.upgrade .hint {  
    15521568        .wrap .notice p:before,
    15531569        .button.installing:before,
    15541570        .button.installed:before,
    1555         .update-message p:before {
     1571        .update-message p:before,
     1572        .update-message:not(.notice):before,{
    15561573                speak: none;
    15571574        }
    15581575}
  • src/wp-admin/css/list-tables.css

    diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css
    index 8443a72..65339c8 100644
    a b ul.cat-checklist {  
    13501350        padding: 0;
    13511351}
    13521352
    1353 .plugins .plugin-update-tr .notice {
     1353.plugins .plugin-update-tr .notice, .plugins .plugin-update-tr .update-message:not(.notice) {
    13541354        margin: 5px 20px 15px 40px;
    13551355}
    13561356
    1357 .plugins .notice p {
     1357.plugins .plugin-update-tr .update-message:not(.notice) {
     1358        border-left-color: #ffb900;
     1359}
     1360
     1361.plugins .plugin-update-tr .update-message:not(.notice) {
     1362        background-color: #fff8e5;
     1363}
     1364
     1365.plugins .notice p, .update-message:not(.notice) {
    13581366        margin: 0.5em 0;
    13591367}
    13601368