|
28 | 28 | line-height: 1.7; |
29 | 29 | } |
30 | 30 |
|
| 31 | +// ── Search ────────────────────────────────────────────────────────────────── |
| 32 | +.resources-search { |
| 33 | + position: relative; |
| 34 | + max-width: 640px; |
| 35 | + margin: 2.5rem auto 3rem; |
| 36 | +} |
| 37 | + |
| 38 | +.resources-search-input { |
| 39 | + width: 100%; |
| 40 | + padding: 0.875rem 7.5rem 0.875rem 1.25rem; |
| 41 | + font-size: 1rem; |
| 42 | + font-family: inherit; |
| 43 | + color: $off-white; |
| 44 | + background: $dark-card; |
| 45 | + border: 1px solid $dark-border; |
| 46 | + border-radius: 10px; |
| 47 | + transition: border-color 0.2s ease; |
| 48 | + |
| 49 | + &::placeholder { color: $muted; } |
| 50 | + |
| 51 | + &:focus { |
| 52 | + outline: none; |
| 53 | + border-color: rgba($accent, 0.45); |
| 54 | + } |
| 55 | +} |
| 56 | + |
| 57 | +.resources-search-btn { |
| 58 | + position: absolute; |
| 59 | + top: 6px; |
| 60 | + right: 6px; |
| 61 | + padding: 0.5rem 1.25rem; |
| 62 | +} |
| 63 | + |
| 64 | +.resources-search-results { |
| 65 | + position: absolute; |
| 66 | + top: calc(100% + 0.5rem); |
| 67 | + left: 0; |
| 68 | + right: 0; |
| 69 | + z-index: 10; |
| 70 | + background: $dark-card; |
| 71 | + border: 1px solid $dark-border; |
| 72 | + border-radius: 10px; |
| 73 | + box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); |
| 74 | + overflow: hidden; |
| 75 | + max-height: 400px; |
| 76 | + overflow-y: auto; |
| 77 | + text-align: left; |
| 78 | +} |
| 79 | + |
| 80 | +.resources-search-result { |
| 81 | + display: flex; |
| 82 | + flex-direction: column; |
| 83 | + gap: 0.15rem; |
| 84 | + padding: 0.75rem 1.25rem; |
| 85 | + text-decoration: none; |
| 86 | + border-bottom: 1px solid $dark-border; |
| 87 | + transition: background 0.15s ease; |
| 88 | + |
| 89 | + &:last-child { border-bottom: none; } |
| 90 | + &:hover { background: $dark-surface; } |
| 91 | +} |
| 92 | + |
| 93 | +.resources-search-result-category { |
| 94 | + font-size: 0.6875rem; |
| 95 | + font-weight: 700; |
| 96 | + letter-spacing: 0.06em; |
| 97 | + text-transform: uppercase; |
| 98 | + color: $accent; |
| 99 | +} |
| 100 | + |
| 101 | +.resources-search-result-title { |
| 102 | + font-size: 0.9375rem; |
| 103 | + font-weight: 600; |
| 104 | + color: $off-white; |
| 105 | +} |
| 106 | + |
| 107 | +.resources-search-result-desc { |
| 108 | + font-size: 0.8125rem; |
| 109 | + color: $muted; |
| 110 | + line-height: 1.5; |
| 111 | +} |
| 112 | + |
| 113 | +.resources-search-empty { |
| 114 | + padding: 1rem 1.25rem; |
| 115 | + font-size: 0.875rem; |
| 116 | + color: $muted; |
| 117 | + margin: 0; |
| 118 | + text-align: left; |
| 119 | +} |
| 120 | + |
| 121 | +.resources-category-header { |
| 122 | + margin-bottom: 2rem; |
| 123 | +} |
| 124 | + |
| 125 | +.resources-category-eyebrow { |
| 126 | + display: block; |
| 127 | + font-size: 0.75rem; |
| 128 | + font-weight: 700; |
| 129 | + letter-spacing: 0.08em; |
| 130 | + text-transform: uppercase; |
| 131 | + color: $accent; |
| 132 | + margin-bottom: 0.5rem; |
| 133 | +} |
| 134 | + |
| 135 | +.resources-category-title { |
| 136 | + font-size: 1.5rem; |
| 137 | + font-weight: 700; |
| 138 | + color: $off-white; |
| 139 | + margin: 0; |
| 140 | +} |
| 141 | + |
31 | 142 | // Hub category card grid |
32 | 143 | .resources-hub-grid { |
33 | 144 | display: grid; |
|
102 | 213 | padding: 0.2rem 0.6rem; |
103 | 214 | align-self: flex-start; |
104 | 215 | line-height: 1; |
| 216 | + |
| 217 | + &--label { |
| 218 | + text-transform: none; |
| 219 | + letter-spacing: 0; |
| 220 | + } |
| 221 | +} |
| 222 | + |
| 223 | +// ── Recently added ───────────────────────────────────────────────────────── |
| 224 | +.resources-recent { |
| 225 | + margin-top: 4rem; |
| 226 | +} |
| 227 | + |
| 228 | +.resources-recent-header { |
| 229 | + margin-bottom: 1.5rem; |
| 230 | + |
| 231 | + h2 { |
| 232 | + font-size: 1.5rem; |
| 233 | + font-weight: 700; |
| 234 | + color: $off-white; |
| 235 | + margin: 0.35rem 0 0; |
| 236 | + } |
| 237 | +} |
| 238 | + |
| 239 | +.resources-recent-eyebrow { |
| 240 | + font-size: 0.75rem; |
| 241 | + font-weight: 700; |
| 242 | + letter-spacing: 0.08em; |
| 243 | + text-transform: uppercase; |
| 244 | + color: $accent; |
| 245 | +} |
| 246 | + |
| 247 | +.resources-recent-grid { |
| 248 | + display: grid; |
| 249 | + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); |
| 250 | + gap: 1.25rem; |
| 251 | + |
| 252 | + @media (min-width: $break-lg) { |
| 253 | + grid-template-columns: repeat(3, 1fr); |
| 254 | + } |
| 255 | +} |
| 256 | + |
| 257 | +.resource-recent-card { |
| 258 | + text-decoration: none; |
| 259 | + color: inherit; |
| 260 | +} |
| 261 | + |
| 262 | +.resources-recent-card-category { |
| 263 | + display: block; |
| 264 | + font-size: 0.6875rem; |
| 265 | + font-weight: 700; |
| 266 | + letter-spacing: 0.06em; |
| 267 | + text-transform: uppercase; |
| 268 | + color: $accent; |
| 269 | + margin-bottom: 0.5rem; |
| 270 | +} |
| 271 | + |
| 272 | +// ── Bottom CTA ────────────────────────────────────────────────────────────── |
| 273 | +.resources-cta-row { |
| 274 | + display: grid; |
| 275 | + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); |
| 276 | + gap: 1.25rem; |
| 277 | + margin-top: 4rem; |
| 278 | +} |
| 279 | + |
| 280 | +.resources-cta-card { |
| 281 | + padding: 2rem; |
| 282 | + background: $dark-card; |
| 283 | + border: 1px solid $dark-border; |
| 284 | + border-radius: 12px; |
| 285 | + |
| 286 | + h3 { |
| 287 | + font-size: 1.125rem; |
| 288 | + font-weight: 600; |
| 289 | + color: $off-white; |
| 290 | + margin: 0 0 0.5rem; |
| 291 | + } |
| 292 | + |
| 293 | + p { |
| 294 | + font-size: 0.9375rem; |
| 295 | + color: $muted; |
| 296 | + line-height: 1.6; |
| 297 | + margin: 0 0 1.5rem; |
| 298 | + } |
| 299 | + |
| 300 | + &--primary { |
| 301 | + border-color: rgba($accent, 0.3); |
| 302 | + background: linear-gradient(180deg, rgba($accent, 0.06), $dark-card 60%); |
| 303 | + } |
105 | 304 | } |
106 | 305 |
|
107 | 306 | // ── Subsection list page ─────────────────────────────────────────────────── |
|
640 | 839 | padding-right: 1rem; |
641 | 840 | } |
642 | 841 |
|
643 | | - .resources-hub-grid { |
| 842 | + .resources-hub-grid, |
| 843 | + .resources-recent-grid, |
| 844 | + .resources-cta-row { |
644 | 845 | grid-template-columns: 1fr; |
645 | 846 | } |
646 | 847 |
|
647 | 848 | .resources-list-grid { |
648 | 849 | grid-template-columns: 1fr; |
649 | 850 | } |
650 | 851 |
|
| 852 | + .resources-search-input { |
| 853 | + padding-right: 1.25rem; |
| 854 | + } |
| 855 | + |
| 856 | + .resources-search-btn { |
| 857 | + position: static; |
| 858 | + display: block; |
| 859 | + width: 100%; |
| 860 | + margin-top: 0.75rem; |
| 861 | + } |
| 862 | + |
651 | 863 | .resource-single-card { |
652 | 864 | padding: 1.5rem; |
653 | 865 | } |
|
672 | 884 | } |
673 | 885 | } |
674 | 886 |
|
675 | | -.resources-hub-actions { |
676 | | - text-align: right; |
677 | | - margin-bottom: 1.5rem; |
678 | | -} |
679 | 887 |
|
680 | 888 | // ── Contribute page ───────────────────────────────────────────────────────── |
681 | 889 | .contribute-page { |
|
0 commit comments