| 1 |
/* Config Generator */ |
| 2 |
|
| 3 |
/* Hidden utility */ |
| 4 |
.cg-hidden { |
| 5 |
display: none !important; |
| 6 |
} |
| 7 |
|
| 8 |
/* Open button */ |
| 9 |
.cg-open-btn { |
| 10 |
display: inline-block; |
| 11 |
padding: 8px 20px; |
| 12 |
background: var(--md-primary-fg-color); |
| 13 |
color: #fff; |
| 14 |
border: none; |
| 15 |
border-radius: 4px; |
| 16 |
font-size: 0.85rem; |
| 17 |
font-weight: 500; |
| 18 |
cursor: pointer; |
| 19 |
font-family: inherit; |
| 20 |
transition: opacity 0.15s; |
| 21 |
} |
| 22 |
|
| 23 |
.cg-open-btn:hover { |
| 24 |
opacity: 0.85; |
| 25 |
} |
| 26 |
|
| 27 |
/* Modal overlay */ |
| 28 |
.cg-modal { |
| 29 |
position: fixed; |
| 30 |
inset: 0; |
| 31 |
z-index: 1000; |
| 32 |
} |
| 33 |
|
| 34 |
.cg-modal-backdrop { |
| 35 |
position: absolute; |
| 36 |
inset: 0; |
| 37 |
background: rgba(0, 0, 0, 0.5); |
| 38 |
} |
| 39 |
|
| 40 |
.cg-modal-dialog { |
| 41 |
position: absolute; |
| 42 |
inset: 24px; |
| 43 |
display: flex; |
| 44 |
flex-direction: column; |
| 45 |
background: #fff; |
| 46 |
border-radius: 10px; |
| 47 |
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); |
| 48 |
overflow: hidden; |
| 49 |
font-size: 0.78rem; |
| 50 |
} |
| 51 |
|
| 52 |
.cg-modal-header { |
| 53 |
display: flex; |
| 54 |
align-items: center; |
| 55 |
justify-content: space-between; |
| 56 |
padding: 12px 20px; |
| 57 |
border-bottom: 1px solid #ddd; |
| 58 |
flex-shrink: 0; |
| 59 |
} |
| 60 |
|
| 61 |
.cg-modal-header-left { |
| 62 |
display: flex; |
| 63 |
align-items: baseline; |
| 64 |
gap: 12px; |
| 65 |
min-width: 0; |
| 66 |
} |
| 67 |
|
| 68 |
.cg-modal-title { |
| 69 |
font-weight: 600; |
| 70 |
font-size: 0.95rem; |
| 71 |
white-space: nowrap; |
| 72 |
} |
| 73 |
|
| 74 |
.cg-badge-beta { |
| 75 |
display: inline-block; |
| 76 |
padding: 1px 8px; |
| 77 |
margin-left: 8px; |
| 78 |
background: var(--md-primary-fg-color); |
| 79 |
color: #fff; |
| 80 |
font-size: 0.6rem; |
| 81 |
font-weight: 600; |
| 82 |
border-radius: 10px; |
| 83 |
letter-spacing: 0.5px; |
| 84 |
vertical-align: middle; |
| 85 |
} |
| 86 |
|
| 87 |
.cg-modal-desc { |
| 88 |
font-size: 0.75rem; |
| 89 |
color: #888; |
| 90 |
} |
| 91 |
|
| 92 |
.cg-modal-header-actions { |
| 93 |
display: flex; |
| 94 |
align-items: center; |
| 95 |
gap: 8px; |
| 96 |
} |
| 97 |
|
| 98 |
.cg-modal-reset { |
| 99 |
background: none; |
| 100 |
border: 1px solid #ccc; |
| 101 |
border-radius: 4px; |
| 102 |
font-size: 0.75rem; |
| 103 |
color: #777; |
| 104 |
cursor: pointer; |
| 105 |
padding: 4px 12px; |
| 106 |
font-family: inherit; |
| 107 |
transition: color 0.15s, border-color 0.15s; |
| 108 |
} |
| 109 |
|
| 110 |
.cg-modal-reset:hover { |
| 111 |
color: #333; |
| 112 |
border-color: #999; |
| 113 |
} |
| 114 |
|
| 115 |
.cg-modal-close { |
| 116 |
background: none; |
| 117 |
border: none; |
| 118 |
font-size: 1.4rem; |
| 119 |
color: #999; |
| 120 |
cursor: pointer; |
| 121 |
padding: 0 4px; |
| 122 |
line-height: 1; |
| 123 |
} |
| 124 |
|
| 125 |
.cg-modal-close:hover { |
| 126 |
color: #333; |
| 127 |
} |
| 128 |
|
| 129 |
/* Modal body: left + right */ |
| 130 |
.cg-modal-body { |
| 131 |
display: flex; |
| 132 |
flex: 1; |
| 133 |
min-height: 0; |
| 134 |
overflow: hidden; |
| 135 |
} |
| 136 |
|
| 137 |
/* Left panel */ |
| 138 |
#cg-left { |
| 139 |
flex: 1; |
| 140 |
display: flex; |
| 141 |
flex-direction: column; |
| 142 |
border-right: 1px solid #ddd; |
| 143 |
min-width: 0; |
| 144 |
} |
| 145 |
|
| 146 |
.cg-nav { |
| 147 |
display: flex; |
| 148 |
flex-wrap: wrap; |
| 149 |
gap: 0; |
| 150 |
border-bottom: 1px solid #ddd; |
| 151 |
flex-shrink: 0; |
| 152 |
padding: 0 16px; |
| 153 |
} |
| 154 |
|
| 155 |
.cg-nav-tab { |
| 156 |
padding: 9px 14px; |
| 157 |
cursor: pointer; |
| 158 |
font-size: 0.78rem; |
| 159 |
font-weight: 500; |
| 160 |
color: #777; |
| 161 |
border-bottom: 2px solid transparent; |
| 162 |
margin-bottom: -1px; |
| 163 |
user-select: none; |
| 164 |
transition: color 0.15s, border-color 0.15s; |
| 165 |
white-space: nowrap; |
| 166 |
} |
| 167 |
|
| 168 |
.cg-nav-tab:hover { |
| 169 |
color: #444; |
| 170 |
} |
| 171 |
|
| 172 |
.cg-nav-tab.active { |
| 173 |
color: var(--md-primary-fg-color); |
| 174 |
border-bottom-color: var(--md-primary-fg-color); |
| 175 |
} |
| 176 |
|
| 177 |
.cg-panels { |
| 178 |
flex: 1; |
| 179 |
overflow-y: auto; |
| 180 |
padding: 16px 20px; |
| 181 |
} |
| 182 |
|
| 183 |
.cg-panel { |
| 184 |
display: none; |
| 185 |
} |
| 186 |
|
| 187 |
.cg-panel.active { |
| 188 |
display: block; |
| 189 |
} |
| 190 |
|
| 191 |
.cg-panel-desc { |
| 192 |
font-size: 0.75rem; |
| 193 |
color: #888; |
| 194 |
margin-bottom: 12px; |
| 195 |
line-height: 1.5; |
| 196 |
} |
| 197 |
|
| 198 |
.cg-panel-desc a { |
| 199 |
color: var(--md-primary-fg-color); |
| 200 |
} |
| 201 |
|
| 202 |
.cg-help { |
| 203 |
color: var(--md-primary-fg-color); |
| 204 |
text-decoration: none; |
| 205 |
margin-left: 4px; |
| 206 |
vertical-align: middle; |
| 207 |
flex-shrink: 0; |
| 208 |
transition: color 0.15s; |
| 209 |
} |
| 210 |
|
| 211 |
.cg-help:hover { |
| 212 |
color: var(--md-primary-fg-color--dark, #2a6e5f); |
| 213 |
} |
| 214 |
|
| 215 |
/* Right panel */ |
| 216 |
#cg-right { |
| 217 |
flex: 1; |
| 218 |
display: flex; |
| 219 |
flex-direction: column; |
| 220 |
min-width: 0; |
| 221 |
} |
| 222 |
|
| 223 |
.cg-output-tabs { |
| 224 |
display: flex; |
| 225 |
border-bottom: 1px solid #ddd; |
| 226 |
flex-shrink: 0; |
| 227 |
padding: 0 16px; |
| 228 |
} |
| 229 |
|
| 230 |
.cg-output-tab { |
| 231 |
padding: 9px 14px; |
| 232 |
cursor: pointer; |
| 233 |
font-size: 0.78rem; |
| 234 |
font-weight: 500; |
| 235 |
border-bottom: 2px solid transparent; |
| 236 |
margin-bottom: -1px; |
| 237 |
color: #777; |
| 238 |
transition: color 0.15s, border-color 0.15s; |
| 239 |
user-select: none; |
| 240 |
white-space: nowrap; |
| 241 |
} |
| 242 |
|
| 243 |
.cg-output-tab:hover { |
| 244 |
color: #444; |
| 245 |
} |
| 246 |
|
| 247 |
.cg-output-tab.active { |
| 248 |
color: var(--md-primary-fg-color); |
| 249 |
border-bottom-color: var(--md-primary-fg-color); |
| 250 |
} |
| 251 |
|
| 252 |
.cg-btn-copy { |
| 253 |
margin-left: auto; |
| 254 |
background: none; |
| 255 |
color: #777; |
| 256 |
border: none; |
| 257 |
border-bottom: 2px solid transparent; |
| 258 |
margin-bottom: -1px; |
| 259 |
padding: 9px 10px; |
| 260 |
cursor: pointer; |
| 261 |
line-height: 1; |
| 262 |
display: flex; |
| 263 |
align-items: center; |
| 264 |
justify-content: center; |
| 265 |
transition: color 0.15s; |
| 266 |
} |
| 267 |
|
| 268 |
.cg-btn-copy:hover { |
| 269 |
color: #333; |
| 270 |
} |
| 271 |
|
| 272 |
.cg-output-wrap { |
| 273 |
flex: 1; |
| 274 |
overflow: auto; |
| 275 |
padding: 16px 20px; |
| 276 |
display: flex; |
| 277 |
flex-direction: column; |
| 278 |
} |
| 279 |
|
| 280 |
.cg-output-wrap pre { |
| 281 |
margin: 0; |
| 282 |
padding: 8px 10px; |
| 283 |
background: #f5f5f5; |
| 284 |
color: #333; |
| 285 |
border: 1px solid #ddd; |
| 286 |
border-radius: 6px; |
| 287 |
overflow-x: auto; |
| 288 |
font-size: 0.76rem; |
| 289 |
line-height: 1.5; |
| 290 |
flex: 1; |
| 291 |
white-space: pre; |
| 292 |
} |
| 293 |
|
| 294 |
.cg-empty-msg { |
| 295 |
color: #888; |
| 296 |
font-style: italic; |
| 297 |
} |
| 298 |
|
| 299 |
.cg-warning { |
| 300 |
padding: 6px 10px; |
| 301 |
margin-top: 8px; |
| 302 |
background: #fff3cd; |
| 303 |
color: #856404; |
| 304 |
border: 1px solid #ffc107; |
| 305 |
border-radius: 4px; |
| 306 |
font-size: 0.76rem; |
| 307 |
} |
| 308 |
|
| 309 |
/* Form fields */ |
| 310 |
.cg-field { |
| 311 |
margin-bottom: 0; |
| 312 |
padding: 8px 12px; |
| 313 |
} |
| 314 |
|
| 315 |
.cg-field:nth-child(odd) { |
| 316 |
background: #f8f8f8; |
| 317 |
} |
| 318 |
|
| 319 |
.cg-field:nth-child(even) { |
| 320 |
background: #fff; |
| 321 |
} |
| 322 |
|
| 323 |
.cg-field > label { |
| 324 |
display: block; |
| 325 |
font-weight: 500; |
| 326 |
margin-bottom: 4px; |
| 327 |
font-size: 0.78rem; |
| 328 |
color: #555; |
| 329 |
} |
| 330 |
|
| 331 |
.cg-field input[type="text"], |
| 332 |
.cg-field input[type="password"], |
| 333 |
.cg-field select { |
| 334 |
width: 100%; |
| 335 |
padding: 6px 8px; |
| 336 |
border: 1px solid #ccc; |
| 337 |
border-radius: 4px; |
| 338 |
font-size: 0.78rem; |
| 339 |
font-family: inherit; |
| 340 |
box-sizing: border-box; |
| 341 |
background: #fff; |
| 342 |
} |
| 343 |
|
| 344 |
.cg-field input[type="text"]:focus, |
| 345 |
.cg-field input[type="password"]:focus, |
| 346 |
.cg-field select:focus { |
| 347 |
border-color: var(--md-primary-fg-color); |
| 348 |
outline: none; |
| 349 |
box-shadow: 0 0 0 2px rgba(51, 133, 116, 0.15); |
| 350 |
} |
| 351 |
|
| 352 |
.cg-checkbox { |
| 353 |
display: flex; |
| 354 |
align-items: center; |
| 355 |
gap: 6px; |
| 356 |
margin-bottom: 10px; |
| 357 |
} |
| 358 |
|
| 359 |
.cg-checkbox input[type="checkbox"] { |
| 360 |
accent-color: var(--md-primary-fg-color); |
| 361 |
} |
| 362 |
|
| 363 |
.cg-checkbox label { |
| 364 |
font-weight: 500; |
| 365 |
font-size: 0.78rem; |
| 366 |
margin: 0; |
| 367 |
cursor: pointer; |
| 368 |
} |
| 369 |
|
| 370 |
.cg-radio-group { |
| 371 |
display: flex; |
| 372 |
flex-direction: column; |
| 373 |
gap: 4px; |
| 374 |
} |
| 375 |
|
| 376 |
.cg-radio-group label { |
| 377 |
display: flex; |
| 378 |
align-items: center; |
| 379 |
gap: 4px; |
| 380 |
font-weight: 400; |
| 381 |
font-size: 0.78rem; |
| 382 |
cursor: pointer; |
| 383 |
} |
| 384 |
|
| 385 |
.cg-radio-group input[type="radio"] { |
| 386 |
accent-color: var(--md-primary-fg-color); |
| 387 |
} |
| 388 |
|
| 389 |
/* Inline field: label + control side by side */ |
| 390 |
.cg-inline-field { |
| 391 |
display: flex; |
| 392 |
align-items: center; |
| 393 |
gap: 12px; |
| 394 |
} |
| 395 |
|
| 396 |
.cg-inline-field > label { |
| 397 |
margin-bottom: 0; |
| 398 |
width: 60%; |
| 399 |
flex-shrink: 0; |
| 400 |
} |
| 401 |
|
| 402 |
.cg-panel:not(#cg-panel-general) .cg-inline-field > label { |
| 403 |
width: 50%; |
| 404 |
} |
| 405 |
|
| 406 |
.cg-inline-field > input[type="text"], |
| 407 |
.cg-inline-field > select { |
| 408 |
padding: 4px 10px; |
| 409 |
border: 1px solid #ccc; |
| 410 |
border-radius: 4px; |
| 411 |
font-size: 0.75rem; |
| 412 |
font-family: inherit; |
| 413 |
box-sizing: border-box; |
| 414 |
line-height: 1.4; |
| 415 |
background: #fff; |
| 416 |
} |
| 417 |
|
| 418 |
.cg-inline-field > input[type="text"]:focus, |
| 419 |
.cg-inline-field > select:focus { |
| 420 |
border-color: var(--md-primary-fg-color); |
| 421 |
outline: none; |
| 422 |
box-shadow: 0 0 0 2px rgba(51, 133, 116, 0.15); |
| 423 |
} |
| 424 |
|
| 425 |
#cg-email-in-section { |
| 426 |
margin-top: 20px; |
| 427 |
} |
| 428 |
|
| 429 |
.cg-pg-label { |
| 430 |
font-size: 0.75rem; |
| 431 |
color: #888; |
| 432 |
font-style: italic; |
| 433 |
} |
| 434 |
|
| 435 |
/* Button group toggle */ |
| 436 |
.cg-btn-group { |
| 437 |
display: flex; |
| 438 |
flex-shrink: 0; |
| 439 |
} |
| 440 |
|
| 441 |
.cg-btn-group label { |
| 442 |
cursor: pointer; |
| 443 |
margin: 0; |
| 444 |
} |
| 445 |
|
| 446 |
.cg-btn-group input[type="radio"] { |
| 447 |
display: none; |
| 448 |
} |
| 449 |
|
| 450 |
.cg-btn-group span { |
| 451 |
display: block; |
| 452 |
padding: 4px 14px; |
| 453 |
font-size: 0.75rem; |
| 454 |
font-weight: 500; |
| 455 |
line-height: 1.4; |
| 456 |
border: 1px solid #ccc; |
| 457 |
color: #555; |
| 458 |
background: #fff; |
| 459 |
transition: background 0.15s, color 0.15s, border-color 0.15s; |
| 460 |
user-select: none; |
| 461 |
} |
| 462 |
|
| 463 |
.cg-btn-group label:first-child span { |
| 464 |
border-radius: 4px 0 0 4px; |
| 465 |
} |
| 466 |
|
| 467 |
.cg-btn-group label:last-child span { |
| 468 |
border-radius: 0 4px 4px 0; |
| 469 |
} |
| 470 |
|
| 471 |
.cg-btn-group label + label span { |
| 472 |
margin-left: -1px; |
| 473 |
} |
| 474 |
|
| 475 |
.cg-btn-group input[type="radio"]:checked + span { |
| 476 |
background: var(--md-primary-fg-color); |
| 477 |
color: #fff; |
| 478 |
border-color: var(--md-primary-fg-color); |
| 479 |
position: relative; |
| 480 |
z-index: 1; |
| 481 |
} |
| 482 |
|
| 483 |
.cg-feature-grid { |
| 484 |
display: flex; |
| 485 |
flex-direction: column; |
| 486 |
gap: 5px; |
| 487 |
} |
| 488 |
|
| 489 |
.cg-feature-row { |
| 490 |
display: flex; |
| 491 |
align-items: center; |
| 492 |
gap: 8px; |
| 493 |
} |
| 494 |
|
| 495 |
.cg-feature-grid label { |
| 496 |
display: flex; |
| 497 |
align-items: center; |
| 498 |
gap: 6px; |
| 499 |
font-size: 0.78rem; |
| 500 |
cursor: pointer; |
| 501 |
} |
| 502 |
|
| 503 |
.cg-feature-grid input[type="checkbox"] { |
| 504 |
accent-color: var(--md-primary-fg-color); |
| 505 |
} |
| 506 |
|
| 507 |
.cg-btn-configure { |
| 508 |
background: none; |
| 509 |
border: 1px solid var(--md-primary-fg-color); |
| 510 |
border-radius: 10px; |
| 511 |
color: var(--md-primary-fg-color); |
| 512 |
font-size: 0.68rem; |
| 513 |
font-family: inherit; |
| 514 |
padding: 1px 10px; |
| 515 |
cursor: pointer; |
| 516 |
white-space: nowrap; |
| 517 |
transition: background 0.15s, color 0.15s; |
| 518 |
} |
| 519 |
|
| 520 |
.cg-btn-configure:hover { |
| 521 |
background: var(--md-primary-fg-color); |
| 522 |
color: #fff; |
| 523 |
} |
| 524 |
|
| 525 |
/* Repeatable rows */ |
| 526 |
.cg-repeatable-row { |
| 527 |
display: flex; |
| 528 |
gap: 6px; |
| 529 |
align-items: center; |
| 530 |
margin-bottom: 6px; |
| 531 |
flex-wrap: wrap; |
| 532 |
} |
| 533 |
|
| 534 |
.cg-repeatable-row input, |
| 535 |
.cg-repeatable-row select { |
| 536 |
flex: 1; |
| 537 |
min-width: 80px; |
| 538 |
padding: 5px 6px; |
| 539 |
border: 1px solid #ccc; |
| 540 |
border-radius: 4px; |
| 541 |
font-size: 0.75rem; |
| 542 |
font-family: inherit; |
| 543 |
box-sizing: border-box; |
| 544 |
} |
| 545 |
|
| 546 |
.cg-repeatable-row input:focus, |
| 547 |
.cg-repeatable-row select:focus { |
| 548 |
border-color: var(--md-primary-fg-color); |
| 549 |
outline: none; |
| 550 |
} |
| 551 |
|
| 552 |
.cg-repeatable-row input:disabled, |
| 553 |
.cg-repeatable-row select:disabled { |
| 554 |
background: #eee; |
| 555 |
color: #999; |
| 556 |
cursor: not-allowed; |
| 557 |
} |
| 558 |
|
| 559 |
.cg-btn-remove { |
| 560 |
background: none; |
| 561 |
border: 1px solid #ccc; |
| 562 |
border-radius: 4px; |
| 563 |
cursor: pointer; |
| 564 |
font-size: 0.9rem; |
| 565 |
padding: 5px 8px; |
| 566 |
color: #999; |
| 567 |
line-height: 1; |
| 568 |
} |
| 569 |
|
| 570 |
.cg-btn-remove:hover { |
| 571 |
background: #fee; |
| 572 |
border-color: #c66; |
| 573 |
color: #c33; |
| 574 |
} |
| 575 |
|
| 576 |
.cg-btn-add { |
| 577 |
background: none; |
| 578 |
border: 1px dashed #bbb; |
| 579 |
border-radius: 4px; |
| 580 |
cursor: pointer; |
| 581 |
padding: 5px 10px; |
| 582 |
font-size: 0.75rem; |
| 583 |
color: #777; |
| 584 |
margin-top: 2px; |
| 585 |
} |
| 586 |
|
| 587 |
.cg-btn-add:hover { |
| 588 |
border-color: var(--md-primary-fg-color); |
| 589 |
color: var(--md-primary-fg-color); |
| 590 |
} |
| 591 |
|
| 592 |
/* Dark mode */ |
| 593 |
body[data-md-color-scheme="slate"] .cg-modal-dialog { |
| 594 |
background: #1e1e2e; |
| 595 |
} |
| 596 |
|
| 597 |
body[data-md-color-scheme="slate"] .cg-modal-header { |
| 598 |
border-bottom-color: #444; |
| 599 |
} |
| 600 |
|
| 601 |
body[data-md-color-scheme="slate"] .cg-modal-title { |
| 602 |
color: #ddd; |
| 603 |
} |
| 604 |
|
| 605 |
body[data-md-color-scheme="slate"] .cg-modal-desc { |
| 606 |
color: #777; |
| 607 |
} |
| 608 |
|
| 609 |
body[data-md-color-scheme="slate"] .cg-modal-reset { |
| 610 |
border-color: #555; |
| 611 |
color: #888; |
| 612 |
} |
| 613 |
|
| 614 |
body[data-md-color-scheme="slate"] .cg-modal-reset:hover { |
| 615 |
border-color: #888; |
| 616 |
color: #ddd; |
| 617 |
} |
| 618 |
|
| 619 |
body[data-md-color-scheme="slate"] .cg-modal-close { |
| 620 |
color: #777; |
| 621 |
} |
| 622 |
|
| 623 |
body[data-md-color-scheme="slate"] .cg-modal-close:hover { |
| 624 |
color: #ddd; |
| 625 |
} |
| 626 |
|
| 627 |
body[data-md-color-scheme="slate"] #cg-left { |
| 628 |
border-right-color: #444; |
| 629 |
} |
| 630 |
|
| 631 |
body[data-md-color-scheme="slate"] .cg-nav { |
| 632 |
border-bottom-color: #444; |
| 633 |
} |
| 634 |
|
| 635 |
body[data-md-color-scheme="slate"] .cg-nav-tab { |
| 636 |
color: #888; |
| 637 |
} |
| 638 |
|
| 639 |
body[data-md-color-scheme="slate"] .cg-nav-tab:hover { |
| 640 |
color: #bbb; |
| 641 |
} |
| 642 |
|
| 643 |
body[data-md-color-scheme="slate"] .cg-output-tabs { |
| 644 |
border-bottom-color: #444; |
| 645 |
} |
| 646 |
|
| 647 |
body[data-md-color-scheme="slate"] .cg-output-tab { |
| 648 |
color: #888; |
| 649 |
} |
| 650 |
|
| 651 |
body[data-md-color-scheme="slate"] .cg-output-tab:hover { |
| 652 |
color: #bbb; |
| 653 |
} |
| 654 |
|
| 655 |
body[data-md-color-scheme="slate"] .cg-btn-copy { |
| 656 |
color: #777; |
| 657 |
} |
| 658 |
|
| 659 |
body[data-md-color-scheme="slate"] .cg-btn-copy:hover { |
| 660 |
color: #bbb; |
| 661 |
} |
| 662 |
|
| 663 |
body[data-md-color-scheme="slate"] .cg-output-wrap pre { |
| 664 |
background: #161620; |
| 665 |
color: #ddd; |
| 666 |
border-color: #444; |
| 667 |
} |
| 668 |
|
| 669 |
body[data-md-color-scheme="slate"] .cg-field:nth-child(odd) { |
| 670 |
background: #232334; |
| 671 |
} |
| 672 |
|
| 673 |
body[data-md-color-scheme="slate"] .cg-field:nth-child(even) { |
| 674 |
background: #1e1e2e; |
| 675 |
} |
| 676 |
|
| 677 |
body[data-md-color-scheme="slate"] .cg-panel-desc { |
| 678 |
color: #777; |
| 679 |
} |
| 680 |
|
| 681 |
body[data-md-color-scheme="slate"] .cg-field > label { |
| 682 |
color: #aaa; |
| 683 |
} |
| 684 |
|
| 685 |
body[data-md-color-scheme="slate"] .cg-field input[type="text"], |
| 686 |
body[data-md-color-scheme="slate"] .cg-field input[type="password"], |
| 687 |
body[data-md-color-scheme="slate"] .cg-field select { |
| 688 |
background: #2a2a3a; |
| 689 |
border-color: #555; |
| 690 |
color: #ddd; |
| 691 |
} |
| 692 |
|
| 693 |
body[data-md-color-scheme="slate"] .cg-btn-group span { |
| 694 |
background: #2a2a3a; |
| 695 |
border-color: #555; |
| 696 |
color: #aaa; |
| 697 |
} |
| 698 |
|
| 699 |
body[data-md-color-scheme="slate"] .cg-btn-group input[type="radio"]:checked + span { |
| 700 |
background: var(--md-primary-fg-color); |
| 701 |
color: #fff; |
| 702 |
border-color: var(--md-primary-fg-color); |
| 703 |
} |
| 704 |
|
| 705 |
body[data-md-color-scheme="slate"] .cg-checkbox label { |
| 706 |
color: #ccc; |
| 707 |
} |
| 708 |
|
| 709 |
body[data-md-color-scheme="slate"] .cg-radio-group label { |
| 710 |
color: #ccc; |
| 711 |
} |
| 712 |
|
| 713 |
body[data-md-color-scheme="slate"] .cg-feature-grid label { |
| 714 |
color: #ccc; |
| 715 |
} |
| 716 |
|
| 717 |
body[data-md-color-scheme="slate"] .cg-repeatable-row input, |
| 718 |
body[data-md-color-scheme="slate"] .cg-repeatable-row select { |
| 719 |
background: #2a2a3a; |
| 720 |
border-color: #555; |
| 721 |
color: #ddd; |
| 722 |
} |
| 723 |
|
| 724 |
body[data-md-color-scheme="slate"] .cg-repeatable-row input:disabled, |
| 725 |
body[data-md-color-scheme="slate"] .cg-repeatable-row select:disabled { |
| 726 |
background: #1a1a28; |
| 727 |
color: #666; |
| 728 |
} |
| 729 |
|
| 730 |
body[data-md-color-scheme="slate"] .cg-btn-remove { |
| 731 |
border-color: #555; |
| 732 |
color: #888; |
| 733 |
} |
| 734 |
|
| 735 |
body[data-md-color-scheme="slate"] .cg-btn-add { |
| 736 |
border-color: #555; |
| 737 |
color: #888; |
| 738 |
} |
| 739 |
|
| 740 |
body[data-md-color-scheme="slate"] .cg-warning { |
| 741 |
background: #3a2e00; |
| 742 |
color: #ffc107; |
| 743 |
border-color: #665200; |
| 744 |
} |
| 745 |
|
| 746 |
/* Mobile toggle bar (hidden on desktop) */ |
| 747 |
.cg-mobile-toggle { |
| 748 |
display: none; |
| 749 |
} |
| 750 |
|
| 751 |
/* Responsive */ |
| 752 |
@media (max-width: 900px) { |
| 753 |
.cg-modal-dialog { |
| 754 |
inset: 0; |
| 755 |
border-radius: 0; |
| 756 |
} |
| 757 |
|
| 758 |
.cg-modal-header { |
| 759 |
padding: 8px 16px; |
| 760 |
} |
| 761 |
|
| 762 |
.cg-modal-title { |
| 763 |
font-size: 0.85rem; |
| 764 |
} |
| 765 |
|
| 766 |
.cg-modal-desc { |
| 767 |
display: none; |
| 768 |
} |
| 769 |
|
| 770 |
.cg-modal-body { |
| 771 |
flex-direction: column; |
| 772 |
} |
| 773 |
|
| 774 |
.cg-mobile-toggle { |
| 775 |
display: flex; |
| 776 |
flex-shrink: 0; |
| 777 |
border-bottom: 1px solid #ddd; |
| 778 |
} |
| 779 |
|
| 780 |
.cg-mobile-toggle-btn { |
| 781 |
flex: 1; |
| 782 |
padding: 8px 0; |
| 783 |
border: none; |
| 784 |
background: #f5f5f5; |
| 785 |
font-size: 0.78rem; |
| 786 |
font-weight: 500; |
| 787 |
font-family: inherit; |
| 788 |
color: #777; |
| 789 |
cursor: pointer; |
| 790 |
transition: background 0.15s, color 0.15s; |
| 791 |
} |
| 792 |
|
| 793 |
.cg-mobile-toggle-btn.active { |
| 794 |
background: #fff; |
| 795 |
color: var(--md-primary-fg-color); |
| 796 |
box-shadow: inset 0 -2px 0 var(--md-primary-fg-color); |
| 797 |
} |
| 798 |
|
| 799 |
#cg-left { |
| 800 |
border-right: none; |
| 801 |
flex: 1; |
| 802 |
min-height: 0; |
| 803 |
} |
| 804 |
|
| 805 |
#cg-right { |
| 806 |
flex: 1; |
| 807 |
display: none; |
| 808 |
min-height: 0; |
| 809 |
} |
| 810 |
|
| 811 |
#cg-right.cg-mobile-active { |
| 812 |
display: flex; |
| 813 |
} |
| 814 |
|
| 815 |
#cg-left.cg-mobile-hidden { |
| 816 |
display: none; |
| 817 |
} |
| 818 |
|
| 819 |
.cg-nav { |
| 820 |
overflow-x: auto; |
| 821 |
flex-wrap: nowrap; |
| 822 |
-webkit-overflow-scrolling: touch; |
| 823 |
} |
| 824 |
|
| 825 |
.cg-inline-field { |
| 826 |
flex-direction: column; |
| 827 |
align-items: stretch; |
| 828 |
gap: 4px; |
| 829 |
} |
| 830 |
|
| 831 |
.cg-inline-field > label { |
| 832 |
width: 100%; |
| 833 |
} |
| 834 |
|
| 835 |
.cg-panel:not(#cg-panel-general) .cg-inline-field > label { |
| 836 |
width: 100%; |
| 837 |
} |
| 838 |
} |
| 839 |
|
| 840 |
/* Dark mode mobile toggle */ |
| 841 |
body[data-md-color-scheme="slate"] .cg-mobile-toggle { |
| 842 |
border-bottom-color: #444; |
| 843 |
} |
| 844 |
|
| 845 |
body[data-md-color-scheme="slate"] .cg-mobile-toggle-btn { |
| 846 |
background: #2a2a3a; |
| 847 |
color: #888; |
| 848 |
} |
| 849 |
|
| 850 |
body[data-md-color-scheme="slate"] .cg-mobile-toggle-btn.active { |
| 851 |
background: #1e1e2e; |
| 852 |
color: var(--md-primary-fg-color); |
| 853 |
} |