Skip to content

Instantly share code, notes, and snippets.

@jonathanmoore
Created September 11, 2020 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmoore/577ab131caf06cbb90a7f7e78cfea174 to your computer and use it in GitHub Desktop.
Save jonathanmoore/577ab131caf06cbb90a7f7e78cfea174 to your computer and use it in GitHub Desktop.
Change grouped tags into a checkbox style
.collection aside nav.tags ul {
max-height: 300px;
overflow: scroll;
}
.collection aside nav.tags li {
display: block;
}
.collection aside nav.tags li a {
background: transparent;
box-shadow: none;
padding: 4px 0;
display: block;
}
.collection aside nav.tags li a:before {
display: inline-block;
content: '';
height: 12px;
width: 12px;
position: relative;
top: 2px;
margin-right: 4px;
border: 1px solid #000;
}
.collection aside nav.tags li.active a:before {
background: #d99819;
}
.collection aside nav.tags li.active a {
background: none;
color: #000;
box-shadow: none;
}
.collection aside nav.tags li.active.close a:after {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment