Skip to content

Commit

Permalink
Merge pull request #304 from tilomitra/grids-responsive-old-ie
Browse files Browse the repository at this point in the history
Add grids-responsive-old-ie.css
  • Loading branch information
ericf committed Mar 7, 2014
2 parents da94ef2 + a3dd4a1 commit 789881b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ grunt.initConfig({
}
},

// -- Strip Media Queries Config -------------------------------------------

stripmq: {
all: {
files: {
//follows the pattern 'destination': ['source']
'build/grids-responsive-old-ie.css':
['build/grids-responsive.css']
}
}
},

// -- CSS Selectors Config -------------------------------------------------

css_selectors: {
Expand Down Expand Up @@ -249,6 +261,7 @@ grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-css-selectors');
grunt.loadNpmTasks('grunt-pure-grids');
grunt.loadNpmTasks('grunt-stripmq');

// Local tasks.
grunt.loadTasks('tasks/');
Expand All @@ -260,6 +273,7 @@ grunt.registerTask('build', [
'clean:build',
'copy:build',
'pure_grids',
'stripmq',
'concat:build',
'clean:build_res',
'css_selectors:base',
Expand Down
9 changes: 7 additions & 2 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ NEXT
* __[!]__ Removed `.pure-g-r` from core, in favor of a mobile-first responsive
grid system. ([#24][], [#267][])

To use the mobile-first grid system, you need to pull in `pure.css`, along with `grids-responsive.css`:
To use the mobile-first grid system, you need to pull in `pure.css`, along with `grids-responsive.css`. We also have a `grids-responsive-old-ie.css` that you can serve to IE < 9 users so that they can view a desktop-version of your website:

```html
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/pure-min.css">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/grids-responsive-min.css">
<!--[if lt IE 9]>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/grids-responsive-min.css">
<!--<![endif]-->
```

Find out more about the new grid system at [http://purecss.io/grids/][Grids].
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"grunt-contrib-csslint": "~0.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-css-selectors": "~1.0.0",
"grunt-pure-grids": "0.0.1"
"grunt-pure-grids": "0.0.1",
"grunt-stripmq": "0.0.3"
}
}
8 changes: 7 additions & 1 deletion src/grids/tests/manual/responsive.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

<link rel="stylesheet" href="../../../../build/base.css">
<link rel="stylesheet" href="../../../../build/grids.css">
<link rel="stylesheet" href="../../../../build/grids-responsive.css">

<!--[if lt IE 9]>
<link rel="stylesheet" href="../../../../build/grids-responsive-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="../../../../build/grids-responsive.css">
<!--<![endif]-->

<style>
.content {
Expand Down

0 comments on commit 789881b

Please sign in to comment.