Customize: Improve interactions between the Themes panel and Publish Settings section.

* Deactivate the Themes panel immediately after changing selected status to non-publish.
* Animate publish settings button into view with publish button when collapsing Themes panel.
* Deactivate publish settings section and hide publish settings button entirely when customizer state is clean.
* Harden access of Themes panel in case it was removed by plugin.
* Fix throttling of `renderScreenshots` calls in `ThemesSection`.

Amends [41648], [41626].
See #37661, #39896, #34843.

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


git-svn-id: http://core.svn.wordpress.org/trunk@41483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter
2017-09-29 21:52:45 +00:00
parent 76f590b99b
commit 57044ac71e
7 changed files with 54 additions and 38 deletions

View File

@@ -1659,6 +1659,7 @@ p.customize-section-description {
/* Animations for opening the themes panel */
#customize-header-actions .save,
#customize-header-actions #publish-settings,
#customize-header-actions .spinner,
#customize-header-actions .customize-controls-preview-toggle {
position: relative;
@@ -1686,6 +1687,7 @@ p.customize-section-description {
}
.in-themes-panel #customize-header-actions .save,
.in-themes-panel #customize-header-actions #publish-settings,
.in-themes-panel #customize-header-actions .spinner,
.in-themes-panel #customize-header-actions .customize-controls-preview-toggle {
top: -45px;