Changeset 10991 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/css/components/_category-context-bar.scss
- Timestamp:
- 05/21/2021 09:20:18 PM (5 years ago)
- 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 { 2 2 margin: 0 $gutter-default; 3 3 background: $color-gray-light-300; … … 5 5 font-size: 0.8125rem; 6 6 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 } 9 12 10 13 > div { … … 14 17 } 15 18 16 @media only screen and ( min-width: $breakpoint-medium) {19 @media only screen and ( min-width: $breakpoint-medium ) { 17 20 margin: 0 $gutter-default; 18 21 } 19 22 20 @media only screen and ( min-width: $breakpoint-large) {23 @media only screen and ( min-width: $breakpoint-large ) { 21 24 margin: 0 auto; 22 25 max-width: $size__site-main; … … 44 47 } 45 48 } 49 } 46 50 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; 52 88 } 53 89 54 &__title { 90 // @wordpress/components/spinner has default margin we don't need 91 .components-spinner { 55 92 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;75 93 } 76 94 } 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)