Skip to content

Commit 9b7067e

Browse files
author
λhmad λjmi
committed
Added new helpers and refactoring old ones
Added grunt to comile, minify and watch SASS Fixed border-radius variable
1 parent ec1d730 commit 9b7067e

File tree

7 files changed

+477
-15
lines changed

7 files changed

+477
-15
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
### Sass ###
21
.sass-cache
3-
2+
.grunt
3+
node_modules
4+
*.DS_Store
5+
.DS_Store

Gruntfile.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = function(grunt){
2+
3+
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
4+
5+
grunt.initConfig({
6+
pkg: grunt.file.readJSON('package.json'),
7+
8+
watch: {
9+
css: {
10+
files: ['css/**/*.scss'],
11+
tasks: ['buildcss']
12+
}
13+
},
14+
cssmin: {
15+
build: {
16+
src: 'helpers.css',
17+
dest: 'helpers.min.css'
18+
}
19+
},
20+
sass: {
21+
build: {
22+
files: {
23+
'helpers.css': 'helpers.scss'
24+
}
25+
}
26+
}
27+
});
28+
29+
grunt.registerTask('default', ['buildcss']);
30+
grunt.registerTask('buildcss', ['sass', 'cssmin']);
31+
32+
};

_variables.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
//
12
// Space unit
3+
24
$base-space-unit: 1em !default;
3-
$base-round-unit: 3px !default;
5+
$base-radius-unit: 3px !default;
6+
47

58
//
69
// Colors
7-
//
810

911
$white : #fff;
1012
$gray : #2c3e50;

0 commit comments

Comments
 (0)