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. Built from https://develop.svn.wordpress.org/trunk@39233 git-svn-id: http://core.svn.wordpress.org/trunk@39173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
56723c61c6
commit
a69d66bac3
|
@ -3092,6 +3092,18 @@ a.post-thumbnail:hover {
|
||||||
width: device-width;
|
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) {
|
@media screen and (max-width: 400px) {
|
||||||
.list-view .site-content .post-thumbnail {
|
.list-view .site-content .post-thumbnail {
|
||||||
background: none;
|
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) {
|
@media screen and (min-width: 401px) {
|
||||||
a.post-thumbnail:hover img {
|
a.post-thumbnail:hover img {
|
||||||
opacity: 0.85;
|
opacity: 0.85;
|
||||||
|
|
|
@ -3066,6 +3066,13 @@ object {
|
||||||
19.0 Media Queries
|
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) {
|
@media screen and (min-width: 30em) {
|
||||||
|
|
||||||
/* Typography */
|
/* Typography */
|
||||||
|
|
|
@ -252,11 +252,11 @@ body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut bu
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width:320px) {
|
@media screen and (max-width:320px) {
|
||||||
.site-title {
|
body.customize-partial-edit-shortcuts-shown .site-title {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-area .widget {
|
body.customize-partial-edit-shortcuts-shown .widget-area .widget {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -252,11 +252,11 @@ body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut bu
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width:320px) {
|
@media screen and (max-width:320px) {
|
||||||
.site-title {
|
body.customize-partial-edit-shortcuts-shown .site-title {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-area .widget {
|
body.customize-partial-edit-shortcuts-shown .widget-area .widget {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-beta3-39232';
|
$wp_version = '4.7-beta3-39233';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue