diff --git src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
index 8ef748f..0c48ee5 100644
|
|
tinymce.PluginManager.add( 'wpeditimage', function( editor ) { |
348 | 348 | dom.setAttrib( node, 'data-wp-imgselect', 1 ); |
349 | 349 | position = dom.getPos( node, editor.getBody() ); |
350 | 350 | |
351 | | toolbarHtml = '<div class="dashicons dashicons-edit edit" data-mce-bogus="1"></div> ' + |
352 | | '<div class="dashicons dashicons-no-alt remove" data-mce-bogus="1"></div>'; |
| 351 | toolbarHtml = '<div class="wrapper" data-mce-bogus="1">' + |
| 352 | '<div class="dashicons dashicons-format-image edit" data-mce-bogus="1"></div> ' + |
| 353 | '<div class="dashicons dashicons-no-alt remove" data-mce-bogus="1"></div></div>'; |
353 | 354 | |
354 | 355 | toolbar = dom.create( 'div', { |
355 | 356 | 'id': 'wp-image-toolbar', |
… |
… |
tinymce.PluginManager.add( 'wpeditimage', function( editor ) { |
361 | 362 | |
362 | 363 | dom.setStyles( toolbar, { |
363 | 364 | top: position.y, |
364 | | left: position.x |
| 365 | left: position.x, |
| 366 | width: node.width |
365 | 367 | }); |
366 | 368 | } |
367 | 369 | |
diff --git src/wp-includes/js/tinymce/skins/wordpress/wp-content.css src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
index 6cf1b07..f8e83da 100644
|
|
img::selection { |
160 | 160 | |
161 | 161 | #wp-image-toolbar { |
162 | 162 | position: absolute; |
| 163 | } |
| 164 | |
| 165 | #wp-image-toolbar .wrapper { |
| 166 | position: relative; |
| 167 | height: 33px; |
163 | 168 | background-color: #333; /* old IE */ |
164 | | padding: 4px; |
| 169 | background-color: rgba(0,0,0,0.3); |
165 | 170 | } |
166 | 171 | |
167 | 172 | #wp-image-toolbar .dashicons { |
| 173 | position: absolute; |
168 | 174 | color: white; |
| 175 | width: 36px; |
| 176 | height: 32px; |
| 177 | line-height: 32px; |
169 | 178 | cursor: pointer; |
170 | 179 | } |
171 | 180 | |
| 181 | #wp-image-toolbar div.dashicons-no-alt { |
| 182 | top: 0; |
| 183 | right: 0; |
| 184 | } |
| 185 | |
| 186 | #wp-image-toolbar div.dashicons-format-image { |
| 187 | top: 0; |
| 188 | left: 0; |
| 189 | } |
| 190 | |
172 | 191 | /* Image resize handles */ |
173 | 192 | .mce-content-body div.mce-resizehandle { |
174 | 193 | border-color: #777; |
… |
… |
embed { |
220 | 239 | clip: rect(1px, 1px, 1px, 1px); |
221 | 240 | overflow: hidden; |
222 | 241 | outline: 0; |
223 | | width: 100%; |
224 | 242 | } |
225 | 243 | |
226 | 244 | /** |
… |
… |
embed { |
228 | 246 | */ |
229 | 247 | .wpview-type-gallery { |
230 | 248 | position: relative; |
| 249 | padding: 0 0 12px; |
231 | 250 | margin-bottom: 16px; |
232 | 251 | cursor: pointer; |
233 | 252 | } |
234 | 253 | |
235 | 254 | .wpview-type-gallery:after { |
236 | 255 | content: ''; |
237 | | display: table; |
| 256 | display: block; |
| 257 | height: 0; |
238 | 258 | clear: both; |
| 259 | visibility: hidden; |
239 | 260 | } |
240 | 261 | |
241 | 262 | .wpview-type-gallery.selected { |
242 | | background-color: #f2f8ff; |
243 | | outline: 1px solid #777; |
| 263 | background-color: #efefef; |
244 | 264 | } |
245 | 265 | |
246 | 266 | .wpview-type-gallery .toolbar { |
… |
… |
embed { |
271 | 291 | |
272 | 292 | .gallery { |
273 | 293 | margin: auto; |
274 | | padding: 0.5em 0; |
275 | | line-height: 1; |
276 | | margin-left: -0.5em; |
277 | | margin-right: -0.5em; |
278 | | overflow-x: hidden; |
| 294 | line-height: 1; |
279 | 295 | } |
280 | 296 | |
281 | 297 | .gallery .gallery-item { |
282 | 298 | float: left; |
283 | | margin: 0; |
| 299 | margin: 10px 0 0 0; |
284 | 300 | text-align: center; |
285 | | padding: 0.5em; |
286 | | -webkit-box-sizing: border-box; |
287 | | -moz-box-sizing: border-box; |
288 | | box-sizing: border-box; |
289 | 301 | } |
290 | 302 | |
291 | 303 | .gallery .gallery-caption, |
… |
… |
embed { |
293 | 305 | margin: 0; |
294 | 306 | } |
295 | 307 | |
296 | | .gallery .gallery-caption { |
297 | | font-size: 13px; |
298 | | margin: 4px 0; |
299 | | } |
300 | | |
301 | 308 | .gallery-columns-1 .gallery-item { |
302 | | width: 100%; |
| 309 | width: 99%; |
303 | 310 | } |
304 | 311 | |
305 | 312 | .gallery-columns-2 .gallery-item { |
306 | | width: 50%; |
| 313 | width: 49.5%; |
307 | 314 | } |
308 | 315 | |
309 | 316 | .gallery-columns-3 .gallery-item { |
310 | | width: 33.333%; |
| 317 | width: 33%; |
311 | 318 | } |
312 | 319 | |
313 | 320 | .gallery-columns-4 .gallery-item { |
314 | | width: 25%; |
| 321 | width: 24.75%; |
315 | 322 | } |
316 | 323 | |
317 | 324 | .gallery-columns-5 .gallery-item { |
318 | | width: 20%; |
| 325 | width: 19.825%; |
319 | 326 | } |
320 | 327 | |
321 | 328 | .gallery-columns-6 .gallery-item { |
322 | | width: 16.667%; |
| 329 | width: 16%; |
323 | 330 | } |
324 | 331 | |
325 | 332 | .gallery-columns-7 .gallery-item { |
326 | | width: 14.285%; |
| 333 | width: 14%; |
327 | 334 | } |
328 | 335 | |
329 | 336 | .gallery-columns-8 .gallery-item { |
330 | | width: 12.5%; |
| 337 | width: 12%; |
331 | 338 | } |
332 | 339 | |
333 | 340 | .gallery-columns-9 .gallery-item { |
334 | | width: 11.111%; |
| 341 | width: 11%; |
335 | 342 | } |
336 | 343 | |
337 | 344 | .gallery img { |
338 | 345 | border: 1px solid #cfcfcf; |
339 | | max-width: 100%; |
340 | | height: auto; |
341 | 346 | } |
342 | 347 | |
343 | 348 | img.wp-oembed { |
diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
index 345935a..d8d6423 100644
|
|
function wp_print_media_templates() { |
905 | 905 | |
906 | 906 | <script type="text/html" id="tmpl-editor-gallery"> |
907 | 907 | <div class="toolbar"> |
908 | | <div class="dashicons dashicons-edit edit"></div> |
| 908 | <div class="dashicons dashicons-format-gallery edit"></div> |
909 | 909 | <div class="dashicons dashicons-no-alt remove"></div> |
910 | 910 | </div> |
911 | 911 | <div class="gallery gallery-columns-{{{ data.columns }}}"> |