Spaces:
Paused

File size: 2,498 Bytes
bc9f3e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* ==========================================================================
   Tooltip — the app's custom styled tooltip (replaces native title
   tooltips everywhere). A single fixed-position bubble driven by
   Tooltip.svelte's delegated [data-tooltip] hover/focus listeners.

   Design: a quiet warm-ink card in the app's Claude palette — the
   signature terracotta hairline on top, a soft shadow, and an arrow that
   tracks the anchored element (--ax set by the component). In dark mode
   it inverts to a warm parchment so it reads against the dark surface.
   pointer-events: none — it is read-only and never intercepts clicks.
   ========================================================================== */

.lal-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 340px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #2c241b;
  color: #f6eee1;
  border: 1px solid #4a3b2b;
  border-top: 2px solid var(--accent, #d97757);
  box-shadow:
    0 10px 26px rgba(44, 36, 27, 0.35),
    0 2px 6px rgba(44, 36, 27, 0.18);
  font-size: 12.5px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition: opacity 0.12s ease, transform 0.12s ease;
  word-break: break-word;
}

.lal-tooltip.open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Arrow — a rotated square matching the bubble, aimed at the anchor via
   the --ax custom property (falls back to the bubble centre). */
.lal-tooltip::after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: #2c241b;
  transform: rotate(45deg);
}

.lal-tooltip.above::after {
  bottom: -5px;
  border-right: 1px solid #4a3b2b;
  border-bottom: 1px solid #4a3b2b;
}

.lal-tooltip.below::after {
  top: -5px;
  border-left: 1px solid #4a3b2b;
  border-top: 1px solid #4a3b2b;
}

/* Dark mode: a warm parchment bubble with dark ink — pops against the
   dark surface instead of disappearing into it. */
html.dark .lal-tooltip {
  background: #f4ead9;
  color: #2c241b;
  border-color: #d9c9ae;
  border-top-color: var(--accent, #e8936c);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

html.dark .lal-tooltip::after {
  background: #f4ead9;
}

html.dark .lal-tooltip.above::after {
  border-right-color: #d9c9ae;
  border-bottom-color: #d9c9ae;
}

html.dark .lal-tooltip.below::after {
  border-left-color: #d9c9ae;
  border-top-color: #d9c9ae;
}