|
474 | 474 | right: 22px; |
475 | 475 | z-index: 3; |
476 | 476 | display: grid; |
477 | | - gap: 10px; |
478 | | - width: min(320px, calc(100% - 44px)); |
479 | | - padding: 16px; |
| 477 | + gap: 0; |
| 478 | + width: min(176px, calc(100% - 44px)); |
| 479 | + max-width: min(320px, calc(100% - 44px)); |
| 480 | + max-height: 48px; |
| 481 | + overflow: hidden; |
| 482 | + padding: 13px 14px 12px; |
480 | 483 | border: 1px solid rgba(111, 161, 255, 0.32); |
481 | 484 | border-radius: var(--radius-md); |
482 | 485 | background: |
|
487 | 490 | 0 18px 50px rgba(0, 0, 0, 0.42); |
488 | 491 | backdrop-filter: blur(18px) saturate(140%); |
489 | 492 | -webkit-backdrop-filter: blur(18px) saturate(140%); |
490 | | - pointer-events: none; |
| 493 | + pointer-events: auto; |
| 494 | + transition: |
| 495 | + width 240ms cubic-bezier(0.2, 0.8, 0.2, 1), |
| 496 | + max-height 240ms cubic-bezier(0.2, 0.8, 0.2, 1), |
| 497 | + padding 240ms cubic-bezier(0.2, 0.8, 0.2, 1), |
| 498 | + border-color 200ms ease, |
| 499 | + box-shadow 200ms ease; |
491 | 500 | } |
492 | 501 |
|
493 | 502 | .story-evidence-callout[hidden] { |
494 | 503 | display: none; |
495 | 504 | } |
496 | 505 |
|
| 506 | +.story-evidence-callout:hover, |
| 507 | +.story-evidence-callout:focus-within { |
| 508 | + width: min(320px, calc(100% - 44px)); |
| 509 | + max-height: 280px; |
| 510 | + padding: 16px; |
| 511 | + border-color: rgba(111, 161, 255, 0.5); |
| 512 | + box-shadow: |
| 513 | + 0 1px 0 rgba(255, 255, 255, 0.08) inset, |
| 514 | + 0 24px 54px rgba(0, 0, 0, 0.46); |
| 515 | +} |
| 516 | + |
| 517 | +.story-evidence-callout:focus-visible { |
| 518 | + outline: 2px solid rgba(111, 161, 255, 0.6); |
| 519 | + outline-offset: 4px; |
| 520 | +} |
| 521 | + |
497 | 522 | .map-tooltip { |
498 | 523 | position: absolute; |
499 | 524 | z-index: 6; |
|
569 | 594 | .story-evidence-callout__label { |
570 | 595 | margin: 0; |
571 | 596 | color: var(--accent); |
572 | | - font-size: 0.66rem; |
| 597 | + font-size: 0.7rem; |
573 | 598 | font-weight: 850; |
574 | 599 | letter-spacing: 0.16em; |
575 | 600 | text-transform: uppercase; |
| 601 | + white-space: nowrap; |
| 602 | +} |
| 603 | + |
| 604 | +.story-evidence-callout__content { |
| 605 | + display: grid; |
| 606 | + gap: 10px; |
| 607 | + max-height: 0; |
| 608 | + margin-top: 0; |
| 609 | + overflow: hidden; |
| 610 | + opacity: 0; |
| 611 | + transform: translateY(-8px); |
| 612 | + transition: |
| 613 | + max-height 240ms cubic-bezier(0.2, 0.8, 0.2, 1), |
| 614 | + margin-top 240ms cubic-bezier(0.2, 0.8, 0.2, 1), |
| 615 | + opacity 180ms ease, |
| 616 | + transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1); |
| 617 | +} |
| 618 | + |
| 619 | +.story-evidence-callout:hover .story-evidence-callout__content, |
| 620 | +.story-evidence-callout:focus-within .story-evidence-callout__content { |
| 621 | + max-height: 220px; |
| 622 | + margin-top: 10px; |
| 623 | + opacity: 1; |
| 624 | + transform: translateY(0); |
576 | 625 | } |
577 | 626 |
|
578 | 627 | .story-evidence-callout h3 { |
@@ -697,8 +746,19 @@ footer { |
697 | 746 | top: auto; |
698 | 747 | right: auto; |
699 | 748 | width: auto; |
| 749 | + max-width: none; |
| 750 | + max-height: none; |
700 | 751 | margin: 0 18px 18px; |
701 | 752 | pointer-events: auto; |
| 753 | + overflow: visible; |
| 754 | + } |
| 755 | + |
| 756 | + .story-evidence-callout__content { |
| 757 | + max-height: none; |
| 758 | + margin-top: 10px; |
| 759 | + overflow: visible; |
| 760 | + opacity: 1; |
| 761 | + transform: none; |
702 | 762 | } |
703 | 763 |
|
704 | 764 | .story-step { |
|
0 commit comments