Skip to content

Commit

Permalink
Updated grunt-sass to HEAd to make libsass work with deep extends
Browse files Browse the repository at this point in the history
  • Loading branch information
derhasi committed Apr 20, 2015
1 parent 1cdef0a commit 0c4b3e2
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ node_modules

/slides
/code_snippets

css/test.css
5 changes: 5 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ module.exports = function(grunt) {
files: {
'css/style.css': 'sass/style.scss'
}
},
test: {
files: {
'css/test.css': 'sass/test.scss'
}
}
},
watch: {
Expand Down
3 changes: 2 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pre.terminal:before {
h3.pane-icon a {
color: #0281C7; }

h3.pane-icon a:hover, h3.pane-icon a:focus {
h3.pane-icon a:hover,
h3.pane-icon a:focus {
color: #77B302; }

.pane-icon {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-watch": "^0.6.1",
"grunt-sass": "^0.18.1"
"grunt-sass": "git://github.com/sindresorhus/grunt-sass"
}
}
29 changes: 29 additions & 0 deletions sass/test.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Test for libsass
*
* Should output:
* .a .c .b::-webkit-scrollbar, .a .b::-webkit-scrollbar { color: green; }
*/
%a {
&::-webkit-scrollbar {
color: green;
}
}
%b {
@extend %a;
}


.a {
.b {
@extend %a;
}

.c {
.b {
@extend %b;
}
}
}

/** END Test */

0 comments on commit 0c4b3e2

Please sign in to comment.