Skip to content

Commit 8d98d6a

Browse files
committed
checkbox styleing
1 parent 12e984f commit 8d98d6a

File tree

1 file changed

+55
-6
lines changed

1 file changed

+55
-6
lines changed

pages/cookiegroup.php

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@
180180
$html .= '<button type="button" class="btn btn-default cm-deselect-all"><i class="fa fa-square-o"></i> Alle abwählen</button>';
181181
$html .= '</span>';
182182
$html .= '<input type="text" id="cm-cookie-search" class="form-control" placeholder="Suche..." style="width: 200px;">';
183-
$html .= '<span class="input-group-addon"><i class="rex-icon rex-icon-search"></i></span>';
184183
$html .= '</div>';
185184
$html .= '</div>';
186185

@@ -250,17 +249,67 @@
250249
vertical-align: top;
251250
padding-right: 10px;
252251
box-sizing: border-box;
253-
background: #f9f9f9;
254-
padding: 8px;
255-
border-radius: 4px;
256-
border: 1px solid #e0e0e0;
252+
/* Removed background and border */
253+
padding: 8px 0;
257254
}
258255
.consent-manager-cookie-list .checkbox:hover {
259-
background: #f0f0f0;
256+
/* Removed hover background */
260257
}
258+
259+
/* Custom Checkbox Styling */
260+
.consent-manager-cookie-list .checkbox input[type="checkbox"] {
261+
appearance: none;
262+
-webkit-appearance: none;
263+
-moz-appearance: none;
264+
width: 26px;
265+
height: 26px;
266+
border: 3px solid #e0e0e0;
267+
border-radius: 50%;
268+
cursor: pointer;
269+
position: relative;
270+
transition: all 0.3s ease;
271+
vertical-align: middle;
272+
margin-right: 8px;
273+
margin-top: 0;
274+
float: left; /* Ensure it floats left like standard checkbox */
275+
}
276+
277+
.consent-manager-cookie-list .checkbox input[type="checkbox"]::before {
278+
content: "";
279+
position: absolute;
280+
width: 12px;
281+
height: 12px;
282+
border-radius: 50%;
283+
background: #667eea;
284+
top: 50%;
285+
left: 50%;
286+
transform: translate(-50%, -50%) scale(0);
287+
transition: transform 0.3s ease;
288+
}
289+
290+
.consent-manager-cookie-list .checkbox input[type="checkbox"]:checked {
291+
border-color: #667eea;
292+
}
293+
294+
.consent-manager-cookie-list .checkbox input[type="checkbox"]:checked::before {
295+
transform: translate(-50%, -50%) scale(1);
296+
}
297+
298+
.consent-manager-cookie-list .checkbox input[type="checkbox"]:hover {
299+
border-color: #667eea;
300+
}
301+
302+
.consent-manager-cookie-list .checkbox input[type="checkbox"]:focus {
303+
outline: 2px solid #667eea;
304+
outline-offset: 2px;
305+
}
306+
261307
.consent-manager-cookie-list .checkbox label {
262308
width: 100%;
263309
cursor: pointer;
310+
display: block; /* Important for float layout */
311+
padding-left: 0;
312+
line-height: 28px; /* Align text vertically with 26px checkbox */
264313
}
265314
</style>';
266315

0 commit comments

Comments
 (0)