Created
April 12, 2016 13:39
-
-
Save moderatorwes/0dba5d1855e2edf61487a0e94c1ac85d to your computer and use it in GitHub Desktop.
Zendesk: Formatting Tags
This file contains hidden or 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
<ul class="tags"> | |
Tags: {{#each article.labels}} | |
<li class="tag">{{identifier}}<li> | |
{{/each}} | |
</ul> |
This file contains hidden or 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
.tags { | |
list-style: none !important; | |
margin: 0; | |
overflow: hidden; | |
padding: 0; | |
display: inline-flex; | |
} | |
.tag { | |
background: #808080; | |
border-radius: 3px 0 0 3px; | |
color: #fff; | |
display: inline-block; | |
height: 26px; | |
line-height: 26px; | |
padding: 0 20px 0 23px; | |
position: relative; | |
margin: 0 10px 10px 0; | |
text-decoration: none; | |
-webkit-transition: color 0.2s; | |
margin-left: 5px; | |
} | |
.tag::before { | |
background: #fff; | |
border-radius: 10px; | |
box-shadow: inset 0 1px rgba(0, 0, 0, 0.25); | |
content: ''; | |
height: 6px; | |
left: 5px; | |
position: absolute; | |
width: 6px; | |
top: 10px; | |
} | |
.tag::after { | |
background: #fff; | |
border-bottom: 13px solid transparent; | |
border-left: 10px solid #808080; | |
border-top: 13px solid transparent; | |
content: ''; | |
position: absolute; | |
right: 0; | |
top: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment