Making WordPress.org


Ignore:
Timestamp:
04/26/2021 05:12:15 PM (4 years ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@1c878592553a9dcc8f4f2c8cde05952436fe3f46

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/css/components/_pattern.scss

    r10841 r10924  
    1313    .entry-header {
    1414        max-width: $size__site-main;
    15         padding: 2rem 0;
     15        padding: 1.5rem;
    1616        margin-left: auto;
    1717        margin-right: auto;
     18
     19        @media only screen and (min-width: $breakpoint-large) {
     20            padding: 1.5rem 0;
     21        }
    1822
    1923        .entry-title {
     
    2630        display: flex;
    2731        align-items: stretch;
     32        flex-wrap: wrap;
    2833
    2934        button + button {
    3035            margin-left: 2em;
    3136        }
     37    }
     38
     39    .pattern-actions__notice {
     40        margin: 1.5rem 0 0;
     41        height: auto;
     42        flex-basis: 100%;
     43
     44        // @wordpress/components/notice wraps content
     45        > * {
     46            display: flex;
     47            flex-direction: column; // stack on mobile
     48            justify-content: space-between;
     49            align-items: flex-start;
     50            margin: 0;
     51
     52            button {
     53                margin-top: 0.75rem;
     54            }
     55
     56            @media only screen and (min-width: $breakpoint-small) {
     57                align-items: center;
     58                flex-direction: row;
     59
     60                button {
     61                    margin-top: 0;
     62                }
     63            }
     64        }
     65    }
     66
     67    .pattern-actions__guide {
     68        max-width: $breakpoint-mobile / 1.25;
     69
     70        // @wordpress/components/guide overrides
     71        height: auto;
     72        max-height: none;
     73    }
     74
     75    .pattern-actions__guide-content {
     76        padding: 1.5rem;
     77        line-height: 1.5;
     78    }
     79
     80    .pattern-actions__guide-title {
     81        margin: 0;
     82    }
     83
     84    .pattern-actions__guide-shortcut {
     85        background: $color-gray-light-300;
     86        box-shadow: 0 0 0 1px $color-gray-light-700;
     87        padding: 1px;
     88        font-weight: 600;
     89        min-width: 20px;
     90        display: inline-block;
     91        text-align: center;
     92        border-radius: 2px;
    3293    }
    3394
Note: See TracChangeset for help on using the changeset viewer.