Skip to content

Commit 5ea6f41

Browse files
committed
Customize: Fix positioning of Preview button in mobile.
Props Mahvash-Fatima. Fixes #42172. git-svn-id: https://develop.svn.wordpress.org/trunk@41853 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 27a3350 commit 5ea6f41

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/wp-admin/css/customize-controls.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,13 +1758,10 @@ p.customize-section-description {
17581758
}
17591759

17601760
/* Animations for opening the themes panel */
1761-
#customize-header-actions .save,
1762-
#customize-header-actions #publish-settings,
1761+
#customize-save-button-wrapper,
17631762
#customize-header-actions .spinner,
17641763
#customize-header-actions .customize-controls-preview-toggle {
1765-
position: relative;
1766-
top: 0;
1767-
transition: .18s top ease-in-out;
1764+
transition: .18s margin ease-in-out;
17681765
}
17691766

17701767
#customize-footer-actions,
@@ -1784,11 +1781,10 @@ p.customize-section-description {
17841781
background: #eee; /* Prevents a black flash when fading in the panel */
17851782
}
17861783

1787-
.in-themes-panel #customize-header-actions .save,
1788-
.in-themes-panel #customize-header-actions #publish-settings,
1784+
.in-themes-panel #customize-save-button-wrapper,
17891785
.in-themes-panel #customize-header-actions .spinner,
17901786
.in-themes-panel #customize-header-actions .customize-controls-preview-toggle {
1791-
top: -45px;
1787+
margin-top: -46px; /* Height of header actions bar */
17921788
}
17931789

17941790
.in-themes-panel #customize-footer-actions,

0 commit comments

Comments
 (0)