Skip to content

Instantly share code, notes, and snippets.

@chrisblackwell
Created October 26, 2012 18:43
Show Gist options
  • Save chrisblackwell/3960628 to your computer and use it in GitHub Desktop.
Save chrisblackwell/3960628 to your computer and use it in GitHub Desktop.
CSS Helpers
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
.hide {
display: none;
}
.show {
display: block;
}
code {
font: 0.8em/1.6 Monaco, Mono-Space, monospace;
}
.disabled {
pointer-events: none;
opacity: 0.5;
}
a {
text-decoration: none;
color: #08C;
transition: all 0.3s ease-out;
position: relative;
padding: .5em;
margin: -.5em;
}
a:hover {
color: #0AF;
}
.ir {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment