Skip to content

Commit

Permalink
Added twitter/recess for extra lint power
Browse files Browse the repository at this point in the history
- Sorting CSS property orders
- Doesn't produce ideal SASS, but it produces a cleaner end product. So we all good. y'hear!
  • Loading branch information
benschwarz committed Mar 14, 2013
1 parent 63b0fbf commit 8a96d79
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 27 deletions.
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ module.exports = function(grunt) {
src: ['dist/*.css']
}
},
recess: {
dist: {
src: ['dist/gallery.css', 'dist/gallery.theme.css']
}
},
rework: {
'dist/<%= pkg.name %>.prefixed.css': 'dist/<%= pkg.name %>.css',
options: {
Expand All @@ -50,11 +55,12 @@ module.exports = function(grunt) {
});

// Default task.
grunt.registerTask('default', ['sass', 'rework', 'csslint', 'cssmin']);
grunt.registerTask('default', ['sass', 'rework', 'csslint', 'recess', 'cssmin']);

grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-rework');
grunt.loadNpmTasks('grunt-recess');
};
6 changes: 3 additions & 3 deletions dist/gallery.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.gallery .item:first-of-type {
opacity: 1;
position: static;
opacity: 1;
}
.gallery .item {
transition: opacity 0.5s;
width: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0;
transition: opacity 0.5s;
}
.gallery .control-operator {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion dist/gallery.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/gallery.prefixed.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.gallery .item:first-of-type {
opacity: 1;
position: static
position: static;
opacity: 1
}

.gallery .item {
width: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0;
-moz-transition: opacity 0.5s;
-webkit-transition: opacity 0.5s;
Expand Down
Loading

0 comments on commit 8a96d79

Please sign in to comment.