|
| 1 | +.catalog-hero { |
| 2 | + --color-catalog-hero-bg: var(--color-gray-darken-10); |
| 3 | + --color-catalog-hero-bg-transparent: var(--color-gray-darken-10-transparent); |
| 4 | + --color-catalog-hero-explore: var(--color-green-4); |
| 5 | + --color-catalog-hero-discover: var(--color-blue-4); |
| 6 | + --color-catalog-hero-share: var(--color-purple-4); |
| 7 | + |
| 8 | + display: flex; |
| 9 | + flex: 1; |
| 10 | + height: 100%; |
| 11 | + background-image: linear-gradient( |
| 12 | + to bottom, |
| 13 | + var(--color-catalog-hero-bg), |
| 14 | + var(--color-catalog-hero-bg-transparent) |
| 15 | + ), |
| 16 | + url("../../../img/circle-grid-color.svg"); |
| 17 | + background-repeat: no-repeat; |
| 18 | + background-position: center center; |
| 19 | + background-size: cover; |
| 20 | + justify-content: center; |
| 21 | + align-items: center; |
| 22 | +} |
| 23 | + |
| 24 | +.catalog-hero:after { |
| 25 | + position: absolute; |
| 26 | + top: 0; |
| 27 | + bottom: 0; |
| 28 | + left: 0; |
| 29 | + right: 0; |
| 30 | + content: " "; |
| 31 | + background: var(--color-catalog-hero-bg); |
| 32 | + opacity: 0.9; |
| 33 | + z-index: var(--layer-beneath); |
| 34 | +} |
| 35 | + |
1 | 36 | .catalog-hero h1 {
|
| 37 | + position: relative; |
| 38 | + z-index: var(--layer-base); |
2 | 39 | font-size: 2.375rem;
|
3 | 40 | font-weight: normal;
|
4 | 41 | text-align: center;
|
| 42 | + margin-bottom: 1.375rem; |
5 | 43 | }
|
6 | 44 |
|
7 | 45 | .catalog-hero h1 .explore {
|
8 |
| - color: var(--color-green-4); |
| 46 | + color: var(--color-catalog-hero-explore); |
9 | 47 | }
|
10 | 48 |
|
11 | 49 | .catalog-hero h1 .discover {
|
12 |
| - color: var(--color-blue-4); |
| 50 | + color: var(--color-catalog-hero-discover); |
13 | 51 | }
|
14 | 52 |
|
15 | 53 | .catalog-hero h1 .share {
|
16 |
| - color: var(--color-purple-4); |
| 54 | + color: var(--color-catalog-hero-share); |
17 | 55 | }
|
18 | 56 |
|
19 | 57 | .catalog-hero .catalog-search {
|
|
24 | 62 | border-radius: var(--border-radius-base);
|
25 | 63 | position: absolute;
|
26 | 64 | bottom: -1.75rem;
|
27 |
| - border: 2px solid var(--color-gray-darken-10); |
28 |
| - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); |
| 65 | + border: 2px solid var(--color-catalog-hero-bg); |
| 66 | + box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); |
29 | 67 | display: flex;
|
30 | 68 | flex-direction: row;
|
31 | 69 | align-items: center;
|
32 |
| - padding: 1rem; |
| 70 | + padding: 1rem 0 1rem 1rem; |
33 | 71 | left: 50%;
|
34 | 72 | transform: translateX(-50%);
|
| 73 | + z-index: var(--layer-base); |
| 74 | + transition: all 0.2s; |
35 | 75 | }
|
36 | 76 | .catalog-hero .catalog-search input {
|
37 | 77 | width: 100%;
|
38 |
| - height: 1.5rem; |
| 78 | + height: calc(3.5rem - 4px); |
39 | 79 | margin-left: 0.75rem;
|
40 | 80 | font-size: 1.125rem;
|
| 81 | + border-radius: var(--border-radius-base); |
41 | 82 | }
|
42 | 83 | .catalog-hero .catalog-search input:focus {
|
43 | 84 | outline: none;
|
44 | 85 | }
|
| 86 | +.catalog-hero .catalog-search:focus-within { |
| 87 | + border-color: var(--color-main-focus-fg); |
| 88 | + box-shadow: 0 0 0 2px var(--color-main-focus-outline); |
| 89 | +} |
45 | 90 |
|
46 | 91 | .catalog-hero .catalog-search .icon {
|
47 | 92 | font-size: 1.5rem;
|
48 |
| - color: var(--color-gray-lighten-30); |
| 93 | + color: var(--color-main-subtle-fg); |
49 | 94 | }
|
50 | 95 |
|
51 | 96 | .categories {
|
|
0 commit comments