Make WordPress Core

Ticket #49237: image-widget-bg.49237.diff

File image-widget-bg.49237.diff, 3.8 KB (added by bahia0019, 7 years ago)

The pertinent changes start at line 15 with the class ".media-widget-control .media-widget-preview img". It appears Prettier has made some formatting changes to the CSS.

  • src/wp-admin/css/widgets.css

    diff --git src/wp-admin/css/widgets.css src/wp-admin/css/widgets.css
    index 2f34ae6882..267df0e7d5 100644
     
    110110        background-color: #fbfbfc;
    111111        border-style: solid;
    112112        border-color: #5b9dd9;
    113         box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
     113        box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
    114114        /* Only visible in Windows High Contrast mode */
    115115        outline: 2px solid transparent;
    116116        outline-offset: -2px;
    … …  
    133133.media-widget-control .media-widget-preview img {
    134134        max-width: 100%;
    135135        vertical-align: middle;
     136        background-image: linear-gradient(
     137                        45deg,
     138                        #c4c4c4 25%,
     139                        transparent 25%,
     140                        transparent 75%,
     141                        #c4c4c4 75%,
     142                        #c4c4c4
     143                ),
     144                linear-gradient(
     145                        45deg,
     146                        #c4c4c4 25%,
     147                        transparent 25%,
     148                        transparent 75%,
     149                        #c4c4c4 75%,
     150                        #c4c4c4
     151                );
     152        background-position: 0 0, 10px 10px;
     153        background-size: 20px 20px;
     154        width: 100%;
    136155}
    137156.media-widget-control .media-widget-preview .wp-video-shortcode {
    138157        background: #000;
    … …  
    163182}
    164183
    165184.media-widget-video-link .dashicons {
    166         font: normal 60px/1 'dashicons';
     185        font: normal 60px/1 "dashicons";
    167186        position: relative;
    168187        width: 100%;
    169188        top: -90px;
    … …  
    217236 * See: https://alistapart.com/article/quantity-queries-for-css
    218237 */
    219238.media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child,
    220 .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child ~ .gallery-item,
    221 .media-widget-gallery-preview .gallery-item:nth-last-child(n+5),
    222 .media-widget-gallery-preview .gallery-item:nth-last-child(n+5) ~ .gallery-item,
    223 .media-widget-gallery-preview .gallery-item:nth-last-child(n+6),
    224 .media-widget-gallery-preview .gallery-item:nth-last-child(n+6) ~ .gallery-item {
     239.media-widget-gallery-preview
     240        .gallery-item:nth-last-child(3):first-child
     241        ~ .gallery-item,
     242.media-widget-gallery-preview .gallery-item:nth-last-child(n + 5),
     243.media-widget-gallery-preview
     244        .gallery-item:nth-last-child(n + 5)
     245        ~ .gallery-item,
     246.media-widget-gallery-preview .gallery-item:nth-last-child(n + 6),
     247.media-widget-gallery-preview
     248        .gallery-item:nth-last-child(n + 6)
     249        ~ .gallery-item {
    225250        max-width: 33.33%;
    226251}
    227252
    … …  
    252277        color: white;
    253278}
    254279
    255 
    256280/* Widget Dragging Helpers */
    257281.widget.ui-draggable-dragging {
    258282        min-width: 100%;
    … …  
    327351}
    328352
    329353.sidebar-name .handlediv:focus .toggle-indicator:before {
    330         box-shadow:
    331                 0 0 0 1px #5b9dd9,
    332                 0 0 2px 1px rgba(30, 140, 190, 0.8);
     354        box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
    333355}
    334356
    335357.sidebar-name h2,
    … … div#widgets-right .closed .widgets-sortables {  
    539561.widget-control-edit {
    540562        display: block;
    541563        color: #666;
    542         background: #EEE;
     564        background: #eee;
    543565        padding: 0 15px;
    544         line-height: 3.30769230;
    545         border-left: 1px solid #DDD;
     566        line-height: 3.3076923;
     567        border-left: 1px solid #ddd;
    546568}
    547569
    548570#widgets-left .widget-control-edit:hover,
    … … div#widgets-right .closed .widgets-sortables {  
    634656        cursor: default;
    635657}
    636658
    637 
    638659/* Widgets Area Chooser */
    639660.widget-liquid-left #widgets-left.chooser #available-widgets .widget,
    640661.widget-liquid-left #widgets-left.chooser .inactive-sidebar {
    … … div#widgets-right .closed .widgets-sortables {  
    648669        pointer-events: none;
    649670}
    650671
    651 .widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question {
     672.widget-liquid-left
     673        #widgets-left.chooser
     674        #available-widgets
     675        .widget-in-question {
    652676        /* -webkit-filter: none; */
    653677        opacity: 1;
    654678        pointer-events: auto;
    … … div#widgets-right .widget-top:hover,  
    769793ul.CodeMirror-hints {
    770794        z-index: 101; /* Due to z-index 100 set on .widget.open */
    771795}
    772 .widget-control-actions .custom-html-widget-save-button.button.validation-blocked {
     796.widget-control-actions
     797        .custom-html-widget-save-button.button.validation-blocked {
    773798        cursor: not-allowed;
    774799}
    775800