]> source.dussan.org Git - vaadin-framework.git/commitdiff
Adds one test for sass mixins
authorMarc Englund <marc@vaadin.com>
Thu, 4 Oct 2012 13:29:26 +0000 (16:29 +0300)
committerMarc Englund <marc@vaadin.com>
Thu, 4 Oct 2012 13:29:26 +0000 (16:29 +0300)
Change-Id: I9e42bbc075cc3ef84c1a7bf5b449f18df5773327

theme-compiler/tests/resources/css/mixins.css
theme-compiler/tests/resources/scss/mixins.scss

index 9bb9c95efaa9a0a7d577bbecff17333a1f1fbeaa..d0cf0b3d1dbeeadfbe75847a811c3659ee1a89c1 100644 (file)
@@ -52,4 +52,12 @@ font-family: arial;
 
 font-size: 16px;
 
-font-weight: bold;
\ No newline at end of file
+font-weight: bold;
+
+.default .default-inner {
+       color: green;
+}
+
+.custom .custom-inner {
+       color: green;
+}
\ No newline at end of file
index cb05cc87e312f74cff0553c66433a16863c2f60d..e1fa80f357dba101d8acea1ea75bb0d505ff0dba 100644 (file)
@@ -71,4 +71,18 @@ $mixinVar : 1px;
        }
 }
 
-@include layout;
\ No newline at end of file
+@include layout;
+
+@mixin parent($color : green, $name : default) {
+       .#{$name}-inner {
+               color: $color;
+       }
+}
+
+.default {
+       @include parent;
+}
+
+.custom {
+       @include parent($name : custom);
+}
\ No newline at end of file