Making WordPress.org


Ignore:
Timestamp:
06/24/2021 05:19:19 PM (4 years ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@07f8189a7c5bdbd0344edac212c63a7b956159f6

File:
1 edited

Legend:

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

    r11023 r11058  
    11.pattern-grid {
     2    display: grid;
     3    margin: 1.5rem 1.5rem 4rem;
    24    max-width: 960px;
    3     margin: 1.5rem;
     5    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
     6    gap: 1.5rem;
    47
    5     @include breakpoint( $breakpoint-small ) {
    6         display: grid;
    7         grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    8         gap: 1.5rem;
    9 
    10         > * {
    11             align-self: baseline;
    12         }
     8    > * {
     9        align-self: baseline;
    1310    }
    1411
     
    1916}
    2017
    21 .pattern-grid__pattern {
     18.pattern-grid__pattern-frame {
    2219    position: relative;
    23     margin: 0 0 1.5rem;
    24     border: 1px solid $color-gray-light-600;
     20    margin: 0;
     21    width: 100%;
     22    box-shadow: 0 0 0 1px color(gray-2);
    2523    border-radius: 2px;
    2624    transition: all 0.075s ease-in-out;
     
    3533    }
    3634
     35    .pattern-grid__status {
     36        position: absolute;
     37        top: 0.375rem;
     38        left: 0.375rem;
     39        padding: 0.5rem 0.75rem;
     40        border-radius: 2px;
     41        background: color(gray-40);
     42        color: $color-white;
     43        font-size: 0.6875rem;
     44        font-weight: 600;
     45        line-height: 1;
     46        text-transform: uppercase;
     47        pointer-events: none;
     48
     49        &.is-pending {
     50            background: color(yellow-20);
     51            color: $color-black;
     52        }
     53
     54        &.is-declined {
     55            background: color(red-50);
     56        }
     57    }
     58
    3759    .pattern-grid__actions {
    3860        position: absolute;
     
    4264        display: flex;
    4365        align-items: center;
     66        justify-content: flex-end;
    4467        padding: 0.375rem;
    45         background: rgba($color-white, 0.8);
    46         backdrop-filter: blur(3px);
    4768        opacity: 0;
    4869        transform: translateY(6px);
    49         transition: all 0.075s ease-in-out;
    50 
    51         .pattern-grid__title {
    52             flex-grow: 1;
    53             margin: 0;
    54             padding: 0 0.375rem 0 0.75rem;
    55             font-size: 0.75rem;
    56             pointer-events: none;
    57         }
    58 
    59         .pattern-favorite-button,
    60         .pattern-copy-button {
    61             flex-shrink: 0;
    62         }
     70        transition: transform 0.075s ease-in-out, opacity 0.075s ease-in-out;
    6371
    6472        .button + .components-button {
     
    7583    }
    7684}
     85
     86.pattern-grid__title {
     87    margin: 0.5rem 0;
     88    font-size: 0.875rem;
     89    font-weight: 600;
     90    color: color(gray-90);
     91
     92    a {
     93        color: currentColor;
     94    }
     95}
     96
     97.pattern-grid__meta {
     98    margin: 0.5rem 0;
     99    display: flex;
     100    gap: 1em;
     101    align-items: center;
     102}
     103
     104.pattern-grid__author-avatar,
     105.pattern-grid__favorite-count {
     106    display: flex;
     107    font-size: 0.875rem;
     108    line-height: 1;
     109    color: color(gray-90);
     110    text-decoration: none;
     111}
     112
     113.pattern-grid__author-avatar img {
     114    margin-right: 0.5rem;
     115    height: 1rem;
     116    width: 1rem;
     117    border-radius: 6px;
     118}
     119
     120.pattern-grid__favorite-count svg {
     121    margin-top: -1px;
     122    margin-bottom: 1px;
     123    margin-right: 0.25rem;
     124    height: 1rem;
     125    width: 1rem;
     126    fill: color(gray-40);
     127}
Note: See TracChangeset for help on using the changeset viewer.