Changeset 11058 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/css/components/_pattern-grid.scss
- Timestamp:
- 06/24/2021 05:19:19 PM (4 years ago)
- 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 1 1 .pattern-grid { 2 display: grid; 3 margin: 1.5rem 1.5rem 4rem; 2 4 max-width: 960px; 3 margin: 1.5rem; 5 grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); 6 gap: 1.5rem; 4 7 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; 13 10 } 14 11 … … 19 16 } 20 17 21 .pattern-grid__pattern {18 .pattern-grid__pattern-frame { 22 19 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); 25 23 border-radius: 2px; 26 24 transition: all 0.075s ease-in-out; … … 35 33 } 36 34 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 37 59 .pattern-grid__actions { 38 60 position: absolute; … … 42 64 display: flex; 43 65 align-items: center; 66 justify-content: flex-end; 44 67 padding: 0.375rem; 45 background: rgba($color-white, 0.8);46 backdrop-filter: blur(3px);47 68 opacity: 0; 48 69 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; 63 71 64 72 .button + .components-button { … … 75 83 } 76 84 } 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.