diff --git src/wp-content/themes/twentyfourteen/style.css src/wp-content/themes/twentyfourteen/style.css
index d5c2c2f..e58234b 100644
|
|
a.post-thumbnail:hover { |
3098 | 3098 | width: device-width; |
3099 | 3099 | } |
3100 | 3100 | |
| 3101 | @media screen and (max-width:800px) { |
| 3102 | .site-header .site-title { |
| 3103 | padding-left: 8px; |
| 3104 | } |
| 3105 | |
| 3106 | .site-header .customize-partial-edit-shortcut button { |
| 3107 | top: 10px; |
| 3108 | } |
| 3109 | } |
| 3110 | |
| 3111 | |
3101 | 3112 | @media screen and (max-width: 400px) { |
3102 | 3113 | .list-view .site-content .post-thumbnail { |
3103 | 3114 | background: none; |
… |
… |
a.post-thumbnail:hover { |
3172 | 3183 | } |
3173 | 3184 | } |
3174 | 3185 | |
| 3186 | @media screen and (max-width:320px) { |
| 3187 | .site-header .customize-partial-edit-shortcut button { |
| 3188 | left: -32px; |
| 3189 | } |
| 3190 | |
| 3191 | .site-header .site-title { |
| 3192 | padding-left: 28px; |
| 3193 | } |
| 3194 | } |
| 3195 | |
3175 | 3196 | @media screen and (min-width: 401px) { |
3176 | 3197 | a.post-thumbnail:hover img { |
3177 | 3198 | opacity: 0.85; |
diff --git src/wp-content/themes/twentyseventeen/style.css src/wp-content/themes/twentyseventeen/style.css
index 05dec3b..f1ec573 100644
|
|
object { |
3066 | 3066 | ## Media Queries |
3067 | 3067 | --------------------------------------------------------------*/ |
3068 | 3068 | |
| 3069 | @media screen and (min-width: 20em) { |
| 3070 | .site-header .site-title { |
| 3071 | padding-left: 0; |
| 3072 | } |
| 3073 | } |
| 3074 | |
3069 | 3075 | @media screen and (min-width: 30em) { |
3070 | 3076 | |
3071 | 3077 | /* Typography */ |
diff --git src/wp-includes/css/customize-preview.css src/wp-includes/css/customize-preview.css
index c245d25..daa41be 100644
|
|
|
35 | 35 | border: 1px solid #0085ba; |
36 | 36 | } |
37 | 37 | |
38 | | /* Styles for the actual shortcut */ |
| 38 | /** |
| 39 | * Styles for the actual shortcut |
| 40 | * |
| 41 | * Note that some properties are overly verbose to prevent theme interference. |
| 42 | */ |
39 | 43 | .widget .customize-partial-edit-shortcut button, |
40 | 44 | .customize-partial-edit-shortcut button { |
41 | 45 | position: absolute; |
42 | | left: -36px; |
| 46 | left: -30px; |
| 47 | top: 2px; |
43 | 48 | color: #fff; |
44 | 49 | width: 30px; |
45 | 50 | height: 30px; |
… |
… |
body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut bu |
101 | 106 | visibility: hidden; |
102 | 107 | } |
103 | 108 | |
104 | | .customize-partial-edit-shortcut-left-margin.customize-partial-edit-shortcut button { |
105 | | left: 0; |
106 | | } |
107 | | |
108 | 109 | @-webkit-keyframes customize-partial-edit-shortcut-bounce-appear { |
109 | 110 | from, 20%, 40%, 60%, 80%, to { |
110 | 111 | -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); |
… |
… |
body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut bu |
242 | 243 | } |
243 | 244 | |
244 | 245 | @media screen and (max-width:800px) { |
| 246 | .widget .customize-partial-edit-shortcut button, |
| 247 | .customize-partial-edit-shortcut button { |
| 248 | left: -32px; |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | @media screen and (max-width:320px) { |
| 253 | .site-title { padding-left: 10px; } |
| 254 | |
| 255 | .widget-area .widget { |
| 256 | padding-left: 10px; |
| 257 | } |
| 258 | |
| 259 | .widget .customize-partial-edit-shortcut button, |
245 | 260 | .customize-partial-edit-shortcut button { |
246 | | left: -18px; /* Assume there will be less of a margin available on smaller screens */ |
| 261 | left: -30px; |
247 | 262 | } |
248 | 263 | } |
diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
index 70e2b96..4355f2d 100644
|
|
wp.customize.selectiveRefresh = ( function( $, api ) { |
118 | 118 | return; |
119 | 119 | } |
120 | 120 | $shortcut = partial.createEditShortcut(); |
121 | | partial.positionEditShortcut( placement, $shortcut ); |
| 121 | partial.addEditShortcutToPlacement( placement, $shortcut ); |
122 | 122 | $shortcut.on( 'click', function( event ) { |
123 | 123 | event.preventDefault(); |
124 | 124 | event.stopPropagation(); |
… |
… |
wp.customize.selectiveRefresh = ( function( $, api ) { |
127 | 127 | }, |
128 | 128 | |
129 | 129 | /** |
130 | | * Position an edit shortcut for the placement container. |
131 | | * |
132 | | * The shortcut must already be created and added to the page. |
| 130 | * Add an edit shortcut to the placement container. |
133 | 131 | * |
134 | 132 | * @since 4.7 |
135 | 133 | * |
… |
… |
wp.customize.selectiveRefresh = ( function( $, api ) { |
137 | 135 | * @param {jQuery} $editShortcut The shortcut element as a jQuery object. |
138 | 136 | * @returns {void} |
139 | 137 | */ |
140 | | positionEditShortcut: function( placement, $editShortcut ) { |
141 | | var $placementContainer = $( placement.container ), $editButton; |
142 | | $placementContainer.prepend( $editShortcut ); |
| 138 | addEditShortcutToPlacement: function( placement, $editShortcut ) { |
| 139 | var $placementContainer = $( placement.container ); |
| 140 | if ( ! $editShortcut.addedToPlacement ) { |
| 141 | $placementContainer.prepend( $editShortcut ); |
| 142 | $editShortcut.addedToPlacement = true; |
| 143 | } |
143 | 144 | if ( ! $placementContainer.is( ':visible' ) || 'none' === $placementContainer.css( 'display' ) ) { |
144 | 145 | $editShortcut.addClass( 'customize-partial-edit-shortcut-hidden' ); |
145 | 146 | } |
146 | | $editButton = $editShortcut.find( 'button' ); |
147 | | $editShortcut.toggleClass( 'customize-partial-edit-shortcut-left-margin', $editButton.offset().left < 2 ); |
148 | 147 | }, |
149 | 148 | |
150 | 149 | /** |