diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 3c60f84d27..68c6c8739f 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -550,40 +550,6 @@ code { margin: 10px 20px 0 2px; } -div.updated, -div.error { - padding: 0 0.6em; - margin: 5px 15px 2px; -} - -div.updated p, -div.error p { - margin: 0.5em 0; - padding: 2px; -} - -.wrap div.updated, -.wrap div.error, -.media-upload-form div.error { - margin: 5px 0 15px; -} - -div.updated { - border-left: 4px solid #7ad03a; - padding: 1px 12px; - background-color: #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); -} - -div.error { - border-left: 4px solid #dd3d36; - background: #fff; - -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); - padding: 1px 12px; -} - .attention { color: #2ea2cc; } @@ -1247,11 +1213,54 @@ th.action-links { } - /*------------------------------------------------------------------------------ 4.0 - Notifications ------------------------------------------------------------------------------*/ +.notice, +div.updated, +div.error { + background: #fff; + border-left: 4px solid #fff; + -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); + box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); + margin: 5px 15px 2px; + padding: 1px 12px; +} + +.notice p, +div.updated p, +div.error p { + margin: 0.5em 0; + padding: 2px; +} + +.notice-success, +div.updated { + border-color: #7ad03a; +} + +.notice-warning { + border-color: #ffba00; +} + +.notice-error, +div.error { + border-color: #dd3d36; +} + +.notice-info { + border-color: #2ea2cc; +} + +.wrap .notice, +.wrap div.updated, +.wrap div.error, +.media-upload-form .notice, +.media-upload-form div.error { + margin: 5px 0 15px; +} + #update-nag, .update-nag { display: inline-block; diff --git a/src/wp-admin/css/login.css b/src/wp-admin/css/login.css index 02ee1d87e9..f6747f1889 100644 --- a/src/wp-admin/css/login.css +++ b/src/wp-admin/css/login.css @@ -54,7 +54,7 @@ p { } .login .message { - border-left: 4px solid #7ad03a; + border-left: 4px solid #2ea2cc; padding: 1px 12px; background-color: #fff; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index 0bbb525dd1..6b33ca1417 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/wp-admin/edit-form-advanced.php @@ -388,7 +388,7 @@ if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; ?> -
' . __('Warning: This plugin has not been tested with your current version of WordPress.') . '
' . __('Warning: This plugin has not been tested with your current version of WordPress.') . '
' . __('Warning: This plugin has not been marked as compatible with your version of WordPress.') . '
' . __('Warning: This plugin has not been marked as compatible with your version of WordPress.') . '
diff --git a/src/wp-includes/js/autosave.js b/src/wp-includes/js/autosave.js index b338e94982..4e6834a15d 100644 --- a/src/wp-includes/js/autosave.js +++ b/src/wp-includes/js/autosave.js @@ -345,7 +345,7 @@ window.autosave = function() { }; $notice = $( '#local-storage-notice' ); - $('.wrap h2').first().after( $notice.addClass( 'updated' ).show() ); + $('.wrap h2').first().after( $notice.addClass( 'notice-warning' ).show() ); $notice.on( 'click.autosave-local', function( event ) { var $target = $( event.target ); @@ -354,10 +354,12 @@ window.autosave = function() { restorePost( restorePostData ); $target.parent().hide(); $(this).find( 'p.undo-restore' ).show(); + $notice.removeClass( 'notice-warning' ).addClass( 'notice-success' ); } else if ( $target.hasClass( 'undo-restore-backup' ) ) { restorePost( undoPostData ); $target.parent().hide(); $(this).find( 'p.local-restore' ).show(); + $notice.removeClass( 'notice-success' ).addClass( 'notice-warning' ); } event.preventDefault();