Make WordPress Core

Changeset 29607


Ignore:
Timestamp:
08/25/2014 09:25:13 PM (12 years ago)
Author:
helen
Message:

Media:

  • Make attachment focus styles more obvious, particularly for already selected items.
  • Fix styling for the selection set attachments.
  • Remove some CSS cruft.

fixes #28822.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r29598 r29607  
    529529}
    530530
    531 .media-frame.mode-grid .attachment:focus {
     531.media-frame.mode-grid .attachment:focus,
     532.media-frame.mode-grid .selected.attachment:focus,
     533.media-frame.mode-grid .attachment.details:focus {
    532534    -webkit-box-shadow:
    533         inset 0 0 0 5px #f1f1f1,
    534         inset 0 0 1px 7px #5b9dd9;
     535        inset 0 0 2px 3px #f1f1f1,
     536        inset 0 0 0 7px #5b9dd9;
    535537    box-shadow:
    536         inset 0 0 0 5px #f1f1f1,
    537         inset 0 0 1px 7px #5b9dd9;
     538        inset 0 0 2px 3px #f1f1f1,
     539        inset 0 0 0 7px #5b9dd9;
     540    outline: none;
    538541}
    539542
     
    547550}
    548551
    549 .media-frame.mode-grid .selected.attachment:focus {
     552.media-frame.mode-grid .attachment.details {
    550553    -webkit-box-shadow:
    551554        inset 0 0 0 3px #f1f1f1,
  • trunk/src/wp-includes/css/media-views.css

    r29598 r29607  
    6363    border-style: solid;
    6464    border-color: #dfdfdf;
     65}
     66
     67.media-frame input[type="text"]:focus,
     68.media-frame input[type="password"]:focus,
     69.media-frame input[type="number"]:focus,
     70.media-frame input[type="search"]:focus,
     71.media-frame input[type="email"]:focus,
     72.media-frame input[type="url"]:focus,
     73.media-frame textarea:focus,
     74.media-frame select:focus {
     75    border-color: #5b9dd9;
    6576}
    6677
     
    764775}
    765776
    766 .attachment:focus {
     777.attachment:focus,
     778.selected.attachment:focus,
     779.attachment.details:focus {
    767780    -webkit-box-shadow:
    768         inset 0 0 0 5px #fff,
    769         inset 0 0 1px 7px #5b9dd9;
     781        inset 0 0 2px 3px #fff,
     782        inset 0 0 0 7px #5b9dd9;
    770783    box-shadow:
    771         inset 0 0 0 5px #fff,
    772         inset 0 0 1px 7px #5b9dd9;
     784        inset 0 0 2px 3px #fff,
     785        inset 0 0 0 7px #5b9dd9;
    773786    outline: none;
    774787}
     
    781794        inset 0 0 0 5px #fff,
    782795        inset 0 0 0 7px #ccc;
     796}
     797
     798.attachment.details {
     799    -webkit-box-shadow:
     800        inset 0 0 0 3px #fff,
     801        inset 0 0 0 7px #1e8cbe;
     802    box-shadow:
     803        inset 0 0 0 3px #fff,
     804        inset 0 0 0 7px #1e8cbe;
    783805}
    784806
     
    957979}
    958980
    959 .selected.attachment:focus,
    960 .attachment.details {
    961     -webkit-box-shadow:
    962         inset 0 0 0 3px #fff,
    963         inset 0 0 0 7px #1e8cbe;
    964     box-shadow:
    965         inset 0 0 0 3px #fff,
    966         inset 0 0 0 7px #1e8cbe;
    967 }
    968 
    969981.attachment.details .check,
    970982.attachment.selected .check:focus,
     
    14241436    width: 50%;
    14251437}
    1426 /*
    1427 .attachment.selection.selected .thumbnail {
     1438
     1439.media-selection .attachment-preview {
    14281440    -webkit-box-shadow: none;
    14291441    box-shadow: none;
    1430 }
    1431 
    1432 .attachment.selection.selected:focus {
    1433     -webkit-box-shadow:
    1434         0 0 0 1px #5b9dd9,
    1435         0 0 2px 2px #5b9dd9;
    1436     box-shadow:
    1437         0 0 0 1px #5b9dd9,
    1438         0 0 2px 2px #5b9dd9;
    1439     outline: none;
    1440 }
    1441 
    1442 .attachment.selection.details {
    1443     -webkit-box-shadow:
    1444         0 0 0 1px #fff,
    1445         0 0 0 4px #1e8cbe;
    1446     box-shadow:
    1447         0 0 0 1px #fff,
    1448         0 0 0 4px #1e8cbe;
    1449 }
    1450 */
     1442    background: none;
     1443}
     1444
    14511445.media-selection .attachment.selection.details .thumbnail {
    14521446    -webkit-box-shadow:
Note: See TracChangeset for help on using the changeset viewer.