Changeset 27578
- Timestamp:
- 03/18/2014 12:19:17 AM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r27451 r27578 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', { … … 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 } -
trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
r27534 r27578 161 161 #wp-image-toolbar { 162 162 position: absolute; 163 } 164 165 #wp-image-toolbar .wrapper { 166 position: relative; 167 height: 33px; 168 background-color: #333; /* old IE */ 169 background-color: rgba(0,0,0,0.3); 163 background-color: #333; 170 164 } 171 165 172 166 #wp-image-toolbar .dashicons { 173 position: absolute;174 167 color: white; 175 width: 36px;176 height: 32px;177 line-height: 32px;178 168 cursor: pointer; 179 }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 169 } 190 170 … … 240 220 overflow: hidden; 241 221 outline: 0; 222 width: 100%; 242 223 } 243 224 … … 247 228 .wpview-type-gallery { 248 229 position: relative; 249 padding: 0 0 12px;250 230 margin-bottom: 16px; 251 231 cursor: pointer; … … 254 234 .wpview-type-gallery:after { 255 235 content: ''; 256 display: block; 257 height: 0; 236 display: table; 258 237 clear: both; 259 visibility: hidden;260 238 } 261 239 262 240 .wpview-type-gallery.selected { 263 background-color: #efefef; 241 background-color: #f2f8ff; 242 outline: 1px solid #777; 264 243 } 265 244 … … 270 249 background-color: #333; 271 250 color: white; 272 padding: 4px;273 251 display: none; 252 } 253 254 .wpview-type-gallery .toolbar div, 255 #wp-image-toolbar div { 256 margin: 5px; 274 257 } 275 258 … … 292 275 .gallery { 293 276 margin: auto; 294 line-height: 1; 277 padding: 0.5em 0; 278 line-height: 1; 279 margin-left: -0.5em; 280 margin-right: -0.5em; 281 overflow-x: hidden; 295 282 } 296 283 297 284 .gallery .gallery-item { 298 285 float: left; 299 margin: 10px 0 00;286 margin: 0; 300 287 text-align: center; 288 padding: 0.5em; 289 -webkit-box-sizing: border-box; 290 -moz-box-sizing: border-box; 291 box-sizing: border-box; 301 292 } 302 293 … … 306 297 } 307 298 299 .gallery .gallery-caption { 300 font-size: 13px; 301 margin: 4px 0; 302 } 303 308 304 .gallery-columns-1 .gallery-item { 309 width: 99%;305 width: 100%; 310 306 } 311 307 312 308 .gallery-columns-2 .gallery-item { 313 width: 49.5%;309 width: 50%; 314 310 } 315 311 316 312 .gallery-columns-3 .gallery-item { 317 width: 33 %;313 width: 33.333%; 318 314 } 319 315 320 316 .gallery-columns-4 .gallery-item { 321 width: 2 4.75%;317 width: 25%; 322 318 } 323 319 324 320 .gallery-columns-5 .gallery-item { 325 width: 19.825%;321 width: 20%; 326 322 } 327 323 328 324 .gallery-columns-6 .gallery-item { 329 width: 16 %;325 width: 16.667%; 330 326 } 331 327 332 328 .gallery-columns-7 .gallery-item { 333 width: 14 %;329 width: 14.285%; 334 330 } 335 331 336 332 .gallery-columns-8 .gallery-item { 337 width: 12 %;333 width: 12.5%; 338 334 } 339 335 340 336 .gallery-columns-9 .gallery-item { 341 width: 11 %;337 width: 11.111%; 342 338 } 343 339 344 340 .gallery img { 345 341 border: 1px solid #cfcfcf; 342 max-width: 100%; 343 height: auto; 346 344 } 347 345 -
trunk/src/wp-includes/media-template.php
r27533 r27578 906 906 <script type="text/html" id="tmpl-editor-gallery"> 907 907 <div class="toolbar"> 908 <div class="dashicons dashicons- format-galleryedit"></div>908 <div class="dashicons dashicons-edit edit"></div> 909 909 <div class="dashicons dashicons-no-alt remove"></div> 910 910 </div>
Note: See TracChangeset
for help on using the changeset viewer.