Make WordPress Core

Changeset 27656


Ignore:
Timestamp:
03/23/2014 01:41:21 AM (11 years ago)
Author:
azaozz
Message:

Move the styling of drag/drop on the editor uploading to media-views.css, see #27465

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r27532 r27656  
    599599}
    600600
    601 .wp-editor-wrap {
    602     position: relative;
    603 }
    604 
    605 .uploader-editor {
    606     background: rgba( 150, 150, 150, 0.9 );
    607     position: absolute;
    608     top: 0;
    609     left: 0;
    610     width: 100%;
    611     height: 100%;
    612     z-index: 99998; /* under the toolbar */
    613     display: none;
    614     text-align: center;
    615 }
    616 
    617 .wp-fullscreen-wrap .uploader-editor {
    618     background: rgba( 0, 86, 132, 0.9 );
    619     position: fixed;
    620     z-index: 100050; /* above the editor toolbar */
    621 }
    622 
    623 .uploader-editor-content {
    624     border: 1px dashed #fff;
    625     position: absolute;
    626     top: 10px;
    627     left: 10px;
    628     right: 10px;
    629     bottom: 10px;
    630 }
    631 
    632 #poststuff .uploader-editor-content h3 {
    633     position: absolute;
    634     top: 50%;
    635     left: 0;
    636     right: 0;
    637     -webkit-transform: translateY( -50% );
    638     -ms-transform: translateY( -50% );
    639     transform: translateY( -50% );
    640     font-size: 40px;
    641     color: #fff;
    642     padding: 0;
    643     display: none;
    644 }
    645 
    646 .uploader-editor.droppable {
    647     background: rgba( 0, 86, 132, 0.9 );
    648 }
    649 
    650 #poststuff .uploader-editor.droppable h3 {
    651     display: block;
    652 }
    653 
    654 /* TinyMCE */
    655 #mce_fullscreen_container {
    656     background: #fff;
    657 }
    658 
    659601/*------------------------------------------------------------------------------
    660602  11.1 - Custom Fields
  • trunk/src/wp-includes/css/media-views.css

    r27497 r27656  
    15791579}
    15801580
     1581/* Drag & drop on the editor upload */
     1582.wp-editor-wrap .uploader-editor {
     1583    background: rgba( 150, 150, 150, 0.9 );
     1584    position: absolute;
     1585    top: 0;
     1586    left: 0;
     1587    width: 100%;
     1588    height: 100%;
     1589    z-index: 99998; /* under the toolbar */
     1590    display: none;
     1591    text-align: center;
     1592}
     1593
     1594.wp-editor-wrap.wp-fullscreen-wrap .uploader-editor {
     1595    background: rgba( 0, 86, 132, 0.9 );
     1596    position: fixed;
     1597    z-index: 100050; /* above the editor toolbar */
     1598}
     1599
     1600.wp-editor-wrap .uploader-editor-content {
     1601    border: 1px dashed #fff;
     1602    position: absolute;
     1603    top: 10px;
     1604    left: 10px;
     1605    right: 10px;
     1606    bottom: 10px;
     1607}
     1608
     1609.wp-editor-wrap .uploader-editor .uploader-editor-title {
     1610    position: absolute;
     1611    top: 50%;
     1612    left: 0;
     1613    right: 0;
     1614    -webkit-transform: translateY( -50% );
     1615    -ms-transform: translateY( -50% );
     1616    transform: translateY( -50% );
     1617    font-size: 3em;
     1618    font-weight: bold;
     1619    color: #fff;
     1620    padding: 0;
     1621    display: none;
     1622}
     1623
     1624.wp-editor-wrap .uploader-editor.droppable {
     1625    background: rgba( 0, 86, 132, 0.9 );
     1626}
     1627
     1628.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title {
     1629    display: block;
     1630}
     1631
    15811632/**
    15821633 * IE7 Fixes
  • trunk/src/wp-includes/media-template.php

    r27655 r27656  
    143143    <script type="text/html" id="tmpl-uploader-editor">
    144144        <div class="uploader-editor-content">
    145             <h3><?php _e( 'Drop files to upload' ); ?></h3>
     145            <div class="uploader-editor-title"><?php _e( 'Drop files to upload' ); ?></div>
    146146        </div>
    147147    </script>
Note: See TracChangeset for help on using the changeset viewer.