summaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests/resources/automatic/scss
diff options
context:
space:
mode:
authorHaijian Wang <haijian@vaadin.com>2013-02-28 10:17:40 +0200
committerHaijian Wang <haijian@vaadin.com>2013-02-28 10:17:40 +0200
commit970b2efaa1416689f537c7752c11e9062f77974a (patch)
tree142529c2a413db712744d9738728ab37bcd916a4 /theme-compiler/tests/resources/automatic/scss
parent93bf066797c3796adb9c85db07013a6f3e7c6f0b (diff)
downloadvaadin-framework-970b2efaa1416689f537c7752c11e9062f77974a.tar.gz
vaadin-framework-970b2efaa1416689f537c7752c11e9062f77974a.zip
support @content directive for Sass compiler (Ticket #10207)
Change-Id: I8037e1d64afd1ce2044d89d3bdcf408f6162727c
Diffstat (limited to 'theme-compiler/tests/resources/automatic/scss')
-rw-r--r--theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss9
-rw-r--r--theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss40
2 files changed, 49 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss
new file mode 100644
index 0000000000..e7e0c3b7e6
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive-with-vars.scss
@@ -0,0 +1,9 @@
+$color: white;
+@mixin colors($color: blue) {
+ background-color: $color;
+ @content;
+ border-color: $color;
+}
+.colors {
+ @include colors { color: $color; }
+} \ No newline at end of file
diff --git a/theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss
new file mode 100644
index 0000000000..71217cb814
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/mixin-content-directive.scss
@@ -0,0 +1,40 @@
+@mixin my-mixin {
+ .foobar {
+ @content;
+ }
+}
+
+@include my-mixin {
+ color: red;
+}
+
+@include my-mixin {
+ background-color: blue;
+}
+
+@mixin apply-to-ie6-only {
+ * html {
+ @content;
+ }
+}
+@include apply-to-ie6-only {
+ #logo {
+ background-image: url(/logo.gif);
+ }
+}
+@include apply-to-ie6-only {
+ .link {
+ color: blue;
+ }
+}
+
+@mixin mixin-multi-contents {
+ .foobar {
+ @content;
+ @content;
+ }
+}
+
+@include mixin-multi-contents {
+ color: red;
+} \ No newline at end of file