Customize: Adjust layout for edit shortcuts only when shown.
Add theme-specific positioning of edit shortcuts in Twenty Fourteen and Twenty Seventeen. Props sirbrillig, sstoqnov, westonruter. Fixes #38651. git-svn-id: https://develop.svn.wordpress.org/trunk@39233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c8b86fdd52
commit
ad0dae996e
@ -3092,6 +3092,18 @@ a.post-thumbnail:hover {
|
||||
width: device-width;
|
||||
}
|
||||
|
||||
/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
|
||||
@media screen and (max-width:800px) {
|
||||
body.customize-partial-edit-shortcuts-shown .site-header .site-title {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.site-header .customize-partial-edit-shortcut button {
|
||||
top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
.list-view .site-content .post-thumbnail {
|
||||
background: none;
|
||||
@ -3166,6 +3178,17 @@ a.post-thumbnail:hover {
|
||||
}
|
||||
}
|
||||
|
||||
/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
|
||||
@media screen and (max-width:320px) {
|
||||
.site-header .customize-partial-edit-shortcut button {
|
||||
left: -32px;
|
||||
}
|
||||
|
||||
body.customize-partial-edit-shortcuts-shown .site-header .site-title {
|
||||
padding-left: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 401px) {
|
||||
a.post-thumbnail:hover img {
|
||||
opacity: 0.85;
|
||||
|
@ -3066,6 +3066,13 @@ object {
|
||||
19.0 Media Queries
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Adjust positioning of edit shortcuts, override style in customize-preview.css */
|
||||
@media screen and (min-width: 20em) {
|
||||
body.customize-partial-edit-shortcuts-shown .site-header .site-title {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 30em) {
|
||||
|
||||
/* Typography */
|
||||
|
@ -252,11 +252,11 @@ body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut bu
|
||||
}
|
||||
|
||||
@media screen and (max-width:320px) {
|
||||
.site-title {
|
||||
body.customize-partial-edit-shortcuts-shown .site-title {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.widget-area .widget {
|
||||
body.customize-partial-edit-shortcuts-shown .widget-area .widget {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user