-
Notifications
You must be signed in to change notification settings - Fork 202
Expand file tree
/
Copy pathDashboardTour.css
More file actions
167 lines (139 loc) · 4.45 KB
/
Copy pathDashboardTour.css
File metadata and controls
167 lines (139 loc) · 4.45 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
* DashboardTour.css
* Design-token-only, no hex literals. Tokens mirrored from src/index.css.
*/
/* ── Overlay backdrop ──────────────────────────────────────────────────────── */
.dt-overlay {
position: fixed;
inset: 0;
z-index: 900;
pointer-events: none;
}
/* ── Highlight ring around the active anchor element ──────────────────────── */
.dt-highlight-ring {
position: fixed;
z-index: 901;
border: 2px solid var(--accent);
border-radius: 8px;
pointer-events: none;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}
/* ── Callout bubble ───────────────────────────────────────────────────────── */
.dt-callout {
position: fixed;
z-index: 902;
width: 300px;
pointer-events: auto;
}
/* ── Arrow (rotated square) ──────────────────────────────────────────────── */
.dt-callout-arrow {
position: absolute;
width: 12px;
height: 12px;
background: var(--surface);
border: 2px solid var(--border);
z-index: 2;
}
/* ── Inner card ───────────────────────────────────────────────────────────── */
.dt-callout-inner {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
/* ── Typography ───────────────────────────────────────────────────────────── */
.dt-step-label {
margin: 0;
font-size: 0.85rem;
font-weight: 600;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.06em;
}
.dt-callout-text {
margin: 0;
font-size: 0.875rem;
color: var(--text);
line-height: var(--lh-body);
}
/* ── Footer row ───────────────────────────────────────────────────────────── */
.dt-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.25rem;
}
.dt-step-counter {
font-size: 0.75rem;
color: var(--muted);
font-weight: 500;
flex-shrink: 0;
}
.dt-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}
/* ── Buttons ──────────────────────────────────────────────────────────────── */
.dt-skip-btn {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
border-radius: 6px;
padding: 0.35rem 0.75rem;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
font-family: inherit;
min-height: 32px;
}
.dt-skip-btn:hover {
background: var(--border);
color: var(--text);
}
.dt-skip-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.dt-next-btn {
background: var(--accent);
color: var(--bg);
border: none;
border-radius: 6px;
padding: 0.35rem 0.875rem;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
transition: background 0.15s;
font-family: inherit;
min-height: 32px;
}
.dt-next-btn:hover {
background: color-mix(in srgb, var(--accent) 75%, black);
}
.dt-next-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* ── Focus ring on callout container ─────────────────────────────────────── */
.dt-callout:focus-visible {
outline: none;
}
/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.dt-overlay,
.dt-highlight-ring,
.dt-callout,
.dt-callout-arrow,
.dt-callout-inner,
.dt-skip-btn,
.dt-next-btn {
animation: none !important;
transition: none !important;
}
}