Administration: Improve user experience and clarify when in recovery mode.

This changeset introduces several changes around usability when recovery mode is active:

* Display a notice in the admin clarifying that the user is in recovery mode.
* Use a highlight color for the admin bar link to exit recovery mode.
* Exit recovery mode automatically when logging out.
* Include a recovery mode indicator in the title tag.

Props aandrewdixon, azaozz, dhanukanuwan, flixos90, henrywright, karmatosed, mapk, melchoyce, spacedmonkey, TimothyBlynJacobs, tinkerbelly.
See #46608.

Built from https://develop.svn.wordpress.org/trunk@45117


git-svn-id: http://core.svn.wordpress.org/trunk@44926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Felix Arntz
2019-04-05 17:00:52 +00:00
parent 52354f3f0b
commit 5754da106b
40 changed files with 370 additions and 17 deletions

View File

@@ -384,6 +384,22 @@ html:lang(he-il) .rtl #wpadminbar * {
box-shadow: none;
}
/**
* Recovery Mode
*/
#wpadminbar #wp-admin-bar-recovery-mode {
color: #fff;
background-color: #ca4a1f;
}
#wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
color: #fff;
background-color: #c0461e;
}
/**
* My Account
*/

File diff suppressed because one or more lines are too long

View File

@@ -384,6 +384,22 @@ html:lang(he-il) .rtl #wpadminbar * {
box-shadow: none;
}
/**
* Recovery Mode
*/
#wpadminbar #wp-admin-bar-recovery-mode {
color: #fff;
background-color: #ca4a1f;
}
#wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
color: #fff;
background-color: #c0461e;
}
/**
* My Account
*/

File diff suppressed because one or more lines are too long