Permalink
Browse files

Removing numbers.

  • Loading branch information...
1 parent a1f0506 commit c8117f9f17d693212b7f1c1a51850c687d951ee9 @benschwarz committed Aug 4, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 README.md
View
10 README.md
@@ -24,7 +24,7 @@ or, if you want the smaller (476 bytes!), lighter jQuery powered edition:
---
-1. Define your breakpoints in `<meta>` tags.
+* Define your breakpoints in `<meta>` tags.
``` html
<meta name="breakpoint" data="phone" media="(max-width: 480px)">
@@ -34,7 +34,7 @@ or, if you want the smaller (476 bytes!), lighter jQuery powered edition:
<meta name="breakpoint" data="retina" media="only screen and (-webkit-min-device-pixel-ratio : 2)">
```
-2. metaQuery will add/remove classes to the `<html>` node (`.breakpoint-<name-of-breakpoint>`) for you to utilise when the breakpoints are matched. (shorter than media queries. don't repeat yourself)
+* metaQuery will add/remove classes to the `<html>` node (`.breakpoint-<name-of-breakpoint>`) for you to utilise when the breakpoints are matched. (shorter than media queries. don't repeat yourself)
``` html
<style>
@@ -45,13 +45,13 @@ or, if you want the smaller (476 bytes!), lighter jQuery powered edition:
</style>
```
-3. Responsive images in one simple line.
+* Responsive images in one simple line.
``` html
<img src="./images/phone.jpg" data-mq-src="./images/[breakpoint].jpg">
```
-4. Add modernizr to detect support for matchMedia, then use either the official [matchMedia.js][matchMedia.js] polyfill, or [my version that'll also work for IE7 & 8][matchmedia-oldie]
+* Add modernizr to detect support for matchMedia, then use either the official [matchMedia.js][matchMedia.js] polyfill, or [my version that'll also work for IE7 & 8][matchmedia-oldie]
``` javascript
Modernizr.load([{
@@ -60,8 +60,6 @@ Modernizr.load([{
}]);
```
-5. Bask in glory.
-
## Adding your own javascript events with metaQuery.bind
Considering the HTML example above, say you wanted watch for breakpoint changes:

0 comments on commit c8117f9

Please sign in to comment.