diff options
author | Haijian Wang <haijian@vaadin.com> | 2013-02-13 14:51:18 +0200 |
---|---|---|
committer | Haijian Wang <haijian@vaadin.com> | 2013-02-13 14:51:18 +0200 |
commit | fb6339d0754981d667847be9633972b56f472e05 (patch) | |
tree | b01b2f5d063aeafa449ec835562b64310d32f604 /theme-compiler/tests/resources/automatic/scss | |
parent | be11c6dbbf6d9731fbdeb124116bada5fae6bc89 (diff) | |
download | vaadin-framework-fb6339d0754981d667847be9633972b56f472e05.tar.gz vaadin-framework-fb6339d0754981d667847be9633972b56f472e05.zip |
Sass replaces variables based on substring matches. (Tickets #10508,
#10730)
Change-Id: I7d3c5a74055e28e0e22fe6e496209d7d3c42b4af
Diffstat (limited to 'theme-compiler/tests/resources/automatic/scss')
-rw-r--r-- | theme-compiler/tests/resources/automatic/scss/var-in-css-function.scss | 15 | ||||
-rw-r--r-- | theme-compiler/tests/resources/automatic/scss/var-substring-match.scss | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/scss/var-in-css-function.scss b/theme-compiler/tests/resources/automatic/scss/var-in-css-function.scss new file mode 100644 index 0000000000..72b371ba57 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/var-in-css-function.scss @@ -0,0 +1,15 @@ +$very_light: 98%; +$light: 90%; + +$hue1: 110; +$saturation1: 50%; +$very_light1: hsl($hue1, $saturation1, $very_light); +$light1: hsl($hue1, $saturation1, $light); + +$color: rgb(0, 255, 13); +.v-window-footer { + background: linear-gradient(bottom, $very_light1, $light1); + abc: rgba($color, .85); +} + + diff --git a/theme-compiler/tests/resources/automatic/scss/var-substring-match.scss b/theme-compiler/tests/resources/automatic/scss/var-substring-match.scss new file mode 100644 index 0000000000..5acfb799a1 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/var-substring-match.scss @@ -0,0 +1,8 @@ +@mixin mx($f: 10px) { + .foo { + font: { + size: $f; + } + } +} +@include mx;
\ No newline at end of file |