Update style.css
Browse files
style.css
CHANGED
|
@@ -502,79 +502,50 @@ input[type="checkbox"] {
|
|
| 502 |
}
|
| 503 |
|
| 504 |
/* ========================================== */
|
| 505 |
-
/* 🎨
|
| 506 |
/* ========================================== */
|
| 507 |
-
.hud-checkbox {
|
| 508 |
-
/* 1. 干掉浏览器原生的丑陋样式 */
|
| 509 |
-
-webkit-appearance: none;
|
| 510 |
-
appearance: none;
|
| 511 |
-
width: 18px;
|
| 512 |
-
height: 18px;
|
| 513 |
-
border: 1px solid var(--border-light); /* 未选中时的灰色边框 */
|
| 514 |
-
border-radius: 4px; /* 圆角,更符合你的 UI */
|
| 515 |
-
background-color: transparent;
|
| 516 |
-
cursor: pointer;
|
| 517 |
-
position: relative;
|
| 518 |
-
transition: all 0.2s ease;
|
| 519 |
-
flex-shrink: 0; /* 防止被 flex 挤压 */
|
| 520 |
-
}
|
| 521 |
-
|
| 522 |
-
/* 2. 选中时的状态:底色变成珊瑚橘 */
|
| 523 |
-
.hud-checkbox:checked {
|
| 524 |
-
background-color: var(--accent) !important;
|
| 525 |
-
border-color: var(--accent) !important;
|
| 526 |
-
}
|
| 527 |
|
| 528 |
-
/*
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
/* 对钩的定位和大小 */
|
| 533 |
-
top: 2px;
|
| 534 |
-
left: 5px;
|
| 535 |
-
width: 4px;
|
| 536 |
-
height: 8px;
|
| 537 |
-
border: solid white; /* 🌟 纯白对钩 */
|
| 538 |
-
border-width: 0 2px 2px 0; /* 只留右边和下边的线 */
|
| 539 |
-
transform: rotate(45deg); /* 旋转 45 度变成对钩 */
|
| 540 |
-
}
|
| 541 |
-
|
| 542 |
-
/* ========================================== */
|
| 543 |
-
/* 🎨 统一左侧 Base LoRA 复选框 (橙底白钩) */
|
| 544 |
-
/* ========================================== */
|
| 545 |
-
.lora-row input[type="checkbox"].base-lora-cb {
|
| 546 |
-
/* 1. 干掉浏览器原生的丑陋样式 */
|
| 547 |
-
-webkit-appearance: none;
|
| 548 |
-
appearance: none;
|
| 549 |
|
| 550 |
-
|
| 551 |
-
width: 18px !important;
|
| 552 |
height: 18px !important;
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
background-color: transparent;
|
|
|
|
|
|
|
|
|
|
| 556 |
cursor: pointer;
|
| 557 |
position: relative;
|
| 558 |
transition: all 0.2s ease;
|
| 559 |
flex-shrink: 0;
|
| 560 |
-
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 561 |
}
|
| 562 |
|
| 563 |
-
/* 3. 选中时的状态:底色变
|
| 564 |
-
|
| 565 |
background-color: var(--accent) !important;
|
| 566 |
border-color: var(--accent) !important;
|
| 567 |
}
|
| 568 |
|
| 569 |
-
/* 4.
|
| 570 |
-
|
| 571 |
content: "";
|
| 572 |
position: absolute;
|
| 573 |
top: 2px;
|
| 574 |
left: 5px;
|
| 575 |
width: 4px;
|
| 576 |
height: 8px;
|
| 577 |
-
border: solid white;
|
| 578 |
-
border-width: 0 2px 2px 0;
|
| 579 |
transform: rotate(45deg);
|
| 580 |
}
|
|
|
|
| 502 |
}
|
| 503 |
|
| 504 |
/* ========================================== */
|
| 505 |
+
/* 🎨 全局 Checkbox 终极统一 (橙底白钩) */
|
| 506 |
/* ========================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 507 |
|
| 508 |
+
/* 1. 基础样式:干掉原生,统一灰色边框 */
|
| 509 |
+
input[type="checkbox"] {
|
| 510 |
+
-webkit-appearance: none !important;
|
| 511 |
+
appearance: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 512 |
|
| 513 |
+
width: 18px !important;
|
|
|
|
| 514 |
height: 18px !important;
|
| 515 |
+
|
| 516 |
+
/* 未选中时:深灰色底 + 灰色边框 */
|
| 517 |
+
background-color: transparent !important;
|
| 518 |
+
border: 1px solid var(--border-light) !important;
|
| 519 |
+
border-radius: 4px !important;
|
| 520 |
+
|
| 521 |
cursor: pointer;
|
| 522 |
position: relative;
|
| 523 |
transition: all 0.2s ease;
|
| 524 |
flex-shrink: 0;
|
| 525 |
+
margin: 0;
|
| 526 |
+
vertical-align: middle;
|
| 527 |
+
}
|
| 528 |
+
|
| 529 |
+
/* 2. 鼠标悬浮时的反馈 */
|
| 530 |
+
input[type="checkbox"]:hover {
|
| 531 |
+
border-color: #888 !important;
|
| 532 |
}
|
| 533 |
|
| 534 |
+
/* 3. 选中时的状态:底色变珊瑚橘,边框变珊瑚橘 */
|
| 535 |
+
input[type="checkbox"]:checked {
|
| 536 |
background-color: var(--accent) !important;
|
| 537 |
border-color: var(--accent) !important;
|
| 538 |
}
|
| 539 |
|
| 540 |
+
/* 4. 画一个纯白色的对钩 */
|
| 541 |
+
input[type="checkbox"]:checked::after {
|
| 542 |
content: "";
|
| 543 |
position: absolute;
|
| 544 |
top: 2px;
|
| 545 |
left: 5px;
|
| 546 |
width: 4px;
|
| 547 |
height: 8px;
|
| 548 |
+
border: solid white !important;
|
| 549 |
+
border-width: 0 2px 2px 0 !important;
|
| 550 |
transform: rotate(45deg);
|
| 551 |
}
|