Skip to content

Commit 789881b

Browse files
committed
Merge pull request #304 from tilomitra/grids-responsive-old-ie
Add grids-responsive-old-ie.css
2 parents da94ef2 + a3dd4a1 commit 789881b

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

Gruntfile.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,18 @@ grunt.initConfig({
210210
}
211211
},
212212

213+
// -- Strip Media Queries Config -------------------------------------------
214+
215+
stripmq: {
216+
all: {
217+
files: {
218+
//follows the pattern 'destination': ['source']
219+
'build/grids-responsive-old-ie.css':
220+
['build/grids-responsive.css']
221+
}
222+
}
223+
},
224+
213225
// -- CSS Selectors Config -------------------------------------------------
214226

215227
css_selectors: {
@@ -249,6 +261,7 @@ grunt.loadNpmTasks('grunt-contrib-compress');
249261
grunt.loadNpmTasks('grunt-contrib-watch');
250262
grunt.loadNpmTasks('grunt-css-selectors');
251263
grunt.loadNpmTasks('grunt-pure-grids');
264+
grunt.loadNpmTasks('grunt-stripmq');
252265

253266
// Local tasks.
254267
grunt.loadTasks('tasks/');
@@ -260,6 +273,7 @@ grunt.registerTask('build', [
260273
'clean:build',
261274
'copy:build',
262275
'pure_grids',
276+
'stripmq',
263277
'concat:build',
264278
'clean:build_res',
265279
'css_selectors:base',

HISTORY.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ NEXT
1414
* __[!]__ Removed `.pure-g-r` from core, in favor of a mobile-first responsive
1515
grid system. ([#24][], [#267][])
1616

17-
To use the mobile-first grid system, you need to pull in `pure.css`, along with `grids-responsive.css`:
17+
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:
1818

1919
```html
2020
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/pure-min.css">
21-
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/grids-responsive-min.css">
21+
<!--[if lt IE 9]>
22+
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/grids-responsive-old-ie-min.css">
23+
<![endif]-->
24+
<!--[if gt IE 8]><!-->
25+
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0-rc-1/grids-responsive-min.css">
26+
<!--<![endif]-->
2227
```
2328

2429
Find out more about the new grid system at [http://purecss.io/grids/][Grids].

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"grunt-contrib-csslint": "~0.2.0",
1919
"grunt-contrib-watch": "~0.5.3",
2020
"grunt-css-selectors": "~1.0.0",
21-
"grunt-pure-grids": "0.0.1"
21+
"grunt-pure-grids": "0.0.1",
22+
"grunt-stripmq": "0.0.3"
2223
}
2324
}

src/grids/tests/manual/responsive.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88
<link rel="stylesheet" href="../../../../build/base.css">
99
<link rel="stylesheet" href="../../../../build/grids.css">
10-
<link rel="stylesheet" href="../../../../build/grids-responsive.css">
10+
11+
<!--[if lt IE 9]>
12+
<link rel="stylesheet" href="../../../../build/grids-responsive-old-ie.css">
13+
<![endif]-->
14+
<!--[if gt IE 8]><!-->
15+
<link rel="stylesheet" href="../../../../build/grids-responsive.css">
16+
<!--<![endif]-->
1117

1218
<style>
1319
.content {

0 commit comments

Comments
 (0)