diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-08-01 17:19:17 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-08-01 17:19:17 -0700 |
commit | 01c8fab5f31fd01a3d5c72e48839351c7e46b78c (patch) | |
tree | b8ad826c457dbf0a6fd3ddfe4e1a43b26736a909 | |
parent | 403451650f875d58ce6d3231808cfeac1db5bda3 (diff) | |
download | pyscss-01c8fab5f31fd01a3d5c72e48839351c7e46b78c.tar.gz |
Quick test for nested scopes.
-rw-r--r-- | scss/tests/files/general/005-nested-scope.css | 7 | ||||
-rw-r--r-- | scss/tests/files/general/005-nested-scope.scss | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/scss/tests/files/general/005-nested-scope.css b/scss/tests/files/general/005-nested-scope.css new file mode 100644 index 0000000..a8d1e17 --- /dev/null +++ b/scss/tests/files/general/005-nested-scope.css @@ -0,0 +1,7 @@ +.scoped { + color: white; + background-color: blue; +} +.unscoped { + color: white; +} diff --git a/scss/tests/files/general/005-nested-scope.scss b/scss/tests/files/general/005-nested-scope.scss new file mode 100644 index 0000000..51dea0f --- /dev/null +++ b/scss/tests/files/general/005-nested-scope.scss @@ -0,0 +1,12 @@ +$color: black; +.scoped { + $bg: blue; + $color: white; + color: $color; + background-color: $bg; +} +.unscoped { + color: $color; + // Would be an error + // background: $bg; +} |