Skip to content

Instantly share code, notes, and snippets.

View nhall's full-sized avatar

Nick Hall nhall

  • Fastspot
  • Baltimore
View GitHub Profile
@nhall
nhall / hi-res.css
Created May 19, 2013 04:50
CSS for swapping hi-res background images.
/*
-----------------------------------------------------------------------------
=High Resolution Images
----------------------------------------------------------------------------- */
@media screen and (-webkit-min-device-pixel-ratio: 1.3),
screen and (min--moz-device-pixel-ratio: 1.3),
screen and (-o-min-device-pixel-ratio: 2 / 1),
screen and (min-device-pixel-ratio: 1.3),
screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx) {
/*
-----------------------------------------------------------------------------
=Debugging Styles. Delete or comment these out once your site works well.
----------------------------------------------------------------------------- */
body:before {
content: "less than 320px";
font-size: 1.1em;
line-height: 1;
font-weight: bold;
padding: .5em;
@nhall
nhall / vcard.css
Last active December 17, 2015 11:59
Empty CSS selectors for a .vcard address.
.vcard {
position: absolute;
top: 2em;
left: 2em;
}
.vcard a {} /* Phone number links in mobile browsers */
.vcard a:hover {}
.vcard .org {}
.vcard .adr {}
.vcard .street-address {}