MikaFil commited on
Commit
1ef0545
·
verified ·
1 Parent(s): 7c411c5

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +32 -17
style/defaults/style.css CHANGED
@@ -163,26 +163,31 @@ progress::-moz-progress-bar {
163
  :-moz-full-screen .widget-button,
164
  :-ms-fullscreen .widget-button { z-index: 10000; }
165
 
166
- /* ---- COLOR MENU BUTTON (palette icon) ---- */
167
  .color-menu-btn {
168
  background: linear-gradient(135deg, #fff 60%, #e1e1e1 100%);
169
  border: 1.5px solid #ccc;
 
 
170
  }
171
  .color-menu-btn.active,
172
  .color-menu-btn:focus {
173
  border-color: #4682B4;
174
  box-shadow: 0 0 0 2px #97b9d7;
175
  }
176
- .color-menu-btn:after {
177
- content: '';
 
 
 
178
  display: block;
179
- width: 15px;
180
- height: 15px;
181
- margin: auto;
182
- background: linear-gradient(135deg, #fff 60%, #d00 100%);
183
- border-radius: 3px;
184
- border: 1px solid #bbb;
185
- box-shadow: 0 1px 4px rgba(0,0,0,0.07);
186
  }
187
  @media (max-width: 600px) {
188
  .widget-button, .color-menu-btn {
@@ -191,10 +196,9 @@ progress::-moz-progress-bar {
191
  font-size: 12px;
192
  border-radius: 6px;
193
  }
194
- .color-menu-btn:after {
195
- width: 10px;
196
- height: 10px;
197
- border-radius: 2px;
198
  }
199
  }
200
 
@@ -230,9 +234,23 @@ progress::-moz-progress-bar {
230
  }
231
  }
232
 
 
233
  .inline-palette {
234
  display: inline-block;
235
  vertical-align: middle;
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  }
237
 
238
  /* COLOR SWATCH BUTTONS */
@@ -249,7 +267,6 @@ progress::-moz-progress-bar {
249
  display: inline-block;
250
  /* Remove excessive gap, let the container handle spacing */
251
  }
252
-
253
  @media (max-width: 600px) {
254
  .color-swatch-btn {
255
  width: 20px;
@@ -258,8 +275,6 @@ progress::-moz-progress-bar {
258
  }
259
  }
260
 
261
-
262
-
263
  .menu-content {
264
  display: none;
265
  position: absolute;
 
163
  :-moz-full-screen .widget-button,
164
  :-ms-fullscreen .widget-button { z-index: 10000; }
165
 
166
+ /* ---- COLOR MENU BUTTON (palette image) ---- */
167
  .color-menu-btn {
168
  background: linear-gradient(135deg, #fff 60%, #e1e1e1 100%);
169
  border: 1.5px solid #ccc;
170
+ padding: 0 !important;
171
+ overflow: hidden;
172
  }
173
  .color-menu-btn.active,
174
  .color-menu-btn:focus {
175
  border-color: #4682B4;
176
  box-shadow: 0 0 0 2px #97b9d7;
177
  }
178
+
179
+ /* Palette image inside color-menu-btn */
180
+ .palette-btn-img {
181
+ width: 19px;
182
+ height: 19px;
183
  display: block;
184
+ margin: 0 auto;
185
+ pointer-events: none;
186
+ /* Center vertically and horizontally */
187
+ vertical-align: middle;
188
+ /* Optional: sharp on all screens */
189
+ image-rendering: auto;
190
+ object-fit: contain;
191
  }
192
  @media (max-width: 600px) {
193
  .widget-button, .color-menu-btn {
 
196
  font-size: 12px;
197
  border-radius: 6px;
198
  }
199
+ .palette-btn-img {
200
+ width: 15px;
201
+ height: 15px;
 
202
  }
203
  }
204
 
 
234
  }
235
  }
236
 
237
+ /* Inline palette icon in help text */
238
  .inline-palette {
239
  display: inline-block;
240
  vertical-align: middle;
241
+ width: 18px;
242
+ height: 18px;
243
+ margin-bottom: -3px; /* aligns nicely with text */
244
+ margin-left: 2px;
245
+ margin-right: 2px;
246
+ object-fit: contain;
247
+ }
248
+ @media (max-width: 600px) {
249
+ .inline-palette {
250
+ width: 14px;
251
+ height: 14px;
252
+ margin-bottom: -2px;
253
+ }
254
  }
255
 
256
  /* COLOR SWATCH BUTTONS */
 
267
  display: inline-block;
268
  /* Remove excessive gap, let the container handle spacing */
269
  }
 
270
  @media (max-width: 600px) {
271
  .color-swatch-btn {
272
  width: 20px;
 
275
  }
276
  }
277
 
 
 
278
  .menu-content {
279
  display: none;
280
  position: absolute;