MikaFil commited on
Commit
bedd747
·
verified ·
1 Parent(s): 324d901

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +183 -162
style/defaults/style.css CHANGED
@@ -107,7 +107,153 @@ progress::-moz-progress-bar {
107
  background-color: #4682B4;
108
  border-radius: 10px;
109
  }
110
- /* Menu (instructions) content styling */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  .menu-content {
112
  display: none;
113
  position: absolute;
@@ -139,8 +285,6 @@ progress::-moz-progress-bar {
139
  background: #e7e7e7;
140
  border-radius: 8px;
141
  }
142
-
143
- /* CLOSE BUTTON for menu-content - match tooltip-close style */
144
  .menu-content .help-close {
145
  position: absolute;
146
  top: 12px;
@@ -168,8 +312,6 @@ progress::-moz-progress-bar {
168
  background: #e0e0e0;
169
  outline: none;
170
  }
171
-
172
- /* --------- TOOLTIP PANEL ----------- */
173
  .tooltip-panel {
174
  position: absolute;
175
  top: 50%;
@@ -190,7 +332,7 @@ progress::-moz-progress-bar {
190
  flex-direction: column;
191
  align-items: flex-start;
192
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
193
- overflow: scroll !important; /* Always show scrollbar */
194
  scrollbar-gutter: stable both-edges;
195
  box-sizing: border-box;
196
  }
@@ -205,8 +347,6 @@ progress::-moz-progress-bar {
205
  background: #e7e7e7;
206
  border-radius: 8px;
207
  }
208
-
209
- /* Ensure content does not go under close button */
210
  .tooltip-content {
211
  width: 100%;
212
  max-width: 100%;
@@ -260,156 +400,49 @@ progress::-moz-progress-bar {
260
  object-fit: contain;
261
  box-sizing: border-box;
262
  }
263
-
264
- /* ----------- CONTROLS ROW + COLOR MENU BUTTON ----------- */
265
- .controls-row {
266
- position: absolute;
267
- top: 12px;
268
- right: 12px;
269
- display: flex;
270
- flex-direction: row;
271
- align-items: flex-start;
272
- z-index: 1001;
273
- }
274
  @media (max-width: 600px) {
275
- .controls-row {
 
 
 
 
 
 
 
 
276
  top: 8px;
277
  right: 8px;
 
 
 
278
  }
279
- }
280
- .color-menu-btn {
281
- width: 32px;
282
- height: 32px;
283
- background: linear-gradient(135deg, #fff 60%, #e1e1e1 100%);
284
- border: 1.5px solid #ccc;
285
- border-radius: 8px;
286
- margin-right: 8px;
287
- cursor: pointer;
288
- display: flex;
289
- align-items: center;
290
- justify-content: center;
291
- box-shadow: 0 2px 8px rgba(0,0,0,0.07);
292
- position: relative;
293
- z-index: 1010;
294
- transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
295
- }
296
- .color-menu-btn.active,
297
- .color-menu-btn:focus {
298
- border-color: #4682B4;
299
- box-shadow: 0 0 0 2.5px #97b9d7;
300
- }
301
- .color-menu-btn:after {
302
- content: '';
303
- display: block;
304
- width: 15px;
305
- height: 15px;
306
- margin: auto;
307
- background: linear-gradient(135deg, #fff 60%, #d00 100%);
308
- border-radius: 3px;
309
- border: 1px solid #bbb;
310
- box-shadow: 0 1px 4px rgba(0,0,0,0.07);
311
- }
312
- /* Optional: if you want a color palette icon, use background-image or emoji here */
313
-
314
- /* VERTICAL CONTROLS COLUMN */
315
- .vertical-controls {
316
- display: flex;
317
- flex-direction: column;
318
- gap: 12px;
319
- }
320
- @media (max-width: 600px) {
321
- .vertical-controls {
322
- gap: 8px;
323
  }
324
- }
325
-
326
- /* --------- STANDARD BUTTON STYLE --------- */
327
- .widget-button {
328
- width: 32px;
329
- height: 32px;
330
- background-color: #F2F0EF;
331
- border: 1px solid #ccc;
332
- border-radius: 8px;
333
- cursor: pointer;
334
- font-size: 16px;
335
- color: #545454;
336
- display: flex !important;
337
- align-items: center;
338
- justify-content: center;
339
- transition: background-color 0.2s, border-color 0.2s;
340
- z-index: 1000;
341
- opacity: 1 !important;
342
- visibility: visible !important;
343
- margin: 0 0 0 0;
344
- }
345
- .widget-button:hover,
346
- .widget-button:focus {
347
- background-color: rgba(242,240,239,0.85);
348
- border-color: #888;
349
- }
350
- .fake-fullscreen .widget-button,
351
- :fullscreen .widget-button,
352
- :-webkit-full-screen .widget-button,
353
- :-moz-full-screen .widget-button,
354
- :-ms-fullscreen .widget-button { z-index: 10000; }
355
-
356
- /* COLOR PANEL STYLES */
357
- .color-panel {
358
- display: none; /* JS toggles to flex */
359
- position: absolute;
360
- top: 38px; /* Just below color button */
361
- left: 0;
362
- background: rgba(242,240,239,0.98);
363
- border: 1px solid #bbb;
364
- border-radius: 10px;
365
- box-shadow: 0 6px 18px rgba(0,0,0,0.13);
366
- padding: 12px 14px;
367
- z-index: 2000;
368
- flex-direction: row;
369
- align-items: center;
370
- gap: 10px;
371
- min-width: 90px;
372
- min-height: 32px;
373
- margin-top: 2px;
374
- }
375
- @media (max-width: 600px) {
376
- .color-panel {
377
- padding: 8px 8px;
378
- top: 30px;
379
- left: 0;
380
- min-width: 56px;
381
- min-height: 24px;
382
- gap: 6px;
383
  }
384
- }
385
-
386
- /* COLOR SWATCH BUTTONS */
387
- .color-swatch-btn {
388
- width: 28px;
389
- height: 28px;
390
- border: 2px solid #ccc;
391
- border-radius: 6px;
392
- margin: 0;
393
- cursor: pointer;
394
- outline: none;
395
- transition: border-color 0.15s, box-shadow 0.18s;
396
- box-shadow: 0 1px 6px rgba(0,0,0,0.07);
397
- display: inline-block;
398
- }
399
- .color-swatch-btn:focus,
400
- .color-swatch-btn:hover {
401
- border-color: #4682B4;
402
- box-shadow: 0 0 0 2px #97b9d7;
403
- }
404
- @media (max-width: 600px) {
405
- .color-swatch-btn {
406
- width: 20px;
407
- height: 20px;
408
- border-radius: 4px;
409
  }
410
  }
411
 
412
- /* (Keep the rest of your original style.css below, unchanged...) */
413
  .help-close {
414
  position: absolute;
415
  top: 8px;
@@ -429,19 +462,7 @@ progress::-moz-progress-bar {
429
  justify-content: center;
430
  padding: 0;
431
  }
432
- @media (max-width: 600px) {
433
- .widget-button, .color-menu-btn {
434
- width: 24px;
435
- height: 24px;
436
- font-size: 12px;
437
- border-radius: 6px;
438
- }
439
- .color-menu-btn:after {
440
- width: 10px;
441
- height: 10px;
442
- border-radius: 2px;
443
- }
444
- }
445
  #application-canvas { width: 100%; height: 100%; display: block; }
446
  html, body { margin: 0; padding: 0; height: 100%; }
447
  .progress-dialog p { margin: 0; padding: 5px; }
 
107
  background-color: #4682B4;
108
  border-radius: 10px;
109
  }
110
+
111
+ /* -------- BUTTONS ROW --------- */
112
+ .controls-row {
113
+ position: absolute;
114
+ top: 12px;
115
+ right: 12px;
116
+ display: flex;
117
+ flex-direction: row;
118
+ align-items: center;
119
+ gap: 12px; /* Uniform gap for ALL buttons, including color */
120
+ z-index: 1001;
121
+ }
122
+ @media (max-width: 600px) {
123
+ .controls-row {
124
+ top: 8px;
125
+ right: 8px;
126
+ gap: 6px;
127
+ }
128
+ }
129
+
130
+ .widget-button,
131
+ .color-menu-btn {
132
+ width: 32px;
133
+ height: 32px;
134
+ background-color: #F2F0EF;
135
+ border: 1px solid #ccc;
136
+ border-radius: 8px;
137
+ cursor: pointer;
138
+ font-size: 16px;
139
+ color: #545454;
140
+ display: flex !important;
141
+ align-items: center;
142
+ justify-content: center;
143
+ transition: background-color 0.2s, border-color 0.2s, box-shadow 0.18s;
144
+ z-index: 1000;
145
+ opacity: 1 !important;
146
+ visibility: visible !important;
147
+ margin: 0;
148
+ box-sizing: border-box;
149
+ position: relative;
150
+ }
151
+ .widget-button:focus,
152
+ .color-menu-btn:focus,
153
+ .widget-button:hover,
154
+ .color-menu-btn:hover {
155
+ background-color: rgba(242,240,239,0.85);
156
+ border-color: #888;
157
+ outline: none;
158
+ }
159
+ .fake-fullscreen .widget-button,
160
+ :fullscreen .widget-button,
161
+ :-webkit-full-screen .widget-button,
162
+ :-moz-full-screen .widget-button,
163
+ :-ms-fullscreen .widget-button { z-index: 10000; }
164
+
165
+ /* ---- COLOR MENU BUTTON (palette icon) ---- */
166
+ .color-menu-btn {
167
+ background: linear-gradient(135deg, #fff 60%, #e1e1e1 100%);
168
+ border: 1.5px solid #ccc;
169
+ }
170
+ .color-menu-btn.active,
171
+ .color-menu-btn:focus {
172
+ border-color: #4682B4;
173
+ box-shadow: 0 0 0 2px #97b9d7;
174
+ }
175
+ .color-menu-btn:after {
176
+ content: '';
177
+ display: block;
178
+ width: 15px;
179
+ height: 15px;
180
+ margin: auto;
181
+ background: linear-gradient(135deg, #fff 60%, #d00 100%);
182
+ border-radius: 3px;
183
+ border: 1px solid #bbb;
184
+ box-shadow: 0 1px 4px rgba(0,0,0,0.07);
185
+ }
186
+ @media (max-width: 600px) {
187
+ .widget-button, .color-menu-btn {
188
+ width: 24px;
189
+ height: 24px;
190
+ font-size: 12px;
191
+ border-radius: 6px;
192
+ }
193
+ .color-menu-btn:after {
194
+ width: 10px;
195
+ height: 10px;
196
+ border-radius: 2px;
197
+ }
198
+ }
199
+
200
+ /* --------- COLOR PANEL STYLES --------- */
201
+ .color-panel {
202
+ display: none;
203
+ position: absolute;
204
+ top: 38px; /* Just below the buttons row */
205
+ left: 0;
206
+ background: rgba(242,240,239,0.98);
207
+ border: 1px solid #bbb;
208
+ border-radius: 10px;
209
+ box-shadow: 0 6px 18px rgba(0,0,0,0.13);
210
+ padding: 12px 14px;
211
+ z-index: 2000;
212
+ flex-direction: row;
213
+ align-items: center;
214
+ gap: 10px;
215
+ min-width: 90px;
216
+ min-height: 32px;
217
+ margin-top: 2px;
218
+ }
219
+ @media (max-width: 600px) {
220
+ .color-panel {
221
+ padding: 8px 8px;
222
+ top: 30px;
223
+ left: 0;
224
+ min-width: 56px;
225
+ min-height: 24px;
226
+ gap: 6px;
227
+ }
228
+ }
229
+
230
+ /* COLOR SWATCH BUTTONS */
231
+ .color-swatch-btn {
232
+ width: 28px;
233
+ height: 28px;
234
+ border: 2px solid #ccc;
235
+ border-radius: 6px;
236
+ margin: 0;
237
+ cursor: pointer;
238
+ outline: none;
239
+ transition: border-color 0.15s, box-shadow 0.18s;
240
+ box-shadow: 0 1px 6px rgba(0,0,0,0.07);
241
+ display: inline-block;
242
+ }
243
+ .color-swatch-btn:focus,
244
+ .color-swatch-btn:hover {
245
+ border-color: #4682B4;
246
+ box-shadow: 0 0 0 2px #97b9d7;
247
+ }
248
+ @media (max-width: 600px) {
249
+ .color-swatch-btn {
250
+ width: 20px;
251
+ height: 20px;
252
+ border-radius: 4px;
253
+ }
254
+ }
255
+
256
+ /* --------- KEEP ALL EXISTING UI STYLES BELOW --------- */
257
  .menu-content {
258
  display: none;
259
  position: absolute;
 
285
  background: #e7e7e7;
286
  border-radius: 8px;
287
  }
 
 
288
  .menu-content .help-close {
289
  position: absolute;
290
  top: 12px;
 
312
  background: #e0e0e0;
313
  outline: none;
314
  }
 
 
315
  .tooltip-panel {
316
  position: absolute;
317
  top: 50%;
 
332
  flex-direction: column;
333
  align-items: flex-start;
334
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
335
+ overflow: scroll !important;
336
  scrollbar-gutter: stable both-edges;
337
  box-sizing: border-box;
338
  }
 
347
  background: #e7e7e7;
348
  border-radius: 8px;
349
  }
 
 
350
  .tooltip-content {
351
  width: 100%;
352
  max-width: 100%;
 
400
  object-fit: contain;
401
  box-sizing: border-box;
402
  }
 
 
 
 
 
 
 
 
 
 
 
403
  @media (max-width: 600px) {
404
+ .menu-content {
405
+ width: 85vw;
406
+ max-height: 90%;
407
+ overflow: scroll !important;
408
+ scrollbar-gutter: stable both-edges;
409
+ padding: 40px 18px 14px;
410
+ font-size: 14px;
411
+ }
412
+ .menu-content .help-close {
413
  top: 8px;
414
  right: 8px;
415
+ width: 26px;
416
+ height: 26px;
417
+ font-size: 15px;
418
  }
419
+ .tooltip-panel {
420
+ top: auto;
421
+ bottom: 8px;
422
+ left: 3vw;
423
+ right: 3vw;
424
+ transform: none;
425
+ width: auto;
426
+ max-width: 94vw;
427
+ min-width: 0;
428
+ max-height: 55%;
429
+ padding: 20px 10px 12px 10px;
430
+ font-size: 13.5px;
431
+ overflow: scroll !important;
432
+ scrollbar-gutter: stable both-edges;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  }
434
+ .tooltip-close {
435
+ top: 8px;
436
+ right: 8px;
437
+ width: 26px;
438
+ height: 26px;
439
+ font-size: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  }
441
+ .tooltip-image {
442
+ max-height: 22vh;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
443
  }
444
  }
445
 
 
446
  .help-close {
447
  position: absolute;
448
  top: 8px;
 
462
  justify-content: center;
463
  padding: 0;
464
  }
465
+
 
 
 
 
 
 
 
 
 
 
 
 
466
  #application-canvas { width: 100%; height: 100%; display: block; }
467
  html, body { margin: 0; padding: 0; height: 100%; }
468
  .progress-dialog p { margin: 0; padding: 5px; }