| @@ -0,0 +1,668 @@ |
| 1 | <script setup lang="ts"> |
| 2 | import { |
| 3 | computed, |
| 4 | nextTick, |
| 5 | onBeforeUnmount, |
| 6 | onMounted, |
| 7 | ref, |
| 8 | watch |
| 9 | } from 'vue' |
| 10 | import { data as platformMap } from './platforms.data' |
| 11 | |
| 12 | interface Repo { |
| 13 | name: string |
| 14 | icon: string | null |
| 15 | href: string | null |
| 16 | } |
| 17 | |
| 18 | interface AppEntry { |
| 19 | id: string |
| 20 | name: string |
| 21 | platforms: string[] |
| 22 | icon: string | null |
| 23 | repos: string[] |
| 24 | notes: string[] |
| 25 | } |
| 26 | |
| 27 | interface Payload { |
| 28 | version: number |
| 29 | repos: Record<string, Repo> |
| 30 | apps: AppEntry[] |
| 31 | } |
| 32 | |
| 33 | const DEFAULT_SRC = 'https://wotaku-ext.duckling.workers.dev/data.json' |
| 34 | const CACHE_KEY = 'wotaku:crossapp:v1' |
| 35 | const CACHE_TTL_MS = 5 * 60 * 1000 |
| 36 | const FETCH_TIMEOUT_MS = 10000 |
| 37 | |
| 38 | const props = withDefaults(defineProps<{ src?: string }>(), { |
| 39 | src: DEFAULT_SRC |
| 40 | }) |
| 41 | |
| 42 | const payload = ref<Payload | null>(null) |
| 43 | const loading = ref(true) |
| 44 | const failed = ref(false) |
| 45 | const openId = ref<string | null>(null) |
| 46 | const brokenIcons = ref(new Set<string>()) |
| 47 | const brokenRepoIcons = ref(new Set<string>()) |
| 48 | const gridRef = ref<HTMLElement | null>(null) |
| 49 | const columnCount = ref(1) |
| 50 | |
| 51 | const apps = computed(() => payload.value?.apps ?? []) |
| 52 | const openApp = computed(() => |
| 53 | apps.value.find(app => app.id === openId.value) ?? null |
| 54 | ) |
| 55 | |
| 56 | const openRepos = computed(() => { |
| 57 | if (!openApp.value || !payload.value) return [] |
| 58 | return openApp.value.repos |
| 59 | .map(id => payload.value!.repos[id]) |
| 60 | .filter((repo): repo is Repo => Boolean(repo)) |
| 61 | }) |
| 62 | |
| 63 | const openRowEnd = computed(() => { |
| 64 | const app = openApp.value |
| 65 | if (!app) return -1 |
| 66 | const index = apps.value.findIndex(item => item.id === app.id) |
| 67 | if (index < 0) return -1 |
| 68 | const cols = Math.max(1, columnCount.value) |
| 69 | return Math.min(Math.floor(index / cols) * cols + cols, apps.value.length) - 1 |
| 70 | }) |
| 71 | |
| 72 | function syncColumns() { |
| 73 | const el = gridRef.value |
| 74 | if (!el) return |
| 75 | const tracks = getComputedStyle(el).gridTemplateColumns |
| 76 | const count = tracks && tracks !== 'none' ? tracks.split(' ').filter(Boolean).length : 1 |
| 77 | if (count > 0) columnCount.value = count |
| 78 | } |
| 79 | |
| 80 | function platformInfo(token: string) { |
| 81 | return platformMap[token] ?? { icon: 'lucide-monitor', label: token } |
| 82 | } |
| 83 | |
| 84 | function iconUrl(path: string) { |
| 85 | try { |
| 86 | return new URL(path, props.src).toString() |
| 87 | } catch { |
| 88 | return path |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | function readCache(): Payload | null { |
| 93 | try { |
| 94 | const raw = sessionStorage.getItem(CACHE_KEY) |
| 95 | if (!raw) return null |
| 96 | const cached = JSON.parse(raw) as { at: number; data: Payload } |
| 97 | if (!cached?.data || Date.now() - cached.at > CACHE_TTL_MS) return null |
| 98 | return cached.data |
| 99 | } catch { |
| 100 | return null |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | function writeCache(data: Payload) { |
| 105 | try { |
| 106 | sessionStorage.setItem(CACHE_KEY, JSON.stringify({ at: Date.now(), data })) |
| 107 | } catch {} |
| 108 | } |
| 109 | |
| 110 | let inFlight = false |
| 111 | |
| 112 | async function load(force = false) { |
| 113 | if (inFlight) return |
| 114 | inFlight = true |
| 115 | loading.value = true |
| 116 | failed.value = false |
| 117 | |
| 118 | if (!force) { |
| 119 | const cached = readCache() |
| 120 | if (cached) { |
| 121 | payload.value = cached |
| 122 | loading.value = false |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | const controller = new AbortController() |
| 127 | const timer = setTimeout(() => controller.abort(), FETCH_TIMEOUT_MS) |
| 128 | try { |
| 129 | const response = await fetch(props.src, { |
| 130 | signal: controller.signal, |
| 131 | cache: 'no-cache' |
| 132 | }) |
| 133 | if (!response.ok) { |
| 134 | throw new Error(`${response.status} ${response.statusText}`) |
| 135 | } |
| 136 | const data = (await response.json()) as Payload |
| 137 | if (!Array.isArray(data?.apps)) throw new Error('invalid payload') |
| 138 | payload.value = data |
| 139 | writeCache(data) |
| 140 | } catch { |
| 141 | if (!payload.value) failed.value = true |
| 142 | } finally { |
| 143 | clearTimeout(timer) |
| 144 | loading.value = false |
| 145 | inFlight = false |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | function toggle(id: string) { |
| 150 | openId.value = openId.value === id ? null : id |
| 151 | if (!openId.value) return |
| 152 | void nextTick(() => { |
| 153 | const panel = gridRef.value?.querySelector<HTMLElement>('.ca-panel') |
| 154 | if (!panel) return |
| 155 | const rect = panel.getBoundingClientRect() |
| 156 | if (rect.bottom > window.innerHeight || rect.top < 0) { |
| 157 | panel.scrollIntoView({ block: 'nearest', behavior: 'smooth' }) |
| 158 | } |
| 159 | }) |
| 160 | } |
| 161 | |
| 162 | function onIconError(id: string) { |
| 163 | brokenIcons.value = new Set(brokenIcons.value).add(id) |
| 164 | } |
| 165 | |
| 166 | function onRepoIconError(name: string) { |
| 167 | brokenRepoIcons.value = new Set(brokenRepoIcons.value).add(name) |
| 168 | } |
| 169 | |
| 170 | let resizeObserver: ResizeObserver | null = null |
| 171 | |
| 172 | onMounted(() => { |
| 173 | void load() |
| 174 | void nextTick(syncColumns) |
| 175 | if (typeof ResizeObserver !== 'undefined') { |
| 176 | resizeObserver = new ResizeObserver(syncColumns) |
| 177 | if (gridRef.value) resizeObserver.observe(gridRef.value) |
| 178 | } |
| 179 | }) |
| 180 | |
| 181 | watch(apps, () => { |
| 182 | void nextTick(() => { |
| 183 | syncColumns() |
| 184 | if (resizeObserver) { |
| 185 | resizeObserver.disconnect() |
| 186 | if (gridRef.value) resizeObserver.observe(gridRef.value) |
| 187 | } |
| 188 | }) |
| 189 | }) |
| 190 | |
| 191 | onBeforeUnmount(() => resizeObserver?.disconnect()) |
| 192 | </script> |
| 193 | |
| 194 | <template> |
| 195 | <div class="ca-root" @keydown.esc="openId = null"> |
| 196 | <div v-if="loading && !apps.length" class="ca-box" aria-busy="true"> |
| 197 | <div class="ca-grid"> |
| 198 | <div v-for="n in 8" :key="n" class="ca-app ca-skeleton"> |
| 199 | <span class="ca-sk-row"> |
| 200 | <span class="ca-sk-icon" /> |
| 201 | <span class="ca-sk-line" /> |
| 202 | </span> |
| 203 | <span class="ca-sk-line short" /> |
| 204 | </div> |
| 205 | </div> |
| 206 | </div> |
| 207 | |
| 208 | <div v-else-if="failed && !apps.length" class="ca-error" role="status"> |
| 209 | <span>Couldn't load cross-app support.</span> |
| 210 | <button type="button" @click="load(true)">Retry</button> |
| 211 | </div> |
| 212 | |
| 213 | <template v-else> |
| 214 | <div class="ca-box"> |
| 215 | <div ref="gridRef" class="ca-grid"> |
| 216 | <template v-for="(app, index) in apps" :key="app.id"> |
| 217 | <button |
| 218 | type="button" |
| 219 | class="ca-app" |
| 220 | :class="{ |
| 221 | 'is-open': openId === app.id, |
| 222 | 'is-dimmed': openId && openId !== app.id |
| 223 | }" |
| 224 | :aria-expanded="openId === app.id" |
| 225 | :aria-controls="openId === app.id ? 'ca-panel' : undefined" |
| 226 | @click="toggle(app.id)" |
| 227 | > |
| 228 | <span class="ca-app-row"> |
| 229 | <span class="ca-app-icon"> |
| 230 | <span class="ca-app-mono">{{ app.name.charAt(0) }}</span> |
| 231 | <img |
| 232 | v-if="app.icon && !brokenIcons.has(app.id)" |
| 233 | class="ca-app-img no-zoom" |
| 234 | :src="iconUrl(app.icon)" |
| 235 | alt="" |
| 236 | loading="lazy" |
| 237 | decoding="async" |
| 238 | @error="onIconError(app.id)" |
| 239 | /> |
| 240 | </span> |
| 241 | <span class="ca-app-name" :title="app.name">{{ app.name }}</span> |
| 242 | <span v-if="app.platforms.length" class="ca-app-platforms"> |
| 243 | <span |
| 244 | v-for="token in app.platforms" |
| 245 | :key="token" |
| 246 | class="icon-tip ca-platform" |
| 247 | :data-tip="platformInfo(token).label" |
| 248 | > |
| 249 | <span :class="`i-${platformInfo(token).icon}`" /> |
| 250 | </span> |
| 251 | </span> |
| 252 | </span> |
| 253 | <span class="ca-app-sub"> |
| 254 | {{ app.repos.length }} |
| 255 | {{ app.repos.length === 1 ? 'type' : 'types' }} |
| 256 | </span> |
| 257 | </button> |
| 258 | |
| 259 | <section |
| 260 | v-if="openApp && index === openRowEnd" |
| 261 | id="ca-panel" |
| 262 | class="ca-panel" |
| 263 | role="region" |
| 264 | :aria-label="`${openApp.name} supported repos`" |
| 265 | > |
| 266 | <header class="ca-panel-head"> |
| 267 | <h3 class="ca-panel-title">{{ openApp.name }}</h3> |
| 268 | <button |
| 269 | type="button" |
| 270 | class="ca-panel-close" |
| 271 | aria-label="Close" |
| 272 | @click="openId = null" |
| 273 | > |
| 274 | <svg |
| 275 | xmlns="http://www.w3.org/2000/svg" |
| 276 | width="16" |
| 277 | height="16" |
| 278 | viewBox="0 0 24 24" |
| 279 | aria-hidden="true" |
| 280 | > |
| 281 | <path |
| 282 | fill="currentColor" |
| 283 | d="M6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12 19 6.4 17.6 5 12 10.6z" |
| 284 | /> |
| 285 | </svg> |
| 286 | </button> |
| 287 | </header> |
| 288 | |
| 289 | <ul v-if="openApp.notes.length" class="ca-notes"> |
| 290 | <li v-for="note in openApp.notes" :key="note">{{ note }}</li> |
| 291 | </ul> |
| 292 | |
| 293 | <div class="ca-repos"> |
| 294 | <component |
| 295 | :is="repo.href ? 'a' : 'div'" |
| 296 | v-for="repo in openRepos" |
| 297 | :key="repo.name" |
| 298 | class="ca-repo" |
| 299 | :class="{ 'is-disabled': !repo.href }" |
| 300 | :href="repo.href ?? undefined" |
| 301 | :title="repo.href ? repo.name : 'No page yet'" |
| 302 | > |
| 303 | <span class="ca-repo-icon"> |
| 304 | <span class="ca-repo-mono">{{ repo.name.charAt(0) }}</span> |
| 305 | <img |
| 306 | v-if="repo.icon && !brokenRepoIcons.has(repo.name)" |
| 307 | class="ca-repo-img no-zoom" |
| 308 | :src="iconUrl(repo.icon)" |
| 309 | alt="" |
| 310 | loading="lazy" |
| 311 | decoding="async" |
| 312 | @error="onRepoIconError(repo.name)" |
| 313 | /> |
| 314 | </span> |
| 315 | <span class="ca-repo-name">{{ repo.name }}</span> |
| 316 | </component> |
| 317 | </div> |
| 318 | </section> |
| 319 | </template> |
| 320 | </div> |
| 321 | </div> |
| 322 | </template> |
| 323 | </div> |
| 324 | </template> |
| 325 | |
| 326 | <style scoped> |
| 327 | .ca-root { |
| 328 | margin: 16px 0; |
| 329 | } |
| 330 | |
| 331 | .ca-box { |
| 332 | padding: 8px; |
| 333 | border: 2px solid #3d3d3d; |
| 334 | border-radius: var(--radius-xl, 12px); |
| 335 | background-color: var(--vp-c-bg); |
| 336 | } |
| 337 | |
| 338 | .ca-grid { |
| 339 | display: grid; |
| 340 | grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); |
| 341 | gap: 6px; |
| 342 | } |
| 343 | |
| 344 | .ca-app { |
| 345 | display: flex; |
| 346 | flex-direction: column; |
| 347 | gap: 0; |
| 348 | padding: 6px; |
| 349 | border: 1.5px solid #3d3d3d; |
| 350 | border-radius: 6px; |
| 351 | background-color: var(--vp-c-bg-soft); |
| 352 | color: var(--vp-c-text-1); |
| 353 | text-align: left; |
| 354 | cursor: pointer; |
| 355 | transition: border-color 0.2s, background-color 0.2s, opacity 0.2s; |
| 356 | } |
| 357 | |
| 358 | .ca-app.is-dimmed { |
| 359 | opacity: 0.45; |
| 360 | } |
| 361 | |
| 362 | .ca-app.is-dimmed:hover, |
| 363 | .ca-app.is-dimmed:focus-visible { |
| 364 | opacity: 0.85; |
| 365 | } |
| 366 | |
| 367 | .ca-app:hover { |
| 368 | border-color: var(--vp-c-brand-1); |
| 369 | background-color: var(--vp-c-bg); |
| 370 | } |
| 371 | |
| 372 | .ca-app:focus-visible { |
| 373 | outline: 2px solid var(--vp-c-brand-1); |
| 374 | outline-offset: 2px; |
| 375 | } |
| 376 | |
| 377 | .ca-app.is-open { |
| 378 | border-color: var(--vp-c-brand-1); |
| 379 | background-color: var(--vp-c-bg); |
| 380 | } |
| 381 | |
| 382 | .ca-app-row { |
| 383 | display: flex; |
| 384 | align-items: center; |
| 385 | gap: 6px; |
| 386 | min-width: 0; |
| 387 | } |
| 388 | |
| 389 | .ca-app-icon { |
| 390 | position: relative; |
| 391 | display: flex; |
| 392 | align-items: center; |
| 393 | justify-content: center; |
| 394 | flex-shrink: 0; |
| 395 | width: 18px; |
| 396 | height: 18px; |
| 397 | border-radius: 4px; |
| 398 | overflow: hidden; |
| 399 | background-color: var(--vp-c-bg-alt); |
| 400 | } |
| 401 | |
| 402 | .ca-app-img { |
| 403 | position: absolute; |
| 404 | inset: 0; |
| 405 | width: 18px; |
| 406 | height: 18px; |
| 407 | object-fit: contain; |
| 408 | background-color: var(--vp-c-bg-alt); |
| 409 | } |
| 410 | |
| 411 | .ca-app-mono { |
| 412 | font-size: 10px; |
| 413 | font-weight: 700; |
| 414 | line-height: 1; |
| 415 | color: var(--vp-c-text-2); |
| 416 | } |
| 417 | |
| 418 | .ca-app-name { |
| 419 | flex: 1 1 auto; |
| 420 | min-width: 0; |
| 421 | font-size: 12.5px; |
| 422 | font-weight: 600; |
| 423 | line-height: 1.2; |
| 424 | white-space: nowrap; |
| 425 | overflow: hidden; |
| 426 | text-overflow: ellipsis; |
| 427 | } |
| 428 | |
| 429 | .ca-app-platforms { |
| 430 | display: flex; |
| 431 | align-items: center; |
| 432 | gap: 1px; |
| 433 | flex-shrink: 0; |
| 434 | font-size: 12px; |
| 435 | line-height: 1; |
| 436 | color: var(--vp-c-text-2); |
| 437 | } |
| 438 | |
| 439 | .ca-platform { |
| 440 | line-height: 1; |
| 441 | } |
| 442 | |
| 443 | .ca-platform > span { |
| 444 | min-width: 0; |
| 445 | width: 13px; |
| 446 | height: 13px; |
| 447 | font-size: 13px; |
| 448 | line-height: 1; |
| 449 | } |
| 450 | |
| 451 | .ca-app-sub { |
| 452 | display: block; |
| 453 | padding-left: 24px; |
| 454 | font-size: 10.5px; |
| 455 | font-weight: 400; |
| 456 | line-height: 1.1; |
| 457 | color: var(--vp-c-text-2); |
| 458 | white-space: nowrap; |
| 459 | overflow: hidden; |
| 460 | text-overflow: ellipsis; |
| 461 | } |
| 462 | |
| 463 | .ca-panel { |
| 464 | grid-column: 1 / -1; |
| 465 | padding: 8px; |
| 466 | border: 1.5px solid var(--vp-c-brand-1); |
| 467 | border-radius: 10px; |
| 468 | background-color: var(--vp-c-bg); |
| 469 | animation: ca-panel-in 0.18s ease-out; |
| 470 | } |
| 471 | |
| 472 | @keyframes ca-panel-in { |
| 473 | from { |
| 474 | opacity: 0; |
| 475 | transform: translateY(-4px); |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | .ca-panel-head { |
| 480 | display: flex; |
| 481 | align-items: center; |
| 482 | justify-content: space-between; |
| 483 | gap: 8px; |
| 484 | padding: 2px 4px 0; |
| 485 | } |
| 486 | |
| 487 | .ca-panel-title { |
| 488 | margin: 0; |
| 489 | padding: 0; |
| 490 | border: none; |
| 491 | font-size: 13px; |
| 492 | font-weight: 600; |
| 493 | line-height: 1.4; |
| 494 | text-decoration: none; |
| 495 | } |
| 496 | |
| 497 | .ca-panel-close { |
| 498 | display: flex; |
| 499 | align-items: center; |
| 500 | justify-content: center; |
| 501 | width: 26px; |
| 502 | height: 26px; |
| 503 | padding: 0; |
| 504 | border: none; |
| 505 | border-radius: 6px; |
| 506 | background: transparent; |
| 507 | color: var(--vp-c-text-2); |
| 508 | cursor: pointer; |
| 509 | transition: background-color 0.2s, color 0.2s; |
| 510 | } |
| 511 | |
| 512 | .ca-panel-close:hover { |
| 513 | background-color: var(--vp-c-bg-alt); |
| 514 | color: var(--vp-c-text-1); |
| 515 | } |
| 516 | |
| 517 | .ca-notes { |
| 518 | margin: 8px 4px 0; |
| 519 | padding: 8px 10px 8px 24px; |
| 520 | border: 1px solid var(--vp-custom-block-warning-border); |
| 521 | border-radius: 8px; |
| 522 | background-color: var(--vp-custom-block-warning-bg); |
| 523 | color: var(--vp-custom-block-warning-text); |
| 524 | font-size: 12px; |
| 525 | line-height: 1.5; |
| 526 | } |
| 527 | |
| 528 | .ca-notes li + li { |
| 529 | margin-top: 2px; |
| 530 | } |
| 531 | |
| 532 | .ca-repos { |
| 533 | display: grid; |
| 534 | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); |
| 535 | gap: 6px; |
| 536 | margin-top: 8px; |
| 537 | padding: 0 4px 4px; |
| 538 | } |
| 539 | |
| 540 | .ca-repo { |
| 541 | display: flex; |
| 542 | align-items: center; |
| 543 | justify-content: flex-start; |
| 544 | min-height: 32px; |
| 545 | padding: 6px 8px; |
| 546 | border: 1.5px solid #3d3d3d; |
| 547 | border-radius: 6px; |
| 548 | background-color: var(--vp-c-bg-soft); |
| 549 | color: var(--vp-c-text-1); |
| 550 | text-align: left; |
| 551 | text-decoration: none !important; |
| 552 | transition: border-color 0.2s, background-color 0.2s; |
| 553 | } |
| 554 | |
| 555 | .ca-repo:hover { |
| 556 | border-color: var(--vp-c-brand-1); |
| 557 | background-color: var(--vp-c-bg); |
| 558 | } |
| 559 | |
| 560 | .ca-repo.is-disabled { |
| 561 | opacity: 0.55; |
| 562 | } |
| 563 | |
| 564 | .ca-repo-name { |
| 565 | font-size: 12.5px; |
| 566 | font-weight: 600; |
| 567 | line-height: 1.2; |
| 568 | color: var(--vp-c-text-1); |
| 569 | white-space: nowrap; |
| 570 | overflow: hidden; |
| 571 | text-overflow: ellipsis; |
| 572 | } |
| 573 | |
| 574 | .ca-repo-icon { |
| 575 | position: relative; |
| 576 | display: flex; |
| 577 | align-items: center; |
| 578 | justify-content: center; |
| 579 | flex-shrink: 0; |
| 580 | width: 18px; |
| 581 | height: 18px; |
| 582 | margin-right: 6px; |
| 583 | border-radius: 4px; |
| 584 | overflow: hidden; |
| 585 | background-color: var(--vp-c-bg-alt); |
| 586 | } |
| 587 | |
| 588 | .ca-repo-img { |
| 589 | position: absolute; |
| 590 | inset: 0; |
| 591 | width: 18px; |
| 592 | height: 18px; |
| 593 | object-fit: contain; |
| 594 | background-color: var(--vp-c-bg-alt); |
| 595 | } |
| 596 | |
| 597 | .ca-repo-mono { |
| 598 | font-size: 10px; |
| 599 | font-weight: 700; |
| 600 | line-height: 1; |
| 601 | color: var(--vp-c-text-2); |
| 602 | } |
| 603 | |
| 604 | .ca-error { |
| 605 | display: flex; |
| 606 | align-items: center; |
| 607 | gap: 10px; |
| 608 | padding: 14px; |
| 609 | border: 1px solid var(--vp-c-divider); |
| 610 | border-radius: var(--radius-xl, 12px); |
| 611 | background-color: var(--vp-c-bg-soft); |
| 612 | font-size: 13px; |
| 613 | color: var(--vp-c-text-2); |
| 614 | } |
| 615 | |
| 616 | .ca-error button { |
| 617 | padding: 4px 10px; |
| 618 | border: 1px solid var(--vp-c-divider); |
| 619 | border-radius: 6px; |
| 620 | background-color: var(--vp-c-bg); |
| 621 | color: var(--vp-c-text-1); |
| 622 | font-size: 12px; |
| 623 | cursor: pointer; |
| 624 | } |
| 625 | |
| 626 | .ca-skeleton { |
| 627 | cursor: default; |
| 628 | } |
| 629 | |
| 630 | .ca-sk-row { |
| 631 | display: flex; |
| 632 | align-items: center; |
| 633 | gap: 6px; |
| 634 | } |
| 635 | |
| 636 | .ca-sk-icon { |
| 637 | flex-shrink: 0; |
| 638 | width: 18px; |
| 639 | height: 18px; |
| 640 | border-radius: 4px; |
| 641 | background-color: var(--vp-c-bg-alt); |
| 642 | } |
| 643 | |
| 644 | .ca-sk-line { |
| 645 | flex: 1; |
| 646 | height: 9px; |
| 647 | border-radius: 3px; |
| 648 | background-color: var(--vp-c-bg-alt); |
| 649 | } |
| 650 | |
| 651 | .ca-sk-line.short { |
| 652 | display: block; |
| 653 | width: 38%; |
| 654 | height: 7px; |
| 655 | margin-top: 3px; |
| 656 | margin-left: 24px; |
| 657 | } |
| 658 | |
| 659 | html.effects-disabled .ca-panel { |
| 660 | animation: none; |
| 661 | } |
| 662 | |
| 663 | @media (prefers-reduced-motion: reduce) { |
| 664 | .ca-panel { |
| 665 | animation: none; |
| 666 | } |
| 667 | } |
| 668 | </style> |