Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/js/_enqueues/wp/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ jQuery( function($) {
*/
function highlightLatestPost () {
var latestPost = $('.drafts ul li').first();
latestPost.css('background', '#fffbe5');
latestPost.addClass('highlighted-draft');
setTimeout(function () {
latestPost.css('background', 'none');
latestPost.removeClass('highlighted-draft');
}, 1000);
}
} );
Expand Down
8 changes: 8 additions & 0 deletions src/wp-admin/css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,14 @@ body #dashboard-widgets .postbox form .submit {
#dashboard_quick_press .drafts li {
margin-bottom: 1em;
}

/* Transient highlight applied to a newly added draft. */
#dashboard_quick_press .drafts li.highlighted-draft {
margin: -6px -12px calc(1em - 6px);
padding: 6px 12px;
background: #ceb;
}

#dashboard_quick_press .drafts li time {
color: #646970;
}
Expand Down
Loading