Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Created September 19, 2010 14:29
Show Gist options
  • Save aarongustafson/586808 to your computer and use it in GitHub Desktop.
Save aarongustafson/586808 to your computer and use it in GitHub Desktop.
/* =Color */
a:link, a:visited, a:active {
color: rgb(22, 127, 53);
}
a:hover {
color: rgb(242, 98, 42);
}
/* =Effects */
a {
transition-duration: .25s;
}
<link rel="stylesheet" type="text/css" href="c/main.css"/>
<!--[if IE 8]><link rel="stylesheet" type="text/css" href="/c/ie8.css"/><![endif]-->
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="/c/ie7.css"/><![endif]-->
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="/c/ie6.css"/><![endif]-->
@import 'not-for-IE7-or-below.css' screen;
@media screen, print, refrigerator {
/* IE will get these rules */
}
/* =Color */
.hproduct {
border-color: #ccc
color: #333;
}
@media screen {
.hproduct {
background: #000;
color: #ccc;
}
}
@media print {
.hproduct {
background: transparent;
color: #000;
}
}
/* … */
@media (min-width:801px) {
/* … */
}
@media (min-device-width:1024px) and (max-width:989px),
screen and (max-device-width:480px),
(max-device-width:480px) and (orientation:landscape),
(min-device-width:481px) and (orientation:portrait) {
/* Layout for narrow browser, iPad in portrait mode, and iPhone/iPod Touch in landscape mode */
}
@media (min-device-width:1024px) and (max-width:509px),
(max-device-width:480px) and (orientation:portrait) {
/* Layout for narrowest browser and iPhone/iPod Touch in portrait mode */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment