-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathstyles.module.css
More file actions
116 lines (101 loc) · 2.47 KB
/
Copy pathstyles.module.css
File metadata and controls
116 lines (101 loc) · 2.47 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
/* ── Inline diagram (clickable) ─────────────────────────── */
.container {
max-width: 100%;
cursor: zoom-in;
transition: box-shadow 0.2s ease;
}
.container > svg {
max-width: 100%;
}
.container:hover {
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
[data-theme='dark'] .container:hover {
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
/* ── Fullscreen modal overlay ─────────────────────────── */
.overlay {
position: fixed;
inset: 0;
z-index: 9999;
background: rgba(0, 0, 0, 0.78);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
animation: overlayIn 0.2s ease;
overflow: hidden;
touch-action: none;
}
@keyframes overlayIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* ── Toolbar ──────────────────────────────────────────── */
.toolbar {
position: fixed;
top: 12px;
right: 12px;
display: flex;
align-items: center;
gap: 4px;
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(8px);
border-radius: 10px;
padding: 6px 10px;
z-index: 10001;
user-select: none;
}
.toolBtn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border: none;
border-radius: 8px;
background: transparent;
color: #ddd;
font-size: 18px;
cursor: pointer;
transition: background 0.15s;
}
.toolBtn:hover {
background: rgba(255, 255, 255, 0.18);
}
.toolBtn:active {
background: rgba(255, 255, 255, 0.3);
}
.toolHint {
color: rgba(255, 255, 255, 0.45);
font-size: 11px;
margin-left: 8px;
padding-left: 10px;
border-left: 1px solid rgba(255, 255, 255, 0.15);
white-space: nowrap;
}
/* ── Modal body: fullscreen, scroll fallback ────────── */
.modalBody {
position: absolute;
inset: 0;
overflow: auto;
/* Scroll fallback: user can always scroll if panzoom fails */
cursor: grab;
touch-action: pan-x pan-y pinch-zoom;
background: #f8f9fa;
}
.modalBody:active {
cursor: grabbing;
}
[data-theme='dark'] .modalBody {
background: #121220;
}
/* ── SVG wrapper ─────────────────────────────────────── */
.svgWrapper {
display: inline-block;
position: relative;
}
.svgWrapper svg {
display: block;
max-width: none;
}