Spaces:
Running
Running
MiniMing commited on
Commit ·
c6ab134
1
Parent(s): 3ce64d0
fix: pill checklist selected state using :has(input:checked)
Browse files
dashboard/assets/custom.css
CHANGED
|
@@ -40,16 +40,13 @@ body {
|
|
| 40 |
.pill-checklist { display: flex; flex-wrap: wrap; gap: 6px; }
|
| 41 |
|
| 42 |
.pill-checklist input[type="checkbox"] {
|
| 43 |
-
|
| 44 |
-
opacity: 0;
|
| 45 |
-
width: 0;
|
| 46 |
-
height: 0;
|
| 47 |
-
pointer-events: none;
|
| 48 |
}
|
| 49 |
|
| 50 |
.pill-checklist label {
|
| 51 |
-
display: inline-
|
| 52 |
-
|
|
|
|
| 53 |
border: 1.5px solid #e1e5ec;
|
| 54 |
border-radius: 20px;
|
| 55 |
cursor: pointer;
|
|
@@ -64,7 +61,8 @@ body {
|
|
| 64 |
border-color: #1352f1;
|
| 65 |
color: #1352f1;
|
| 66 |
}
|
| 67 |
-
|
|
|
|
| 68 |
background: #1352f1;
|
| 69 |
color: #fff;
|
| 70 |
border-color: #1352f1;
|
|
|
|
| 40 |
.pill-checklist { display: flex; flex-wrap: wrap; gap: 6px; }
|
| 41 |
|
| 42 |
.pill-checklist input[type="checkbox"] {
|
| 43 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
.pill-checklist label {
|
| 47 |
+
display: inline-flex;
|
| 48 |
+
align-items: center;
|
| 49 |
+
padding: 5px 14px;
|
| 50 |
border: 1.5px solid #e1e5ec;
|
| 51 |
border-radius: 20px;
|
| 52 |
cursor: pointer;
|
|
|
|
| 61 |
border-color: #1352f1;
|
| 62 |
color: #1352f1;
|
| 63 |
}
|
| 64 |
+
/* input이 label 안에 있는 Dash 구조 대응 */
|
| 65 |
+
.pill-checklist label:has(input:checked) {
|
| 66 |
background: #1352f1;
|
| 67 |
color: #fff;
|
| 68 |
border-color: #1352f1;
|