Skip to content

Instantly share code, notes, and snippets.

@tcelestino
Last active December 16, 2015 00:29
Show Gist options
  • Save tcelestino/5348085 to your computer and use it in GitHub Desktop.
Save tcelestino/5348085 to your computer and use it in GitHub Desktop.
custom stylesheets example
/* image replacement
Scott Kellum
*/
.ir {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
/* placeholder style
example david walsh
*/
::-webkit-input-placeholder { color:#f00; }
::-moz-placeholder { color:#f00; } /* firefox 19+ */
:-ms-input-placeholder { color:#f00; } /* ie */
input:-moz-placeholder { color:#f00; }
/* individual: webkit */
#field2::-webkit-input-placeholder { color:#00f; }
#field3::-webkit-input-placeholder { color:#090; background:lightgreen; text-transform:uppercase; }
#field4::-webkit-input-placeholder { font-style:italic; text-decoration:overline; letter-spacing:3px; color:#999; }
/* individual: mozilla */
#field2::-moz-placeholder { color:#00f; }
#field3::-moz-placeholder { color:#090; background:lightgreen; text-transform:uppercase; }
#field4::-moz-placeholder { font-style:italic; text-decoration:overline; letter-spacing:3px; color:#999; }
/* remove shadow input
example david walsh
*/
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"] {
-webkit-appearance: caret;
-moz-appearance: caret; /* mobile firefox too! */
}
/* text shadow 3d
by @mdo
*/
h1 {
text-shadow: 0 1px 0 #ccc,
0 2px 0 #c9c9c9,
0 3px 0 #bbb,
0 4px 0 #b9b9b9,
0 5px 0 #aaa,
0 6px 1px rgba(0,0,0,.1),
0 0 5px rgba(0,0,0,.1),
0 1px 3px rgba(0,0,0,.3),
0 3px 5px rgba(0,0,0,.2),
0 5px 10px rgba(0,0,0,.25),
0 10px 10px rgba(0,0,0,.2),
0 20px 20px rgba(0,0,0,.15);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment