MikaFil commited on
Commit
68ebc51
·
verified ·
1 Parent(s): b91e7e7

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +23 -17
style/defaults/style.css CHANGED
@@ -264,66 +264,72 @@ progress::-moz-progress-bar {
264
  /* -------- COLOR BUTTONS --------- */
265
  .color-btn-container {
266
  position: absolute;
267
- top: 40px;
268
- right: 12px; /* Just after your other controls */
269
  display: flex;
270
  flex-direction: column;
271
  gap: 8px;
272
  z-index: 1001;
273
- pointer-events: none; /* Only the buttons catch pointer events */
274
  }
275
  .color-btn-container .color-btn {
276
  pointer-events: auto;
277
- border-radius: 50%;
278
- border: 2px solid #bbb;
279
  width: 32px;
280
  height: 32px;
 
 
 
281
  margin: 0;
282
  padding: 0;
283
- box-shadow: 0 2px 8px rgba(0,0,0,0.07);
284
  outline: none;
285
- transition: border-color 0.18s, box-shadow 0.18s;
286
  cursor: pointer;
287
  display: flex;
288
  align-items: center;
289
  justify-content: center;
 
290
  }
291
  .color-btn:focus {
292
  border-color: #4682B4;
293
  box-shadow: 0 0 0 2.5px #97b9d7;
294
  }
295
  .color-btn:hover {
 
296
  border-color: #888;
297
- box-shadow: 0 3px 12px rgba(70, 130, 180, 0.13);
298
  }
 
299
  .color-btn[title="Blanc"] {
300
  background: #fff;
301
- border: 2px solid #bbb;
302
  }
303
  .color-btn[title="Rouge"] {
304
  background: #d00;
305
- border: 2px solid #b33;
306
  }
307
- /* If you add more colors, style them using [title="..."] selectors */
308
 
309
- .color-btn + .color-btn {
310
- margin-top: 8px;
311
- }
312
  .viewer-container .color-btn-container {
313
  z-index: 1001;
314
  }
 
 
 
315
  /* --- MOBILE adjustments for color buttons --- */
316
  @media (max-width: 600px) {
317
  .color-btn-container {
318
- top: 30px;
319
- right: 12px;
320
- gap: 7px;
321
  }
322
  .color-btn-container .color-btn {
323
  width: 24px;
324
  height: 24px;
 
325
  }
326
  }
 
327
  /* --------- END COLOR BUTTONS ----------- */
328
 
329
  /* --- MOBILE adjustments --- */
 
264
  /* -------- COLOR BUTTONS --------- */
265
  .color-btn-container {
266
  position: absolute;
267
+ top: 52px; /* Just under the fullscreen button (which is at top: 12px, height: 32px, + margin) */
268
+ right: 12px;
269
  display: flex;
270
  flex-direction: column;
271
  gap: 8px;
272
  z-index: 1001;
273
+ pointer-events: none; /* Only buttons themselves catch pointer events */
274
  }
275
  .color-btn-container .color-btn {
276
  pointer-events: auto;
277
+ /* Make them square with same size/shape as other .widget-button */
 
278
  width: 32px;
279
  height: 32px;
280
+ border-radius: 8px;
281
+ border: 1px solid #ccc;
282
+ background: #fff;
283
  margin: 0;
284
  padding: 0;
 
285
  outline: none;
286
+ transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
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
  }
293
  .color-btn:focus {
294
  border-color: #4682B4;
295
  box-shadow: 0 0 0 2.5px #97b9d7;
296
  }
297
  .color-btn:hover {
298
+ background: #f7f7f7;
299
  border-color: #888;
300
+ box-shadow: 0 3px 12px rgba(70,130,180,0.13);
301
  }
302
+ /* Color swatch backgrounds */
303
  .color-btn[title="Blanc"] {
304
  background: #fff;
305
+ border: 1px solid #ccc;
306
  }
307
  .color-btn[title="Rouge"] {
308
  background: #d00;
309
+ border: 1px solid #b33;
310
  }
311
+ /* Extend with more [title="..."] if you add more colors */
312
 
 
 
 
313
  .viewer-container .color-btn-container {
314
  z-index: 1001;
315
  }
316
+ .color-btn + .color-btn {
317
+ margin-top: 8px;
318
+ }
319
  /* --- MOBILE adjustments for color buttons --- */
320
  @media (max-width: 600px) {
321
  .color-btn-container {
322
+ top: 40px; /* under mobile fullscreen toggle (height: 24px + gap) */
323
+ right: 8px;
324
+ gap: 6px;
325
  }
326
  .color-btn-container .color-btn {
327
  width: 24px;
328
  height: 24px;
329
+ border-radius: 6px;
330
  }
331
  }
332
+
333
  /* --------- END COLOR BUTTONS ----------- */
334
 
335
  /* --- MOBILE adjustments --- */