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