Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LearnBoost/stylus
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 1, 2011
2 parents bfe6f8f + fc20bd9 commit 7937bd6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/stylus
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ function watch(file, fn) {
*/

function watchImports(file, imports) {
imports.forEach(function(import){
if (!import.path) return;
watch(import.path, function(){
imports.forEach(function(imported){
if (!imported.path) return;
watch(imported.path, function(){
compileFile(file);
});
});
Expand Down
3 changes: 1 addition & 2 deletions docs/selectors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

## Selectors

### Indentation
Expand Down Expand Up @@ -98,7 +97,7 @@ yielding:
html.ie8 body #login,
html.ie7 body #login,
html.ie6 body #login {
border: 1px solid #eee;
border: 2px solid #eee;
}

### Disambiguation
Expand Down
3 changes: 3 additions & 0 deletions examples/images.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ body
#wrapper
background url(/images/gopher.jpg)

#footer
background url(/images/gradient.svg)

.sprite
// both work due to the additional paths option
// passed to stylus.url()
Expand Down
9 changes: 9 additions & 0 deletions examples/images/gradient.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/functions/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var mimes = {
, '.png': 'image/png'
, '.jpg': 'image/jpeg'
, '.jpeg': 'image/jpeg'
, '.svg': 'image/svg+xml'
};

/**
Expand Down

0 comments on commit 7937bd6

Please sign in to comment.