Spaces:
Running
Running
Update style/defaults/style.css
Browse files- style/defaults/style.css +122 -62
style/defaults/style.css
CHANGED
|
@@ -261,71 +261,151 @@ progress::-moz-progress-bar {
|
|
| 261 |
box-sizing: border-box;
|
| 262 |
}
|
| 263 |
|
| 264 |
-
/* -----------
|
| 265 |
-
.
|
| 266 |
position: absolute;
|
| 267 |
top: 12px;
|
| 268 |
right: 12px;
|
| 269 |
display: flex;
|
| 270 |
-
flex-direction:
|
| 271 |
-
align-items: flex-
|
| 272 |
-
gap: 12px;
|
| 273 |
z-index: 1001;
|
| 274 |
}
|
| 275 |
@media (max-width: 600px) {
|
| 276 |
-
.
|
| 277 |
top: 8px;
|
| 278 |
right: 8px;
|
| 279 |
-
gap: 8px;
|
| 280 |
}
|
| 281 |
}
|
| 282 |
-
|
| 283 |
-
.viewer-controls .widget-button,
|
| 284 |
-
.viewer-controls .color-btn {
|
| 285 |
-
position: static !important; /* flex children, not absolute! */
|
| 286 |
-
margin: 0 !important;
|
| 287 |
-
}
|
| 288 |
-
|
| 289 |
-
/* --------- COLOR BUTTON STYLE: SQUARE, ROUNDED, MATCHING OTHERS --------- */
|
| 290 |
-
.color-btn {
|
| 291 |
width: 32px;
|
| 292 |
height: 32px;
|
|
|
|
|
|
|
| 293 |
border-radius: 8px;
|
| 294 |
-
|
| 295 |
-
background: #fff;
|
| 296 |
-
outline: none;
|
| 297 |
-
transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
|
| 298 |
cursor: pointer;
|
| 299 |
display: flex;
|
| 300 |
align-items: center;
|
| 301 |
justify-content: center;
|
| 302 |
box-shadow: 0 2px 8px rgba(0,0,0,0.07);
|
| 303 |
-
|
|
|
|
|
|
|
| 304 |
}
|
| 305 |
-
.color-btn
|
|
|
|
| 306 |
border-color: #4682B4;
|
| 307 |
box-shadow: 0 0 0 2.5px #97b9d7;
|
| 308 |
}
|
| 309 |
-
.color-btn:
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 313 |
}
|
| 314 |
-
|
| 315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
border: 1px solid #ccc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
}
|
| 318 |
-
.
|
| 319 |
-
|
| 320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 321 |
}
|
| 322 |
-
/* More color-btn[title="..."] as needed */
|
| 323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
@media (max-width: 600px) {
|
| 325 |
-
.color-btn {
|
| 326 |
-
width:
|
| 327 |
-
height:
|
| 328 |
-
border-radius:
|
| 329 |
}
|
| 330 |
}
|
| 331 |
|
|
@@ -349,38 +429,18 @@ progress::-moz-progress-bar {
|
|
| 349 |
justify-content: center;
|
| 350 |
padding: 0;
|
| 351 |
}
|
| 352 |
-
.widget-button {
|
| 353 |
-
width: 32px;
|
| 354 |
-
height: 32px;
|
| 355 |
-
background-color: #F2F0EF;
|
| 356 |
-
border: 1px solid #ccc;
|
| 357 |
-
border-radius: 8px;
|
| 358 |
-
cursor: pointer;
|
| 359 |
-
font-size: 16px;
|
| 360 |
-
color: #545454;
|
| 361 |
-
display: flex !important;
|
| 362 |
-
align-items: center;
|
| 363 |
-
justify-content: center;
|
| 364 |
-
transition: background-color 0.2s ease;
|
| 365 |
-
z-index: 1000;
|
| 366 |
-
opacity: 1 !important;
|
| 367 |
-
visibility: visible !important;
|
| 368 |
-
margin-right: 0;
|
| 369 |
-
}
|
| 370 |
-
.widget-button:hover { background-color: rgba(242,240,239,0.7); }
|
| 371 |
-
.fake-fullscreen .widget-button,
|
| 372 |
-
:fullscreen .widget-button,
|
| 373 |
-
:-webkit-full-screen .widget-button,
|
| 374 |
-
:-moz-full-screen .widget-button,
|
| 375 |
-
:-ms-fullscreen .widget-button { z-index: 10000; }
|
| 376 |
-
/* --- MOBILE adjustments for widget buttons --- */
|
| 377 |
@media (max-width: 600px) {
|
| 378 |
-
.widget-button {
|
| 379 |
width: 24px;
|
| 380 |
height: 24px;
|
| 381 |
font-size: 12px;
|
| 382 |
border-radius: 6px;
|
| 383 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
}
|
| 385 |
#application-canvas { width: 100%; height: 100%; display: block; }
|
| 386 |
html, body { margin: 0; padding: 0; height: 100%; }
|
|
|
|
| 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 |
|
|
|
|
| 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%; }
|