Skip to content

Instantly share code, notes, and snippets.

@matt-west
Created May 23, 2014 10:39
Show Gist options
  • Save matt-west/4d4acca6347f49026613 to your computer and use it in GitHub Desktop.
Save matt-west/4d4acca6347f49026613 to your computer and use it in GitHub Desktop.
Postach.io: Tag Cloud Styling
<!-- Styling for tag cloud -->
<style>
.tag-cloud {
width: 60%;
max-width: 1280px;
margin: 5em auto 1em;
text-align: center;
}
.tag-cloud h4 {
font-weight: bold;
padding-bottom: 2em;
}
.tag-cloud ul {
margin: 0;
padding: 0;
list-style: none;
}
.tag-cloud li {
display: inline-block;
margin: 5px;
}
.tag-cloud a,
.tag-cloud a:visited {
transition-property: all;
-webkit-transition-property: all;
transition-duration: 0.2s;
-webkit-transition-duration: 0.2s;
transition-timing-function: ease-in-out;
-webkit-transition-timing-function: ease-in-out;
transition-delay: initial;
-webkit-transition-delay: initial;
display: inline-block;
background-color: rgb(175, 183, 181);
color: rgb(255, 255, 255);
padding-top: 1px;
padding-right: 10px;
padding-bottom: 1px;
padding-left: 10px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
font-size: 0.9rem;
}
.tag-cloud a:hover,
.tag-cloud a:focus {
background-color: rgb(55, 204, 162);
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment