Skip to content

Instantly share code, notes, and snippets.

@Spellhammer
Created June 10, 2021 17:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Spellhammer/5a15d252d8e664f1d93857db63a200c8 to your computer and use it in GitHub Desktop.
Save Spellhammer/5a15d252d8e664f1d93857db63a200c8 to your computer and use it in GitHub Desktop.
Filterable List - CSS
.fast-filter {
display: flex;
flex-direction: column;
align-items: center;
font-family: 'Rubik';
color: white;
}
.fast-filter label {
font-size: 22px;
font-weight: 600;
margin-bottom: 8px;
}
.fast-filter input {
border-style: none;
background-color: white;
border-radius: 8px;
padding: 8px;
font-size: 32px;
width: 100%;
}
.checkboxes {
margin-top: 16px;
}
.checkboxes [data-search-term] {
display: none;
}
.checkboxes label {
padding: 8px;
border-radius: 8px;
border: 1px solid white;
margin-left: 8px;
margin-right: 8px;
font-size: 16px;
text-align: center;
}
.checkboxes [data-search-term]:checked + label {
background-color: #58D68D;
border: 1px solid #58D68D;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment