Update src/display/css_html_js.py
Browse files- src/display/css_html_js.py +13 -11
src/display/css_html_js.py
CHANGED
|
@@ -94,25 +94,27 @@ custom_css = """
|
|
| 94 |
#box-filter > .form{
|
| 95 |
border: 0
|
| 96 |
}
|
| 97 |
-
/*
|
| 98 |
-
.gr_checkbox input
|
| 99 |
-
|
| 100 |
-
color: white; /* 选中时的文字颜色 */
|
| 101 |
}
|
| 102 |
|
|
|
|
| 103 |
.gr_checkbox label {
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
border-radius: 5px; /* 圆角 */
|
| 107 |
cursor: pointer; /* 鼠标悬停时显示手型光标 */
|
| 108 |
}
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
|
|
|
| 116 |
}
|
| 117 |
"""
|
| 118 |
|
|
|
|
| 94 |
#box-filter > .form{
|
| 95 |
border: 0
|
| 96 |
}
|
| 97 |
+
/* 隐藏默认复选框 */
|
| 98 |
+
.gr_checkbox input[type="checkbox"] {
|
| 99 |
+
display: none; /* 隐藏默认勾选框 */
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
+
/* 自定义复选框的标签样式 */
|
| 103 |
.gr_checkbox label {
|
| 104 |
+
display: inline-block;
|
| 105 |
+
padding: 10px;
|
|
|
|
| 106 |
cursor: pointer; /* 鼠标悬停时显示手型光标 */
|
| 107 |
}
|
| 108 |
|
| 109 |
+
/* 自定义复选框的选中状态 */
|
| 110 |
+
.gr_checkbox input[type="checkbox"]:checked + label {
|
| 111 |
+
background-color: blue; /* 选中时的背景颜色为蓝色 */
|
| 112 |
+
color: white; /* 选中时的文字颜色 */
|
| 113 |
}
|
| 114 |
|
| 115 |
+
/* 自定义复选框内的选中标识颜色 */
|
| 116 |
+
.gr_checkbox input[type="checkbox"]:checked + label::before {
|
| 117 |
+
background-color: blue; /* 勾选框内的颜色为蓝色 */
|
| 118 |
}
|
| 119 |
"""
|
| 120 |
|