Skip to content

Instantly share code, notes, and snippets.

@arturkot
Created July 11, 2012 09:49
Show Gist options
  • Save arturkot/3089356 to your computer and use it in GitHub Desktop.
Save arturkot/3089356 to your computer and use it in GitHub Desktop.
CSS snippets
// Reset spaces between display inline-block els
.el {
letter-spacing: -.31em;
word-spacing: -.43em;
}
// Hide text
.el {
font: 0/0 a;
text-shadow: none;
color: transparent;
}
// Styling placeholders
.el::-webkit-input-placeholder {
}
.el:-moz-placeholder {
}
// Transitions
.transition-fast {
-webkit-transition: all .2s;
-moz-transition: all .2s;
-o-transition: all .2s;
-ms-trnasition: all .2s;
transition: all .2s;
}
.transition-normal {
-webkit-transition: all .5s;
-moz-transition: all .5s;
-o-transition: all .5s;
-ms-trnasition: all .5s;
transition: all .5s;
}
.transition-slow {
-webkit-transition: all 1s;
-moz-transition: all 1s;
-o-transition: all 1s;
-ms-trnasition: all 1s;
transition: all 1s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment