diff options
author | Henri Sara <hesara@vaadin.com> | 2013-05-13 16:27:35 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-05-14 13:28:20 +0000 |
commit | a52ceb96590333bbfcb7ddad4815c88c49ac97ab (patch) | |
tree | 0ed886fe4b2c94be5ba3d009ddd39a3753fd69f2 /theme-compiler/tests/resources/automatic | |
parent | 42545ac81ae49cb9a3af2a8b3b06ba9525886b22 (diff) | |
download | vaadin-framework-a52ceb96590333bbfcb7ddad4815c88c49ac97ab.tar.gz vaadin-framework-a52ceb96590333bbfcb7ddad4815c88c49ac97ab.zip |
Support non-trivial SASS media selectors (#11455)
This change adds support for media selectors with a query that consist
of more than just a single word.
Change-Id: Id6a09de8e88984ad052321ae93ffa2e7c2ba1c04
Diffstat (limited to 'theme-compiler/tests/resources/automatic')
6 files changed, 32 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/media-import.css b/theme-compiler/tests/resources/automatic/css/media-import.css new file mode 100644 index 0000000000..80519945f8 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/media-import.css @@ -0,0 +1 @@ +@import url(color.css) screen and (color);
\ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/media-multiple.css b/theme-compiler/tests/resources/automatic/css/media-multiple.css new file mode 100644 index 0000000000..2550d018b3 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/media-multiple.css @@ -0,0 +1,10 @@ +@media print, screen { + a { + b: c; + } +} +@media all and (max-width: 699px) and (min-width: 520px), (min-width: 1151px) { + body { + background: #ccc; + } +}
\ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/media.css b/theme-compiler/tests/resources/automatic/css/media.css new file mode 100644 index 0000000000..f4183d9a07 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/media.css @@ -0,0 +1,5 @@ +@media screen and (max-width: 480px) { + .abc { + background: red; + } +} diff --git a/theme-compiler/tests/resources/automatic/scss/media-import.scss b/theme-compiler/tests/resources/automatic/scss/media-import.scss new file mode 100644 index 0000000000..80519945f8 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/media-import.scss @@ -0,0 +1 @@ +@import url(color.css) screen and (color);
\ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/media-multiple.scss b/theme-compiler/tests/resources/automatic/scss/media-multiple.scss new file mode 100644 index 0000000000..2550d018b3 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/media-multiple.scss @@ -0,0 +1,10 @@ +@media print, screen { + a { + b: c; + } +} +@media all and (max-width: 699px) and (min-width: 520px), (min-width: 1151px) { + body { + background: #ccc; + } +}
\ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/media.scss b/theme-compiler/tests/resources/automatic/scss/media.scss new file mode 100644 index 0000000000..7db52de9ed --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/media.scss @@ -0,0 +1,5 @@ +@media screen and (max-width: 480px) { + .abc { + background: red; + } +} |