Created
September 11, 2020 18:09
-
-
Save jonathanmoore/577ab131caf06cbb90a7f7e78cfea174 to your computer and use it in GitHub Desktop.
Change grouped tags into a checkbox style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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