Spaces:
Running
Running
Update style/defaults/style.css
Browse files- 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
|
| 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 |
-
|
| 177 |
-
|
|
|
|
|
|
|
|
|
|
| 178 |
display: block;
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 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 |
-
.
|
| 195 |
-
width:
|
| 196 |
-
height:
|
| 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;
|