aboutsummaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests/resources/scss/control-directives.scss
diff options
context:
space:
mode:
Diffstat (limited to 'theme-compiler/tests/resources/scss/control-directives.scss')
-rw-r--r--theme-compiler/tests/resources/scss/control-directives.scss19
1 files changed, 19 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/scss/control-directives.scss b/theme-compiler/tests/resources/scss/control-directives.scss
index 3da1d337cc..f9773bb108 100644
--- a/theme-compiler/tests/resources/scss/control-directives.scss
+++ b/theme-compiler/tests/resources/scss/control-directives.scss
@@ -1,10 +1,29 @@
+$borderWeight : solid;
+
@each $animal in puma, sea-slug, egret, salamander {
.#{$animal}-icon #animal, .menu {
background-image: url('/images/#{$animal}.png');
@include logo(10px);
+ @if 1+1 == 2 { border: 1px solid; }
}
}
+.trueIf {
+ @if solid != dotted { border: 1px $borderWeight; }
+ @else { border: 2px solid; }
+}
+
+.falseIf {
+ @if 1+2 == 2 { border: 2px solid; }
+ @else { border: 1px solid; }
+}
+
+.falseIfTrueElse {
+ @if 1+2 == 2 { border: 2px solid; }
+ @else if 1+1 == 2 { border: 1px solid; }
+ @else { border: 3px solid; }
+}
+
@mixin logo($size){
font: {
size: $size;