Making WordPress.org


Ignore:
Timestamp:
06/18/2016 12:33:56 PM (10 years ago)
Author:
obenland
Message:

Plugin Directory: Second pass at plugin reviews o plugin detail.

See #1719.`

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/sass/site/primary/_plugin-single.scss

    r3423 r3427  
    109109                                font-weight: 600;
    110110                                padding: 0;
     111                                text-transform: inherit;
    111112                        }
    112113
    … …  
    138139                }
    139140
     141                .reviews-link {
     142                        @include font-size( ms-unitless( ms(-2) ) );
     143                        margin-top: 0.5rem;
     144                        position: relative;
     145
     146                        &:after {
     147                                content: "\f345";
     148                                font-family: dashicons;
     149                                padding-left: 5px;
     150                                vertical-align: text-top;
     151                        }
     152                }
     153
    140154                .plugin-screenshots {
    141155                        list-style-type: none;
    … …  
    145159                        figcaption {
    146160                                font-style: italic;
     161                        }
     162                }
     163
     164                .plugin-reviews {
     165                        list-style-type: none;
     166                        margin: 0;
     167                        padding: 0;
     168
     169                        .plugin-review + .plugin-review {
     170                                margin: 32px 0 16px;
     171                                margin: 2rem 0 1rem;
     172                        }
     173
     174                        .review-avatar {
     175                                display: none;
     176                        }
     177
     178                        .review,
     179                        .wporg-ratings,
     180                        .review-author {
     181                                display: inline-block;
     182                                vertical-align: top;
     183                        }
     184
     185                        .review-header {
     186                                margin: 0 0 8px;
     187                                margin: 0 0 0.5rem;
     188                        }
     189
     190                        .review-title {
     191                                @include font-size( ms-unitless( ms(0) ) );
     192                                font-weight: 600;
     193                                letter-spacing: 0.01rem;
     194                                margin: 0 0 8px;
     195                                margin: 0 0 0.5rem;
     196                                text-transform: uppercase;
     197                        }
     198
     199                        .review-author {
     200                                line-height: 1.25;
     201                                margin-left: 10px;
     202                        }
     203
     204                        @media screen and ( min-width: $ms-breakpoint ) {
     205                                .review-avatar {
     206                                        display: inline-block;
     207                                        vertical-align: top;
     208
     209                                        .avatar {
     210                                                margin-right: 16px;
     211                                                margin-right: 1rem;
     212                                        }
     213                                }
     214
     215                                .review {
     216                                        width: calc(100% - 60px - 1rem);
     217                                }
     218
     219                                .review-header {
     220                                        margin: 0;
     221                                }
     222
     223                                .review-author {
     224                                        line-height: 1;
     225                                }
    147226                        }
    148227                }
    … …  
    162241                                }
    163242                        }
    164 
    165                         .avatar {
    166                                 border-radius: 50%;
    167                                 margin-right: 10px;
    168                                 vertical-align: middle;
    169                         }
    170                 }
    171         }
     243                }
     244
     245                .avatar {
     246                        border-radius: 50%;
     247                        margin-right: 10px;
     248                        vertical-align: middle;
     249                }
     250        }
     251
    172252        @media screen and ( min-width: $ms-breakpoint ) {
    173253                .entry-meta {
Note: See TracChangeset for help on using the changeset viewer.