Skip to content

Commit

Permalink
parallax css
Browse files Browse the repository at this point in the history
  • Loading branch information
herereadthis committed Jul 30, 2014
1 parent af6a7cf commit 57aee8b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ module.exports = function(grunt) {
}
}
},
less: {
greeneyes: {
options: {
paths: ["<%= paths.src %>/less"],
// yuicompress: true,
// compress: true,
cleancss: true
},
files: {
"<%= paths.build %>/css/greeneyes.css": "./src/less/greeneyes.less"
}
}
},
uglify: {
options: {
preserveComments: false
Expand All @@ -44,6 +57,7 @@ module.exports = function(grunt) {
});

grunt.registerTask('default', [
'less',
'requirejs',
'uglify'
]);
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "greeneyes",
"version": "0.1.1",
"version": "0.1.2",
"authors": [
{
"name": "Jimmy Ha",
Expand Down
1 change: 1 addition & 0 deletions build/css/greeneyes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[data-module=parallax_scroll]{background-attachment:fixed}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "greeneyes",
"version": "0.1.1",
"version": "0.1.2",
"description": "AMD Javascript library of utility modules made for RequireJS",
"main": "index.html",
"scripts": {
Expand Down Expand Up @@ -32,6 +32,7 @@
"homepage": "https://github.com/herereadthis/greeneyes",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-less": "^0.11.1",
"grunt-contrib-requirejs": "^0.4.4",
"grunt-contrib-uglify": "^0.5.0",
"grunt-contrib-watch": "^0.6.1",
Expand Down
1 change: 1 addition & 0 deletions src/less/greeneyes.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "parallax_scroll.less";
4 changes: 4 additions & 0 deletions src/less/parallax_scroll.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Parallax Scroll
[data-module="parallax_scroll"] {
background-attachment: fixed;
}

0 comments on commit 57aee8b

Please sign in to comment.