|
5 | 5 |
|
6 | 6 | .section { |
7 | 7 | border-top: 1px solid var(--border-sep); |
8 | | - min-height: 100vh; |
| 8 | + min-height: calc(100svh - var(--navbar-height)); |
9 | 9 | display: flex; |
10 | 10 | align-items: center; |
11 | 11 | justify-content: center; |
|
14 | 14 | position: relative; |
15 | 15 | } |
16 | 16 |
|
| 17 | +.section::before, |
| 18 | +.section::after { |
| 19 | + content: ''; |
| 20 | + position: absolute; |
| 21 | + width: 14px; |
| 22 | + height: 14px; |
| 23 | + border-color: var(--border-hover); |
| 24 | + border-style: solid; |
| 25 | + pointer-events: none; |
| 26 | +} |
| 27 | + |
| 28 | +.section::before { |
| 29 | + top: 4.5rem; |
| 30 | + left: 4.5rem; |
| 31 | + border-width: 1px 0 0 1px; |
| 32 | +} |
| 33 | + |
| 34 | +.section::after { |
| 35 | + bottom: 4.5rem; |
| 36 | + right: 4.5rem; |
| 37 | + border-width: 0 1px 1px 0; |
| 38 | +} |
| 39 | + |
| 40 | +/* top-right and bottom-left corners via the outer <section> wrapper */ |
| 41 | +section:has(.section), |
| 42 | +section:has(.intro-content), |
| 43 | +section:has(.about-content) { |
| 44 | + position: relative; |
| 45 | +} |
| 46 | + |
| 47 | +section:has(.section)::before, |
| 48 | +section:has(.intro-content)::before, |
| 49 | +section:has(.about-content)::before { |
| 50 | + content: ''; |
| 51 | + position: absolute; |
| 52 | + width: 14px; |
| 53 | + height: 14px; |
| 54 | + border-color: var(--border-hover); |
| 55 | + border-style: solid; |
| 56 | + pointer-events: none; |
| 57 | + top: 4.5rem; |
| 58 | + right: 4.5rem; |
| 59 | + border-width: 1px 1px 0 0; |
| 60 | +} |
| 61 | + |
| 62 | +section:has(.section)::after, |
| 63 | +section:has(.intro-content)::after, |
| 64 | +section:has(.about-content)::after { |
| 65 | + content: ''; |
| 66 | + position: absolute; |
| 67 | + width: 14px; |
| 68 | + height: 14px; |
| 69 | + border-color: var(--border-hover); |
| 70 | + border-style: solid; |
| 71 | + pointer-events: none; |
| 72 | + bottom: 4.5rem; |
| 73 | + left: 4.5rem; |
| 74 | + border-width: 0 0 1px 1px; |
| 75 | +} |
| 76 | + |
17 | 77 | .section-inner { |
18 | 78 | width: 100%; |
19 | 79 | max-width: 1200px; |
|
35 | 95 | gap: 1rem; |
36 | 96 | text-align: left; |
37 | 97 | align-items: flex-start; |
| 98 | + max-width: 52ch; |
38 | 99 | } |
39 | 100 |
|
40 | 101 | .viz-container .paragraph .section-badge { |
41 | | - font-size: 0.75rem; |
| 102 | + font-size: 0.75rem; |
42 | 103 | margin-bottom: 0.25rem; |
43 | 104 | justify-content: flex-start; |
44 | 105 | } |
45 | 106 |
|
| 107 | +.viz-container .paragraph p, |
| 108 | +.viz-container .paragraph .viz-title { |
| 109 | + width: 100%; |
| 110 | +} |
| 111 | + |
46 | 112 | .viz-container .paragraph p { |
47 | | - max-width: 55ch; |
48 | 113 | font-size: 0.95rem; |
49 | 114 | line-height: 1.8; |
50 | 115 | } |
|
61 | 126 | display: flex; |
62 | 127 | align-items: center; |
63 | 128 | justify-content: center; |
64 | | - transition: border-color 0.3s ease; |
| 129 | + transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; |
| 130 | + box-shadow: 0 0 24px -4px var(--glow-dim), 0 0 8px -2px var(--glow-dim); |
65 | 131 | } |
66 | 132 |
|
67 | 133 | /* center each grid child within its half */ |
|
77 | 143 | left: 50%; |
78 | 144 | top: 0; |
79 | 145 | bottom: 0; |
80 | | - width: 1px; |
81 | | - background: var(--border); |
| 146 | + width: 2px; |
| 147 | + background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent); |
82 | 148 | transform: translateX(-50%); |
83 | 149 | pointer-events: none; |
84 | 150 | } |
85 | 151 |
|
| 152 | +.widget::before { |
| 153 | + content: ''; |
| 154 | + position: absolute; |
| 155 | + top: 0; |
| 156 | + left: 15%; |
| 157 | + right: 15%; |
| 158 | + height: 1px; |
| 159 | + background: linear-gradient(90deg, transparent, var(--accent), transparent); |
| 160 | + opacity: 0.3; |
| 161 | + pointer-events: none; |
| 162 | + z-index: 1; |
| 163 | +} |
| 164 | + |
86 | 165 | .widget:hover { |
87 | 166 | border-color: var(--border-hover); |
| 167 | + background: var(--bg-elevated); |
| 168 | + box-shadow: 0 0 40px -4px var(--glow-dim), 0 0 20px -2px var(--glow-dim); |
| 169 | +} |
| 170 | + |
| 171 | +.widget:hover::before { |
| 172 | + opacity: 0.55; |
| 173 | + transition: opacity 0.3s ease; |
88 | 174 | } |
89 | 175 |
|
90 | 176 | .fullscreen-btn { |
|
109 | 195 |
|
110 | 196 | .viz-title { |
111 | 197 | font-size: clamp(1.25rem, 2.5vw, 1.75rem); |
112 | | - margin-bottom: 0.5rem; |
| 198 | + margin-bottom: 1.75rem; |
| 199 | + word-break: break-word; |
| 200 | + overflow-wrap: break-word; |
| 201 | + white-space: normal; |
| 202 | + position: relative; |
| 203 | +} |
| 204 | + |
| 205 | +.viz-title::after { |
| 206 | + content: ''; |
| 207 | + position: absolute; |
| 208 | + bottom: -0.75rem; |
| 209 | + left: 0; |
| 210 | + width: 2.5rem; |
| 211 | + height: 1px; |
| 212 | + background: var(--accent); |
| 213 | + opacity: 0.55; |
113 | 214 | } |
114 | 215 |
|
115 | 216 | .site-footer { |
|
130 | 231 | font-size: 0.8rem; |
131 | 232 | } |
132 | 233 |
|
133 | | -.widget:fullscreen, |
134 | | -.widget:-webkit-full-screen { |
135 | | - max-width: 100%; |
136 | | - width: 100%; |
137 | | - height: 100%; |
138 | | - border-radius: 0; |
139 | | - border: none; |
| 234 | +@keyframes widget-expand { |
| 235 | + from { opacity: 0; transform: scale(0.96); } |
| 236 | + to { opacity: 1; transform: scale(1); } |
| 237 | +} |
| 238 | + |
| 239 | +@keyframes widget-collapse { |
| 240 | + from { opacity: 1; transform: scale(1); } |
| 241 | + to { opacity: 0; transform: scale(0.96); } |
| 242 | +} |
| 243 | + |
| 244 | +.widget--fullscreen { |
| 245 | + position: fixed !important; |
| 246 | + inset: 0 !important; |
| 247 | + max-width: 100% !important; |
| 248 | + width: 100% !important; |
| 249 | + height: 100% !important; |
| 250 | + border-radius: 0 !important; |
| 251 | + border: none !important; |
| 252 | + z-index: 9999; |
140 | 253 | background: var(--bg); |
| 254 | + animation: widget-expand 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| 255 | +} |
| 256 | + |
| 257 | +.widget--fullscreen.widget--closing { |
| 258 | + animation: widget-collapse 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
141 | 259 | } |
142 | 260 |
|
143 | 261 | @media (max-width: 1024px) { |
|
0 commit comments