Skip to content

Instantly share code, notes, and snippets.

View don1138's full-sized avatar
🐝

Don Schnitzius don1138

🐝
View GitHub Profile
@don1138
don1138 / glowing-inputs.css
Created June 11, 2013 21:50
CSS3 Glowing Inputs
/* CSS3 Glowing Inputs */
input[type=text], textarea {
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
-ms-transition: all 0.30s ease-in-out;
-o-transition: all 0.30s ease-in-out;
outline: none;
padding: 3px 0px 3px 3px;
margin: 5px 1px 3px 0px;
@don1138
don1138 / filetype-links.css
Created June 11, 2013 21:51
CSS Style Links Based On Filetype
@don1138
don1138 / hand-cursor.css
Created June 11, 2013 21:52
CSS Force Hand Cursor Over Clickable Items
/* Force Hand Cursor Over Clickable Items */
a[href], input[type='submit'], input[type='image'], label[for], select, button, .pointer {
cursor: pointer;
}
@don1138
don1138 / top-page-shadow.css
Created June 11, 2013 21:53
CSS Webpage Top Box Shadow
/* Webpage Top Box Shadow */
body:before {
content: "";
position: fixed;
top: -10px;
left: 0;
width: 100%;
height: 10px;
@don1138
don1138 / display-urls.css
Created June 11, 2013 21:54
CSS Display URLS In A Printed Webpage
/* Display URLS In A Printed Webpage */
@media print {
a:after {
content: " [" attr(href) "] ";
}
}
@don1138
don1138 / disable-mobile-highlights.css
Created June 11, 2013 21:55
CSS Disable Mobile Webkit Highlights
/* Disable Mobile Webkit Highlights */
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@don1138
don1138 / base64-trans-gif-1x.html
Created June 11, 2013 21:57
HTML Base-64 Encoded 1x1 Transparent GIF
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />
@don1138
don1138 / better-helvetica.css
Created June 11, 2013 21:59
CSS Better Helvetica Font Stack
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}
@don1138
don1138 / cleanup.css
Created June 11, 2013 22:00
CSS Cleanup Items
a{white-space:nowrap;} /* no break anchors */
a:active, a:focus{outline:none;} /* remove active link borders */
html{overflow:-moz-scrollbars-vertical;} /* Firefox scrollbar fix */
textarea{overflow:auto;} /* IE scrollbar fix */
input[type="button"] { cursor: pointer; } /* cursor display fix */
@don1138
don1138 / debug.css
Created June 11, 2013 22:00
CSS Debug Helpers
* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }