-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnote.css
More file actions
358 lines (327 loc) · 8.75 KB
/
Copy pathnote.css
File metadata and controls
358 lines (327 loc) · 8.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
/* ============================================
1. Main Container
============================================ */
.floatnote-note {
background-color: #ffffff !important;
width: 300px;
height: 300px;
min-width: 200px;
max-width: 80vw;
padding: 4px 2px 4px 4px;
position: absolute !important;
border-radius: 8px;
box-shadow: 0 5px 10px rgba(7, 20, 35, 0.2);
display: flex;
flex-direction: column;
max-height: 80vh;
overflow: hidden; /* Container is not scrollable */
color: #000000 !important;
z-index: 10000;
box-shadow: 2px 2px 0 #000;
border: 2px solid #000 !important;
}
.floatnote-note * {
box-sizing: border-box;
}
/* ============================================
2. Header & Control Buttons
============================================ */
.floatnote-note .header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 6px 6px 6px;
border-bottom: 1px solid #e0e0e0;
flex-shrink: 0;
cursor: move;
min-height: 32px;
gap: 4px;
overflow: hidden;
position: relative;
}
.floatnote-note .close-button,
.floatnote-note .save-button {
box-shadow: 2px 2px 0 #000;
border: 2px solid #000 !important;
transition: all ease-in 0.2s !important;
background-color: #f5f5f5;
border-radius: 2px;
cursor: pointer;
padding: 1px 2px;
font-size: 16px;
color: #000000 !important;
flex-shrink: 0;
white-space: nowrap;
min-width: 32px;
min-height: 28px;
display: flex;
align-items: center;
justify-content: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
margin: 0;
position: relative;
}
.floatnote-note .close-button:hover {
background-color: #ffebee;
border-color: #f44336 !important;
box-shadow: none;
transform: translateY(2px) !important;
transition: all ease-in 0.2s;
opacity: 1 !important;
}
.floatnote-note .save-button:hover {
background-color: #e8f5e9;
border-color: #4caf50 !important;
box-shadow: none;
transform: translateY(2px) !important;
transition: all ease-in 0.2s;
opacity: 1 !important;
}
/* ============================================
3. Toolbar (Options)
============================================ */
.floatnote-note .options {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
padding: 6px 4px 4px 4px;
border-bottom: 1px solid #e0e0e0;
flex-shrink: 0;
overflow-x: auto;
overflow-y: hidden;
position: relative;
}
/* ============================================
4. Toolbar Controls
============================================ */
/* Buttons */
.floatnote-note button {
box-shadow: 2px 2px 0 #000;
border: 2px solid #000 !important;
transition: all ease-in 0.2s !important;
height: 20px;
width: 20px;
min-width: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 3px;
background-color: #ffffff;
outline: none;
color: #020929 !important;
cursor: pointer;
padding: 0;
border-width: 1px;
border-style: solid;
border-color: #000000;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
font-size: 12px !important;
margin: 0;
position: relative;
}
.floatnote-note button:hover {
box-shadow: none;
transform: translateY(2px) !important;
transition: all ease-in 0.2s;
opacity: 1 !important;
}
.floatnote-note .active {
background-color: #e0e9ff;
border-color: #338cf4;
}
/* FontAwesome Icons */
.floatnote-note button i,
.floatnote-note button .fa-solid,
.floatnote-note button .fa,
.floatnote-note button [class*="fa-"] {
font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
font-weight: 900 !important;
font-style: normal !important;
font-size: 11px !important;
color: #020929 !important;
display: inline-block !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;
}
/* Selects */
.floatnote-note select {
box-shadow: 2px 2px 0 #000;
border: 2px solid #000 !important;
transition: all ease-in 0.2s !important;
border-radius: 3px;
padding: 0 4px;
background-color: #ffffff !important;
color: #000000 !important;
font-size: 12px !important;
cursor: pointer;
height: 20px;
width: 80px;
max-width: 80px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
appearance: none !important;
-webkit-appearance: none !important;
-moz-appearance: none !important;
background-image: none !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.floatnote-note select .formatBlock {
width: 40px;
}
.floatnote-note select option {
background-color: #ffffff !important;
color: #000000 !important;
font-size: 12px !important;
}
.floatnote-note select:hover {
box-shadow: none;
transform: translateY(2px) !important;
transition: all ease-in 0.2s;
opacity: 1 !important;
}
.floatnote-note #formatBlock {
width: 60px;
}
/* Font Size Control */
.floatnote-note .font-size-control {
display: flex;
align-items: center;
gap: 2px;
}
.floatnote-note .font-size-control button {
width: 18px;
height: 18px;
min-width: 18px;
font-size: 10px;
padding: 0;
}
.floatnote-note .font-size-display {
min-width: 24px;
text-align: center;
font-size: 10px;
color: #000000 !important;
}
/* Labels */
.floatnote-note .options label {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 10px;
color: #000000 !important;
margin: 0 !important;
padding: 0;
line-height: 1;
display: inline-block;
font-weight: bold;
}
/* Input Wrapper */
.floatnote-note .input-wrapper {
display: flex;
align-items: center;
gap: 4px;
}
/* Color Inputs */
.floatnote-note input[type="color"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: transparent;
width: 20px;
height: 20px;
border: 1px solid #e0e0e0;
border-radius: 3px;
cursor: pointer;
padding: 0;
overflow: hidden;
box-shadow: 2px 2px 0 #000;
border: 2px solid #000 !important;
transition: all ease-in 0.2s !important;
}
.floatnote-note input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0;
border: none;
border-radius: 3px;
}
.floatnote-note input[type="color"]::-webkit-color-swatch {
border: none;
border-radius: 3px;
padding: 0;
width: 100%;
height: 100%;
}
.floatnote-note input[type="color"]::-moz-color-swatch {
border: none;
border-radius: 3px;
padding: 0;
width: 100%;
height: 100%;
}
.floatnote-note input[type="color"]:hover {
box-shadow: none;
transform: translateY(2px) !important;
transition: all ease-in 0.2s;
opacity: 1 !important;
}
/* ============================================
5. Text Input Area
============================================ */
.floatnote-note #text-input {
margin-top: 10px;
border: 2px solid #000;
padding: 12px 6px;
min-height: 0;
height: 100%; /* Take full height of container, fits completely */
overflow-x: hidden;
overflow-y: auto;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
line-height: 1.5;
flex: 1 1 0; /* Flex grow, shrink, and basis 0 to fit container */
outline: none;
word-wrap: break-word;
word-spacing: normal;
white-space: pre-wrap;
color: #000000 !important;
position: relative;
background-color: #ffbf00;
}
.floatnote-note #text-input:focus {
border-color: #338cf4;
box-shadow: 0 0 0 2px rgba(51, 140, 244, 0.1);
}
/* ============================================
6. Resizer
============================================ */
.floatnote-note .resizer,
.floatnote-view-text .resizer {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
bottom: 0;
right: 0;
width: 10px;
height: 10px;
cursor: nwse-resize;
background-color: #ffffff;
border-radius: 50%;
border: 1px solid #e0e0e0;
z-index: 10;
pointer-events: auto;
}
/* Cloned text input in view mode */
.floatnote-view-text {
overflow: hidden !important; /* Hide overflow, no scrollbar - content is clipped */
overflow-y: auto !important; /* Explicitly hide vertical overflow */
overflow-x: hidden !important; /* Explicitly hide horizontal overflow */
max-height: 100% !important; /* Constrain height to prevent overflow */
box-sizing: border-box !important; /* Include padding and border in height calculation */
cursor: move !important; /* Show move cursor for dragging */
min-width: 200px !important;
}
/* Ensure all children of cloned text input also respect overflow */
.floatnote-view-text * {
max-height: 100% !important;
overflow: hidden !important;
position: relative;
}