diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-27 11:14:57 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-27 11:14:57 +0200 |
commit | e8ef66d2d6dde9cb1b9b0fa0df24643c1e0f6f26 (patch) | |
tree | e1db21d0bdbf3eede8f721527ce57a12e86d4c7d /theme-compiler/tests/resources/automatic/scss | |
parent | ec9b340b8d2bbbaed560834ad828f7d9857eaf15 (diff) | |
download | vaadin-framework-e8ef66d2d6dde9cb1b9b0fa0df24643c1e0f6f26.tar.gz vaadin-framework-e8ef66d2d6dde9cb1b9b0fa0df24643c1e0f6f26.zip |
Move some SCSS tests to be scanned automatically
Change-Id: I7590c6cd20f649a5c02e92673d44cf1c2721b95d
Diffstat (limited to 'theme-compiler/tests/resources/automatic/scss')
4 files changed, 64 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/scss/listmodify.scss b/theme-compiler/tests/resources/automatic/scss/listmodify.scss new file mode 100644 index 0000000000..814f3156f8 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/listmodify.scss @@ -0,0 +1,25 @@ +$list : .v-button, .v-panel, .v-label; + +$basics : remove($list, .v-panel); + +@each $component in $basics{ + .#{$component} { + font-size: 12px; + } +} + +$items : append($basics, .v-textfield); + +@each $component in $items{ + .#{$component} { + font-color: red; + } +} + +$contains : contains($items, .v-button); + +@if($contains){ + .v-button { + background-color: black; + } +} diff --git a/theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss b/theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss new file mode 100644 index 0000000000..69670969de --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss @@ -0,0 +1,6 @@ +.v-ie6 .v-shadow-window { + background: #000000; + filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=5 ) alpha(opacity = 20); + margin-top: 2px; + margin-left: 2px; +} diff --git a/theme-compiler/tests/resources/automatic/scss/remove-directive.scss b/theme-compiler/tests/resources/automatic/scss/remove-directive.scss new file mode 100644 index 0000000000..ca9a19522f --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/remove-directive.scss @@ -0,0 +1,24 @@ +$animals : platypus, rhinoceros, llama, duck, duck; +$remove : duck; + +@each $animal in $animals { + .animals .#{$animal}-icon { + background-image: url('/images/#{$animal}.png'); + } +} + +$exotic : remove($animals, $remove, space); + +@each $animal in $exotic{ + .exotic-animals .#{$animal}-icon { + background-image: url('/images/#{$animal}.png'); + } +} + +$things : remove((ball,cube,duck), duck); + +@each $thing in $things{ + .#{$thing}{ + font-size: 12px; + } +}
\ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/semicolons.scss b/theme-compiler/tests/resources/automatic/scss/semicolons.scss new file mode 100644 index 0000000000..a4a56043d5 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/semicolons.scss @@ -0,0 +1,9 @@ +.all-the-properties { + font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; ; + position: absolute;; + overflow: hidden; +} +.missing-semicolon-on-last-row { + color: red; + background-color: blue +} |