From a52ceb96590333bbfcb7ddad4815c88c49ac97ab Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Mon, 13 May 2013 16:27:35 +0300 Subject: 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 --- theme-compiler/tests/resources/automatic/css/media-import.css | 1 + .../tests/resources/automatic/css/media-multiple.css | 10 ++++++++++ theme-compiler/tests/resources/automatic/css/media.css | 5 +++++ .../tests/resources/automatic/scss/media-import.scss | 1 + .../tests/resources/automatic/scss/media-multiple.scss | 10 ++++++++++ theme-compiler/tests/resources/automatic/scss/media.scss | 5 +++++ 6 files changed, 32 insertions(+) create mode 100644 theme-compiler/tests/resources/automatic/css/media-import.css create mode 100644 theme-compiler/tests/resources/automatic/css/media-multiple.css create mode 100644 theme-compiler/tests/resources/automatic/css/media.css create mode 100644 theme-compiler/tests/resources/automatic/scss/media-import.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/media-multiple.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/media.scss (limited to 'theme-compiler/tests/resources/automatic') 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; + } +} -- cgit v1.2.3