UNPKG

react-image-list-box

Version:
60 lines (50 loc) 1.35 kB
.dropdown-container { position: relative; height: 100%; margin-left: 10px; } .dropdown-button { height: 100%; cursor: pointer; background-color: white; border: 1px solid black; } .dropdown-content { width: 100%; top: 100%; position: absolute; background-color: white; padding: 3px; width: 100%; border: 1px solid black; z-index: 3; } .dropdown-item { color: black; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-item input { margin-right: 10px; } /* Style the checkbox label */ .dropdown-item:hover { background-color: #f1f1f1; } /* Custom checkbox styles */ .custom-checkbox { accent-color: black; /* This changes the color of the checkbox */ } /* When the checkbox is checked */ .custom-checkbox:checked { background-color: black; /* This changes the background color when checked */ } /* Label style when the checkbox is checked */ .custom-checkbox:checked + label { color: black; /* This changes the label text color when the associated checkbox is checked */ } /* Change border color for checked checkboxes */ .custom-checkbox:checked + label::before { border-color: black; /* This assumes you have a custom border set up in a ::before pseudo-element */ }