|
1 | 1 | /* ════════════════════════════════════════════════════════════════ |
2 | | - OSS PARTNERS — Card Grid Layout |
| 2 | + OSS PARTNERS — Tile Grid Layout |
3 | 3 | ════════════════════════════════════════════════════════════════ */ |
4 | 4 |
|
5 | 5 | /* ── Page layout ── */ |
6 | 6 | .page { |
7 | | - max-width: 1000px; |
| 7 | + max-width: 1200px; |
8 | 8 | margin: 0 auto; |
9 | 9 | padding: 4rem 2rem; |
10 | 10 | } |
|
27 | 27 | font-size: 1.1rem; |
28 | 28 | } |
29 | 29 |
|
30 | | -/* ── Card grid ── */ |
| 30 | +/* ── Tile grid: auto-fit, horizontally wrapping ── */ |
31 | 31 | .cardGrid { |
32 | 32 | display: grid; |
33 | | - grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); |
34 | | - gap: 2rem; |
| 33 | + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
| 34 | + gap: 1.5rem; |
35 | 35 | } |
36 | 36 |
|
37 | | -/* ── Individual card ── */ |
| 37 | +/* ── Individual tile ── */ |
38 | 38 | .card { |
39 | 39 | background: var(--ifm-card-background-color, #fff); |
40 | | - border: 3px solid var(--ifm-color-emphasis-300); |
41 | | - border-radius: 12px; |
42 | | - padding: 1.5rem; |
43 | | - box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08); |
44 | | - transition: all 0.3s ease; |
| 40 | + border: 2px solid var(--ifm-color-emphasis-300); |
| 41 | + border-radius: 16px; |
| 42 | + padding: 1.25rem; |
| 43 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); |
| 44 | + transition: all 0.25s ease; |
| 45 | + display: flex; |
| 46 | + flex-direction: column; |
45 | 47 | } |
46 | 48 |
|
47 | 49 | .card:hover { |
48 | | - transform: translate(-4px, -4px); |
49 | | - box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.12); |
| 50 | + transform: translateY(-6px); |
| 51 | + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); |
50 | 52 | border-color: var(--ifm-color-primary); |
51 | 53 | } |
52 | 54 |
|
53 | 55 | /* ── Card header: project name top-left + repo link ── */ |
54 | 56 | .cardHeader { |
55 | 57 | display: flex; |
56 | 58 | flex-direction: column; |
57 | | - gap: 0.25rem; |
58 | | - margin-bottom: 0.75rem; |
| 59 | + gap: 0.2rem; |
| 60 | + margin-bottom: 0.6rem; |
59 | 61 | } |
60 | 62 |
|
61 | 63 | .cardName { |
62 | | - font-size: 1.5rem; |
| 64 | + font-size: 1.1rem; |
63 | 65 | font-weight: 800; |
64 | 66 | margin: 0; |
65 | 67 | color: var(--ifm-color-primary-darkest); |
66 | 68 | font-family: 'Courier New', monospace; |
67 | 69 | } |
68 | 70 |
|
69 | 71 | .cardLink { |
70 | | - font-size: 0.85rem; |
| 72 | + font-size: 0.8rem; |
71 | 73 | color: var(--ifm-color-primary); |
72 | 74 | word-break: break-all; |
73 | 75 | display: inline-block; |
|
79 | 81 |
|
80 | 82 | /* ── Description ── */ |
81 | 83 | .cardDesc { |
82 | | - font-size: 0.95rem; |
83 | | - line-height: 1.6; |
| 84 | + font-size: 0.88rem; |
| 85 | + line-height: 1.55; |
84 | 86 | color: var(--ifm-color-emphasis-700); |
85 | 87 | margin: 0; |
| 88 | + flex: 1; |
86 | 89 | } |
87 | 90 |
|
88 | 91 | /* ════════════════════════════════════════════════════════════════ |
|
91 | 94 | [data-theme='dark'] .card { |
92 | 95 | background: var(--ifm-background-surface-color); |
93 | 96 | border-color: rgba(93, 173, 226, 0.25); |
94 | | - box-shadow: 6px 6px 0 rgba(93, 173, 226, 0.1); |
| 97 | + box-shadow: 0 4px 12px rgba(93, 173, 226, 0.08); |
95 | 98 | } |
96 | 99 |
|
97 | 100 | [data-theme='dark'] .card:hover { |
98 | | - box-shadow: 10px 10px 0 rgba(93, 173, 226, 0.2); |
| 101 | + box-shadow: 0 8px 24px rgba(93, 173, 226, 0.18); |
99 | 102 | border-color: var(--ifm-color-primary); |
100 | 103 | } |
101 | 104 |
|
|
0 commit comments