Making WordPress.org


Ignore:
Timestamp:
10/25/2016 09:16:56 PM (10 years ago)
Author:
mapk
Message:

Fixing the Screenshot Viewer styling for the new Plugin Directory.

See https://meta.trac.wordpress.org/ticket/1828#comment:52

Fixes #1828

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/screenshots/image-gallery/style.scss

    r4223 r4292  
    1313        .image-gallery-left-nav,
    1414        .image-gallery-right-nav {
    15                 color: #fff;
    16                 font-size: ms( 12 );
     15                display: none;
     16                font-size: ms( 10 );
    1717                height: 100%;
    1818                position: absolute;
    19                 text-shadow: 0 2px 2px $ig-black;
    2019                top: 0;
    2120                z-index: 4;
     21                border-color: #eee;
     22                -webkit-transition: background 0.1s ease, border 0.1s ease;
     23                transition: background 0.1s ease, border 0.1s ease;
    2224
    2325                @media (max-width: $ig-screen-sm-min) {
     
    2729                @media (min-width: $ig-screen-sm-min) {
    2830                        &:hover {
    29                                 color: #fff;
     31                                background: #fff;
     32                                opacity: 0.8;
     33                                border: 1px solid #eee;
    3034                        }
    3135                }
    3236
    3337                &:before {
    34                         padding: 15px;
    3538                        position: relative;
    36                         top: -15px;
     39                        font-family: 'dashicons';
    3740                }
    3841        }
     
    4245
    4346                &:before {
    44                         content: '\027E8';
     47                        content: '\f341';
     48                }
     49
     50                &:hover {
     51                        margin-left: -1px;
    4552                }
    4653        }
     
    5057
    5158                &:before {
    52                         content: '\027E9';
     59                        content: '\f345';
     60                }
     61
     62                &:hover {
     63                        margin-right: -1px;
     64                }
     65        }
     66
     67        &:hover {
     68                .image-gallery-left-nav,
     69                .image-gallery-right-nav {
     70                        display: block;
    5371                }
    5472        }
     
    6078        position: relative;
    6179        white-space: nowrap;
     80        border: 1px solid #eee;
    6281}
    6382
     
    86105                padding: 10px 20px;
    87106                white-space: normal;
     107                font-size: ms( -2 );
    88108
    89109                @media (max-width: $ig-screen-sm-min) {
     
    98118        background: #fff;
    99119        margin-top: 5px;
    100         overflow: hidden;
     120        //overflow: hidden;
    101121
    102122        .image-gallery-thumbnails-container {
     
    111131        display: table-cell;
    112132        margin-right: 5px;
     133        border: 1px solid #eee;
    113134
    114135        .image-gallery-image {
     
    117138
    118139        img {
    119                 border: 4px solid transparent;
    120140                vertical-align: middle;
    121141                width: 100px;
    122142
    123143                @media (max-width: $ig-screen-sm-min) {
    124                         border: 3px solid transparent;
    125144                        width: 75px;
    126145                }
    127146        }
    128147
     148        &:hover {
     149                box-shadow: 0 1px 8px rgba(0,0,0,0.3);
     150        }
     151
    129152        &.active {
    130                 img {
    131                         border: 4px solid $ig-blue;
    132 
    133                         @media (max-width: $ig-screen-sm-min) {
    134                                 border: 3px solid $ig-blue;
    135                         }
    136                 }
     153                border: 1px solid $ig-blue;
    137154        }
    138155}
Note: See TracChangeset for help on using the changeset viewer.