Skip to content

Commit f21710a

Browse files
committed
Merge branch 'master' into remove-responsive-grid
2 parents 3cd8d78 + 58f2840 commit f21710a

File tree

13 files changed

+165
-65
lines changed

13 files changed

+165
-65
lines changed

Gruntfile.js

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var path = require('path');
2-
31
module.exports = function (grunt) {
42

53
// -- Config -------------------------------------------------------------------
@@ -9,6 +7,18 @@ grunt.initConfig({
97
pkg : grunt.file.readJSON('package.json'),
108
bower: grunt.file.readJSON('bower.json'),
119

10+
// -- bower.json Config ---------------------------------------------------------
11+
12+
bower_json: {
13+
release: {
14+
values: {
15+
main: 'pure.css'
16+
},
17+
18+
dest: 'build/'
19+
}
20+
},
21+
1222
// -- Clean Config ---------------------------------------------------------
1323

1424
clean: {
@@ -25,6 +35,11 @@ grunt.initConfig({
2535
dest : 'build/',
2636
expand : true,
2737
flatten: true
38+
},
39+
40+
release: {
41+
src : '{LICENSE.md,README.md,HISTORY.md}',
42+
dest: 'build/'
2843
}
2944
},
3045

@@ -115,7 +130,7 @@ grunt.initConfig({
115130

116131
cssmin: {
117132
options: {
118-
// report: 'gzip'
133+
noAdvanced: true
119134
},
120135

121136
files: {
@@ -130,17 +145,13 @@ grunt.initConfig({
130145
compress: {
131146
release: {
132147
options: {
133-
archive: 'release/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.zip'
148+
archive: 'release/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz'
134149
},
135150

136151
expand : true,
137152
flatten: true,
138-
dest : '<%= pkg.name %>/<%= pkg.version %>/',
139-
140-
src: [
141-
'{bower.json,LICENSE.md,README.md,HISTORY.md}',
142-
'build/*.css'
143-
]
153+
src : 'build/*',
154+
dest : '<%= pkg.name %>/<%= pkg.version %>/'
144155
}
145156
},
146157

@@ -167,7 +178,7 @@ grunt.initConfig({
167178
banner: [
168179
'/*!',
169180
'Pure v<%= pkg.version %>',
170-
'Copyright 2013 Yahoo! Inc. All rights reserved.',
181+
'Copyright 2014 Yahoo! Inc. All rights reserved.',
171182
'Licensed under the BSD License.',
172183
'https://github.com/yui/pure/blob/master/LICENSE.md',
173184
'*/\n'
@@ -179,11 +190,16 @@ grunt.initConfig({
179190
}
180191
},
181192

182-
// -- Grid Units Config ----------------------------------------------------
193+
// -- Pure Grids Units Config ----------------------------------------------
183194

184-
grid_units: {
185-
dest : 'build/grids-units.css',
186-
units: [5, 24]
195+
pure_grids: {
196+
default_units: {
197+
dest: 'build/grids-units.css',
198+
199+
options: {
200+
units: [5, 24]
201+
}
202+
}
187203
},
188204

189205
// -- CSS Selectors Config -------------------------------------------------
@@ -224,6 +240,7 @@ grunt.loadNpmTasks('grunt-contrib-cssmin');
224240
grunt.loadNpmTasks('grunt-contrib-compress');
225241
grunt.loadNpmTasks('grunt-contrib-watch');
226242
grunt.loadNpmTasks('grunt-css-selectors');
243+
grunt.loadNpmTasks('grunt-pure-grids');
227244

228245
// Local tasks.
229246
grunt.loadTasks('tasks/');
@@ -234,7 +251,7 @@ grunt.registerTask('test', ['csslint']);
234251
grunt.registerTask('build', [
235252
'clean:build',
236253
'copy:build',
237-
'grid_units',
254+
'pure_grids',
238255
'concat:build',
239256
'clean:build_res',
240257
'css_selectors:base',
@@ -249,6 +266,8 @@ grunt.registerTask('watch', ['default', 'observe']);
249266
grunt.registerTask('release', [
250267
'default',
251268
'clean:release',
269+
'copy:release',
270+
'bower_json:release',
252271
'compress:release'
253272
]);
254273

HISTORY.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,38 @@ Pure Change History
44
NEXT
55
----
66

7+
* Switched cell padding in Tables from `px` to `em` units, and also increased
8+
the amount of padding to `padding: 0.5em 1em`.
9+
10+
11+
0.4.2 (2014-02-13)
12+
------------------
13+
14+
* Added `main` to Pure's `bower.json` file to allow easier integration with
15+
build processes and tooling. ([#286][] @stevenvachon)
16+
17+
### Forms
18+
19+
* Improved how `<input type="color">` elements look in Chrome by fixing
20+
paddings. ([#283][] @jpetto)
21+
22+
* Removed `font-size` rules from `<input>`, `<legend>`, and `<fieldset>`
23+
elements within `.pure-form`. Font sizes are now inherited from the
24+
application's CSS file. ([#265][])
25+
26+
* Invalid `<input>` elements within a Pure Form no longer explicitly set a
27+
`border-width`. ([#295][] @kwando)
28+
29+
30+
[#265]: https://github.com/yui/pure/issues/265
31+
[#283]: https://github.com/yui/pure/issues/283
32+
[#286]: https://github.com/yui/pure/issues/286
33+
[#295]: https://github.com/yui/pure/issues/295
34+
35+
36+
0.4.1 (2014-02-06)
37+
------------------
38+
739
### Base
840

941
* Elements that have Pure classnames which set a `display` declaration _and_ use
@@ -36,7 +68,8 @@ NEXT
3668
Forms to fix an alignment issue where its label was aligned to the middle.
3769
([#174][] @rictorres, @ItsAsbreuk)
3870

39-
* Added styling for `<input>` elements that don't have a `type` attribute. ([#261][] @dougdavies)
71+
* Added styling for `<input>` elements that don't have a `type` attribute.
72+
([#261][] @dougdavies)
4073

4174
### Grids
4275

@@ -68,6 +101,12 @@ NEXT
68101
[Rework]: https://github.com/visionmedia/rework
69102

70103

104+
0.4.0 (2014-02-06)
105+
------------------
106+
107+
* __[!]__ Corrupted release build, use `0.4.1`.
108+
109+
71110
0.3.0 (2013-09-09)
72111
------------------
73112

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Software License Agreement (BSD License)
22
========================================
33

4-
Copyright 2013 Yahoo! Inc. All rights reserved.
4+
Copyright 2014 Yahoo! Inc. All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without
77
modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A set of small, responsive CSS modules that you can use in every web project.
1111
**Use From the CDN:**
1212

1313
```html
14-
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css">
14+
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.4.2/pure-min.css">
1515
```
1616

1717
Note: You can [customize which Pure modules you need][customize].
@@ -55,7 +55,7 @@ of all the CSS work that every site needs, without making it look cookie-cutter:
5555

5656
* Easy one-click customization with the [Skin Builder][].
5757

58-
* Extremely small file size: **4.4KB minified + gzip**.
58+
* Extremely small file size: **4.5KB minified + gzip**.
5959

6060

6161
[Normalize.css]: http://necolas.github.io/normalize.css/
@@ -72,7 +72,7 @@ You can include the Pure CSS file in your project by fetching it from Yahoo's
7272
CDN:
7373

7474
```html
75-
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css">
75+
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.4.2/pure-min.css">
7676
```
7777

7878
You can also install Pure using [Bower][], using the following command:

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "pure",
3-
"version": "0.3.1-pre",
3+
"version": "0.4.3-pre",
4+
"main": "build/pure.css",
45
"devDependencies": {
56
"normalize-css": "1.1.3"
67
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pure",
3-
"version": "0.3.1-pre",
3+
"version": "0.4.3-pre",
44
"private": true,
55
"repository": "git://github.com/yui/pure.git",
66
"scripts": {
@@ -12,12 +12,12 @@
1212
"grunt-cli": "~0.1.9",
1313
"grunt-contrib-cssmin": "~0.6.0",
1414
"grunt-contrib-clean": "~0.5.0",
15-
"grunt-contrib-copy": "~0.4.1",
15+
"grunt-contrib-copy": "~0.5.0",
1616
"grunt-contrib-concat": "~0.3.0",
17-
"grunt-contrib-compress": "~0.5.0",
18-
"grunt-contrib-csslint": "~0.1.2",
17+
"grunt-contrib-compress": "~0.6.0",
18+
"grunt-contrib-csslint": "~0.2.0",
1919
"grunt-contrib-watch": "~0.5.3",
20-
"grunt-css-selectors": "~0.1.0",
21-
"rework-pure-grids": "0.1.0"
20+
"grunt-css-selectors": "~1.0.0",
21+
"grunt-pure-grids": "0.0.1"
2222
}
2323
}

src/buttons/css/buttons.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
background-color: #E6E6E6;
1515
text-decoration: none;
1616
border-radius: 2px;
17-
/* Transitions */
18-
-webkit-transition: 0.1s linear -webkit-box-shadow;
19-
-moz-transition: 0.1s linear -moz-box-shadow;
20-
-ms-transition: 0.1s linear box-shadow;
21-
-o-transition: 0.1s linear box-shadow;
22-
transition: 0.1s linear box-shadow;
2317
}
2418

2519
.pure-button-hover,

src/forms/css/forms-r.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
.pure-form-message-inline,
5858
.pure-form-message {
5959
display: block;
60-
font-size: 80%;
60+
font-size: 0.75em;
6161
/* Increased bottom padding to make it group with its related input element. */
6262
padding: 0.2em 0 0.8em;
6363
}

0 commit comments

Comments
 (0)