Skip to content

Instantly share code, notes, and snippets.

View don1138's full-sized avatar
🐝

Don Schnitzius don1138

🐝
View GitHub Profile
@don1138
don1138 / text-effects.css
Created June 11, 2013 22:03
CSS Text Effects
.clean-black-text-on-white {
color: #222; text-shadow: 0 2px 1px #bbbaba;
filter: dropshadow(color=#bbbaba, offX=0,offY=1);
}
.soft-grey-shadow-on-grey {
background-color: #474747;
color: #999; text-shadow: 0 3px 8px #2a2a2a;
filter:dropshadow(color=#bbbaba, offX=0,offY=1);
}
@don1138
don1138 / sticky-footer.html
Created June 11, 2013 22:08
CSS Sticky Footer
@don1138
don1138 / margin-caps.css
Created June 11, 2013 22:09
CSS Margins for First/Last Items
* > :first-child { margin-top: 0 !important; margin-left: 0 !important; }
* > :last-child { margin-bottom: 0 !important; margin-right: 0 !important; }
@don1138
don1138 / text-breakouts.css
Created June 11, 2013 22:10
CSS Prevent Text Breakouts
.prevent-text-breakouts {
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
body {
/* The Browser makes its best guess with its own rendering engine */
/* results will vary based on the browser */
text-rendering: auto;
/* The Browser chooses page speed over font calculations and legibility */
text-rendering: optimizeSpeed;
/* The Browser chooses legibility over font calculations and page speed */
text-rendering: optimizeLegibility;
img {
max-width: 100%;
height: auto;
image-rendering: optimizeQuality;
}
pre {
background: #e4e4e4;
font-family: Consolas, "Liberation Mono", Courier, monospace;
font-weight: bold;
padding: 22px;
color: #777;
font-size: 14px;
line-height:1.32;
margin-bottom: 22px;
max-width: 100%;
/* CSS3 recognizes several media types, including print, handheld, and screen. iOS ignores print and handheld media queries because these types do not supply high-end web content. Therefore, use the screen media type query for iOS. */
/* To specify a style sheet that is just for iOS without affecting other devices, use the only keyword in combination with the screen keyword in your HTML file. Older browsers ignore the only keyword and won’t read your iOS style sheet. Use max-device-width, and min-device-width to describe the screen size. */
/* For example, to specify a style sheet for iPhone and iPod touch, use an expression similar to the following: */
<link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet">
/* To specify a style sheet for devices other than iOS, use an expression similar to the following: */
<link media="screen and (min-device-width: 481px)" href="not-small-device.css" type="text/css" rel="stylesheet">
/* To load styles intend
h1 a , h2 a , h3 a , h4 a , h5 a , h6 a {
color:inherit;
opacity:1;
}
h1 a:hover , h2 a:hover , h3 a:hover , h4 a:hover , h5 a:hover, h6 a:hover{
color:inherit;
opacity:0.8;
}
@media screen and (min-width: 720px) {
.table {
display: table;
width: 100%;
border-collapse: collapse;
}
}
.tr {
margin-bottom: 1.6rem;