MikaFil commited on
Commit
55199d7
·
verified ·
1 Parent(s): 545b0c6

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +23 -23
style/defaults/style.css CHANGED
@@ -202,59 +202,59 @@ progress::-moz-progress-bar {
202
  .color-panel {
203
  display: none;
204
  position: absolute;
205
- top: 40px; /* Just below the button row */
206
  left: 0;
207
  background: rgba(242,240,239,0.98);
208
  border: 1px solid #bbb;
209
  border-radius: 10px;
210
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
211
- padding: 12px 14px;
212
  z-index: 2000;
213
- flex-direction: row;
214
- align-items: center;
215
- gap: 10px;
216
- min-width: 90px;
 
217
  min-height: 32px;
218
  margin-top: 2px;
219
  }
220
  @media (max-width: 600px) {
221
  .color-panel {
222
- padding: 8px 8px;
223
  top: 30px;
224
  left: 0;
225
- min-width: 56px;
226
- min-height: 24px;
227
- gap: 6px;
 
228
  }
229
  }
230
 
231
  /* COLOR SWATCH BUTTONS */
232
  .color-swatch-btn {
233
- width: 28px;
234
- height: 28px;
235
- border: 2px solid #ccc;
236
- border-radius: 6px;
237
  margin: 0;
238
  cursor: pointer;
239
  outline: none;
240
  transition: border-color 0.15s, box-shadow 0.18s;
241
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
242
  display: inline-block;
 
243
  }
244
- .color-swatch-btn:focus,
245
- .color-swatch-btn:hover {
246
- border-color: #4682B4;
247
- box-shadow: 0 0 0 2px #97b9d7;
248
- }
249
  @media (max-width: 600px) {
250
  .color-swatch-btn {
251
- width: 20px;
252
- height: 20px;
253
- border-radius: 4px;
254
  }
255
  }
256
 
257
- /* --------- KEEP ALL EXISTING UI STYLES BELOW --------- */
 
258
  .menu-content {
259
  display: none;
260
  position: absolute;
 
202
  .color-panel {
203
  display: none;
204
  position: absolute;
205
+ top: 40px;
206
  left: 0;
207
  background: rgba(242,240,239,0.98);
208
  border: 1px solid #bbb;
209
  border-radius: 10px;
210
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
211
+ padding: 10px 8px;
212
  z-index: 2000;
213
+ /* Use grid for layout */
214
+ display: grid;
215
+ grid-template-columns: repeat(3, 1fr); /* 3 columns */
216
+ gap: 8px;
217
+ min-width: 60px;
218
  min-height: 32px;
219
  margin-top: 2px;
220
  }
221
  @media (max-width: 600px) {
222
  .color-panel {
223
+ padding: 6px 4px;
224
  top: 30px;
225
  left: 0;
226
+ min-width: 42px;
227
+ min-height: 18px;
228
+ gap: 5px;
229
+ grid-template-columns: repeat(3, 1fr);
230
  }
231
  }
232
 
233
  /* COLOR SWATCH BUTTONS */
234
  .color-swatch-btn {
235
+ width: 18px;
236
+ height: 18px;
237
+ border: 1.5px solid #bbb;
238
+ border-radius: 4px;
239
  margin: 0;
240
  cursor: pointer;
241
  outline: none;
242
  transition: border-color 0.15s, box-shadow 0.18s;
243
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
244
  display: inline-block;
245
+ /* Remove excessive gap, let the container handle spacing */
246
  }
247
+
 
 
 
 
248
  @media (max-width: 600px) {
249
  .color-swatch-btn {
250
+ width: 14px;
251
+ height: 14px;
252
+ border-radius: 3px;
253
  }
254
  }
255
 
256
+
257
+
258
  .menu-content {
259
  display: none;
260
  position: absolute;