-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.css
More file actions
94 lines (81 loc) · 1.96 KB
/
editor.css
File metadata and controls
94 lines (81 loc) · 1.96 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
.draggable {
cursor: move;
user-select: none;
}
.dragging {
opacity: 0.8;
pointer-events: none;
}
/* Base state for all elements when drag mode is enabled */
.drag-mode-enabled * {
outline: 0px dashed transparent;
outline-offset: 2px;
transition: outline 0.2s ease;
}
/* Only show green outline when element is in range */
.drag-mode-enabled .in-mouse-range:hover {
outline: 2px dashed #4CAF50;
outline-offset: 2px;
cursor: grab;
}
/* Selected element styling (only for Alt+Click selected elements) */
.editor-selected {
outline: 2px solid rgb(255, 255, 255) !important;
outline-offset: 2px !important;
border-radius: 3px;
z-index: 1000;
box-shadow:
0 0 4px 2px rgba(255, 255, 255, 0.5),
0 0 8px 4px rgba(255, 255, 255, 0.4),
0 0 16px 8px rgba(255, 255, 255, 0.3);
}
/* Universal editor preview */
.universal-editor-preview {
max-width: 100%;
max-height: 300px;
overflow: auto;
border: 1px solid #ccc;
margin: 10px 0;
padding: 10px;
background: #f5f5f5;
}
/* Prevent text selection in drag mode */
.drag-mode-enabled {
user-select: none !important;
}
/* Prevent pointer events on links in drag mode */
.drag-mode-enabled a {
pointer-events: none !important;
}
/* Make sure draggable elements show the grab cursor */
.drag-mode-enabled *:not(a) {
cursor: grab !important;
}
.drag-mode-enabled .dragging {
cursor: grabbing !important;
}
@keyframes green-animation {
0% {
background-position: 0%;
}
100% {
background-position: 400%;
}
}
.green-animation {
background: linear-gradient(to right, #ff0000, #ffa500, #ffff00, #008000, #0000ff, #4b0082, #ee82ee, #ff0000);
-webkit-background-clip: text;
background-clip: text;
background-size: 400%;
color: transparent;
animation: green-animation 5s linear infinite;
}
.border-overlay {
pointer-events: none !important;
mix-blend-mode: overlay;
}
/* Ensure elements can have overlays */
.drag-mode-enabled *:hover,
.editor-selected {
isolation: isolate;
}