-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
162 lines (138 loc) · 3.75 KB
/
Copy pathstyles.css
File metadata and controls
162 lines (138 loc) · 3.75 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
/* HTML Live Editor — Plugin Styles */
.hle-wrapper {
position: relative;
margin: 4px 0;
border: 1px solid var(--background-modifier-border, #e0e0e0);
border-radius: 8px;
overflow: hidden;
transition: border-color 0.2s ease;
}
.hle-wrapper:hover {
border-color: var(--interactive-accent, #7b5ea7);
}
/* ─── Toolbar ─────────────────────────────────────────────────────────────── */
.hle-toolbar {
position: absolute;
top: 6px;
right: 6px;
z-index: 10;
display: flex;
gap: 4px;
opacity: 0;
transition: opacity 0.15s ease;
}
.hle-wrapper:hover .hle-toolbar {
opacity: 1;
}
.hle-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border: none;
border-radius: 6px;
background: var(--background-secondary, #f0f0f0);
color: var(--text-muted, #888);
cursor: pointer;
font-size: 13px;
line-height: 1;
transition: background 0.15s, color 0.15s;
}
.hle-btn:hover {
background: var(--interactive-accent, #7b5ea7);
color: #fff;
}
/* ─── Rendered HTML Container ─────────────────────────────────────────────── */
.hle-render {
padding: 2px;
cursor: default;
}
/* Editable text highlight */
.hle-editable {
cursor: text;
border-radius: 3px;
transition: background 0.15s ease, box-shadow 0.15s ease;
}
.hle-editable:hover {
background: var(--text-highlight-bg, rgba(255, 208, 0, 0.15));
box-shadow: 0 0 0 1px var(--interactive-accent-hover, rgba(123, 94, 167, 0.3));
}
.hle-editable.hle-editing {
display: block;
width: 100%;
background: transparent;
box-shadow: none;
}
/* ─── Inline Editor ───────────────────────────────────────────────────────── */
.hle-inline-editor {
display: flex;
flex-direction: column;
gap: 6px;
padding: 8px;
background: var(--background-primary, #fff);
border: 2px solid var(--interactive-accent, #7b5ea7);
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
min-width: 200px;
max-width: 100%;
}
.hle-inline-input {
box-sizing: border-box;
width: 100%;
min-height: 32px;
max-height: 200px;
padding: 8px 10px;
border: 1px solid var(--background-modifier-border, #ddd);
border-radius: 6px;
background: var(--background-primary, #fff);
color: var(--text-normal, #333);
font-size: 13.5px;
line-height: 1.6;
font-family: inherit;
resize: vertical;
outline: none;
}
.hle-inline-input:focus {
border-color: var(--interactive-accent, #7b5ea7);
box-shadow: 0 0 0 2px rgba(123, 94, 167, 0.15);
}
.hle-inline-btns {
display: flex;
gap: 6px;
justify-content: flex-end;
}
.hle-native-popover {
position: fixed;
z-index: 10000;
width: min(620px, calc(100vw - 24px));
box-sizing: border-box;
padding: 10px;
background: var(--background-primary, #fff);
border: 1px solid var(--interactive-accent, #7b5ea7);
border-radius: 8px;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.hle-btn-save {
width: auto;
padding: 4px 12px;
background: var(--interactive-accent, #7b5ea7);
color: #fff;
font-weight: 600;
}
.hle-btn-save:hover {
opacity: 0.85;
background: var(--interactive-accent, #7b5ea7);
color: #fff;
}
.hle-btn-cancel {
width: auto;
padding: 4px 12px;
}
/* ─── Dark mode adjustments ────────────────────────────────────────────────── */
.theme-dark .hle-wrapper {
border-color: var(--background-modifier-border, #333);
}
.theme-dark .hle-inline-editor {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}