Making WordPress.org


Ignore:
Timestamp:
05/21/2021 09:20:18 PM (5 years ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@80f78394def119ebbf507adb69257be4c4253374

File:
1 edited

Legend:

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

    r10924 r10991  
    1 .category-context__bar {
     1.category-context-bar {
    22        margin: 0 $gutter-default;
    33        background: $color-gray-light-300;
    … …  
    55        font-size: 0.8125rem;
    66        overflow: auto;
    7         transition: all 100ms ease-out;
    8         transition-delay: 100ms;
     7        transition: all 300ms ease-out;
     8
     9        @media (prefers-reduced-motion) {
     10                transition: none;
     11        }
    912
    1013        > div {
    … …  
    1417        }
    1518
    16         @media only screen and (min-width: $breakpoint-medium) {
     19        @media only screen and ( min-width: $breakpoint-medium ) {
    1720                margin: 0 $gutter-default;
    1821        }
    1922
    20         @media only screen and (min-width: $breakpoint-large) {
     23        @media only screen and ( min-width: $breakpoint-large ) {
    2124                margin: 0 auto;
    2225                max-width: $size__site-main;
    … …  
    4447                }
    4548        }
     49}
    4650
    47         &__copy {
    48                 margin: 0;
    49                 padding: $gutter-default * 0.75 $gutter-default;
    50                 font-size: 0.8125rem;
    51                 font-weight: 400;
     51.category-context-bar__copy {
     52        display: flex;
     53        align-items: center;
     54
     55        margin: 0;
     56        padding: $gutter-default * 0.75 $gutter-default;
     57        font-size: 0.8125rem;
     58        font-weight: 400;
     59}
     60
     61.category-context-bar__title {
     62        margin: 0;
     63        padding-right: $gutter-default;
     64        color: $color__text;
     65        font-size: 0.75rem;
     66        font-weight: 400;
     67        text-transform: uppercase;
     68}
     69
     70.category-context-bar__links {
     71        display: flex;
     72        align-items: center;
     73
     74        @media only screen and ( max-width: $breakpoint-medium ) {
     75                display: none;
     76        }
     77}
     78
     79.category-context-bar__spinner {
     80        display: flex;
     81        width: 28px;
     82        margin: 0;
     83        transition: transform 100ms linear, width 150ms ease-out, opacity 50ms linear 50ms;
     84        transform: scale(1);
     85
     86        @media (prefers-reduced-motion) {
     87                transition: none;
    5288        }
    5389
    54         &__title {
     90        // @wordpress/components/spinner has default margin we don't need
     91        .components-spinner {
    5592                margin: 0;
    56                 padding-right: $gutter-default;
    57                 color: $color__text;
    58                 font-size: 0.75rem;
    59                 font-weight: 400;
    60                 text-transform: uppercase;
    61         }
    62 
    63         &__links {
    64                 display: flex;
    65                 align-items: center;
    66 
    67                 @media only screen and (max-width: $breakpoint-medium) {
    68                         display: none;
    69                 }
    70         }
    71 
    72         &--is-hidden {
    73                 height: 0;
    74                 overflow: hidden;
    7593        }
    7694}
     95
     96.category-context-bar__spinner--is-hidden {
     97        overflow: hidden;
     98        width: 0;
     99        opacity: 0;
     100        transform: scale(0);
     101}
Note: See TracChangeset for help on using the changeset viewer.