StarscreamDeceptions
commited on
Update src/display/css_html_js.py
Browse files- src/display/css_html_js.py +2 -44
src/display/css_html_js.py
CHANGED
@@ -94,50 +94,8 @@ custom_css = """
|
|
94 |
#box-filter > .form{
|
95 |
border: 0
|
96 |
}
|
97 |
-
|
98 |
-
|
99 |
-
display: none; /* 隐藏默认勾选框 */
|
100 |
-
}
|
101 |
-
|
102 |
-
/* 自定义复选框的标签样式 */
|
103 |
-
.gr_checkbox label {
|
104 |
-
display: inline-block;
|
105 |
-
padding: 10px;
|
106 |
-
border: 2px solid blue; /* 可选的边框颜色 */
|
107 |
-
border-radius: 5px; /* 圆角 */
|
108 |
-
cursor: pointer; /* 光标样式 */
|
109 |
-
}
|
110 |
-
|
111 |
-
/* 自定义复选框的选中状态 */
|
112 |
-
.gr_checkbox input[type="checkbox"]:checked + label {
|
113 |
-
background-color: blue; /* 选中时背景颜色为蓝色 */
|
114 |
-
color: white; /* 选中时文字颜色为白色 */
|
115 |
-
}
|
116 |
-
|
117 |
-
/* 显示复选框的勾选标志 */
|
118 |
-
.gr_checkbox label::before {
|
119 |
-
content: ""; /* 提供空内容 */
|
120 |
-
display: inline-block;
|
121 |
-
width: 20px; /* 控制复选框的宽度 */
|
122 |
-
height: 20px; /* 控制复选框的高度 */
|
123 |
-
margin-right: 10px; /* 复选框和文字之间的间距 */
|
124 |
-
border: 2px solid blue; /* 自定义复选框的边框颜色 */
|
125 |
-
border-radius: 3px; /* 圆角 */
|
126 |
-
background-color: transparent; /* 默认背景色 */
|
127 |
-
}
|
128 |
-
|
129 |
-
/* 当复选框选中时,显示蓝色背景和勾号 */
|
130 |
-
.gr_checkbox input[type="checkbox"]:checked + label::before {
|
131 |
-
background-color: blue; /* 选中的背景颜色 */
|
132 |
-
position: relative; /* 使勾号相对于复选框位置 */
|
133 |
-
}
|
134 |
-
.gr_checkbox input[type="checkbox"]:checked + label::after {
|
135 |
-
content: "✓"; /* 显示勾号 */
|
136 |
-
position: absolute; /* 绝对定位 */
|
137 |
-
left: 5px; /* 控制勾号的位置 */
|
138 |
-
top: -2px; /* 控制勾号的位置 */
|
139 |
-
color: white; /* 勾号颜色 */
|
140 |
-
font-weight: bold; /* 加粗勾号 */
|
141 |
}
|
142 |
"""
|
143 |
|
|
|
94 |
#box-filter > .form{
|
95 |
border: 0
|
96 |
}
|
97 |
+
.gr_checkbox input[type="checkbox"]:checked {
|
98 |
+
accent-color: blue; /* 设置选中颜色为蓝色 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
"""
|
101 |
|