Make WordPress Core

Changeset 32506


Ignore:
Timestamp:
05/15/2015 04:18:50 PM (10 years ago)
Author:
helen
Message:

Media: Visually align upload errors with other admin notices.

props sagarjadhav.
fixes #31874.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r32051 r32506  
    460460    margin-bottom: 16px;
    461461    padding: 0 16px;
    462     border: 1px solid #c00;
    463     background-color: #feebe8;
     462    border-left: 4px solid #dd3d36;
     463    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
     464    background-color: #fff;
    464465}
    465466
     
    475476
    476477.upload-php .mode-grid .media-sidebar .upload-error {
    477     margin: 20px 0;
    478     padding: 0;
     478    margin: 12px 0;
     479    padding: 4px 0 0;
    479480    border: none;
     481    box-shadow: none;
    480482    background: none;
    481483}
     
    483485.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors {
    484486    font-size: 0;
    485     top: -12px;
    486     right: -10px;
     487    top: 0;
     488    right: -6px;
    487489}
    488490
    489491.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before {
    490     content: "\f158";
    491     font: normal 20px/1 dashicons;
    492     color: #666;
     492    content: "\f153";
     493    font: normal 16px/1 dashicons;
     494    color: #bbb;
    493495}
    494496
    495497.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:focus:before,
    496498.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:hover:before {
    497     color: #00a0d2;
     499    color: #c00;
    498500}
    499501
  • trunk/src/wp-includes/css/media-views.css

    r32258 r32506  
    11751175}
    11761176
    1177 .media-sidebar .media-uploader-status {
    1178     border-bottom: 1px solid #dfdfdf;
    1179 }
    1180 
    11811177.uploader-inline .media-uploader-status h3 {
    11821178    display: none;
     
    12221218
    12231219.upload-errors .upload-error {
    1224     margin: 8px auto 0 auto;
    1225     padding: 8px;
    1226     border: 1px #c00 solid;
    1227     background: #ffebe8;
    1228     -webkit-border-radius: 3px;
    1229     border-radius: 3px;
    1230 }
    1231 
    1232 .upload-errors .upload-error-label {
    1233     padding: 2px 4px;
    1234     margin-right: 8px;
     1220    padding: 12px;
     1221    margin-bottom: 12px;
     1222    background: #fff;
     1223    border-left: 4px solid #dd3d36;
     1224    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
     1225}
     1226
     1227.upload-errors .upload-error-filename {
    12351228    font-weight: bold;
    1236     color: #fff;
    1237     background: #e00;
    1238     background-image: -webkit-gradient(linear, left top, left bottom, from(#e00), to(#a00));
    1239     background-image: -webkit-linear-gradient(top, #e00, #a00);
    1240     background-image: linear-gradient(to bottom, #e00, #a00);
    1241     -webkit-border-radius: 3px;
    1242     border-radius: 3px;
    12431229}
    12441230
     
    12461232    display: block;
    12471233    padding-top: 8px;
    1248     color: #b44;
    12491234    word-wrap: break-word;
    12501235}
  • trunk/src/wp-includes/media-template.php

    r32467 r32506  
    274274
    275275    <script type="text/html" id="tmpl-uploader-status-error">
    276         <span class="upload-error-label"><?php _e('Error'); ?></span>
    277276        <span class="upload-error-filename">{{{ data.filename }}}</span>
    278277        <span class="upload-error-message">{{ data.message }}</span>
Note: See TracChangeset for help on using the changeset viewer.