Making WordPress.org


Ignore:
Timestamp:
11/11/2020 04:23:45 PM (6 years ago)
Author:
ryelle
Message:

Plugin Directory: Show available block names, icons, and descriptions.

Props michael-arestad for design.
Fixes #5411.

File:
1 edited

Legend:

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

    r9681 r10440  
    119119                #admin {
    120120                        display:block !important;
     121                }
     122        }
     123
     124        .plugin-blocks-list {
     125                list-style: none;
     126                margin-left: 0;
     127
     128                .plugin-blocks-list-item {
     129                        display: grid;
     130                        grid-template-columns: auto 1fr;
     131                        margin-bottom: ms(2);
     132                }
     133
     134                .block-icon {
     135                        display: inline-block;
     136                        margin-right: ms(0);
     137                        padding: ms(1);
     138                        width: 3.5rem; // 56px
     139                        height: 3.5rem; // 56px
     140                        border: 1px solid $color__border;
     141                        border-radius: 2px;
     142
     143                        &.dashicons {
     144                                color: inherit; // Prevent rating color being applied to star icons
     145                        }
     146
     147                        svg {
     148                                width: 16px;
     149                                height: 16px;
     150                                fill: currentColor;
     151                        }
     152                }
     153
     154                .block-title {
     155                        align-self: center;
     156                        font-weight: bold;
     157                }
     158
     159                .has-description {
     160                        .block-icon {
     161                                grid-row: 1 / span 2;
     162                        }
     163
     164                        .block-title {
     165                                margin-bottom: ms(-8);
     166                        }
    121167                }
    122168        }
Note: See TracChangeset for help on using the changeset viewer.