diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-30 15:22:06 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-30 15:22:06 +0300 |
commit | d028bf97a4ce9629b8ebab06978218fc9fa4ca71 (patch) | |
tree | 6ab09d7f23bf72e9a0f0f49ad5d2084ebcbe58fe /sass/tests/resources/css | |
parent | ed2a07f55455eef981944e57ea0e2e35ee11971a (diff) | |
download | vaadin-framework-d028bf97a4ce9629b8ebab06978218fc9fa4ca71.tar.gz vaadin-framework-d028bf97a4ce9629b8ebab06978218fc9fa4ca71.zip |
Moved tests/sass to sass/tests (#9299)
Diffstat (limited to 'sass/tests/resources/css')
-rw-r--r-- | sass/tests/resources/css/comments.css | 15 | ||||
-rw-r--r-- | sass/tests/resources/css/control-directives.css | 1 | ||||
-rw-r--r-- | sass/tests/resources/css/extends.css | 13 | ||||
-rw-r--r-- | sass/tests/resources/css/functions.css | 14 | ||||
-rw-r--r-- | sass/tests/resources/css/imports.css | 11 | ||||
-rw-r--r-- | sass/tests/resources/css/microsoft-extensions.css | 6 | ||||
-rw-r--r-- | sass/tests/resources/css/mixins.css | 46 | ||||
-rw-r--r-- | sass/tests/resources/css/nested-properties.css | 5 | ||||
-rw-r--r-- | sass/tests/resources/css/nesting.css | 47 | ||||
-rw-r--r-- | sass/tests/resources/css/parent-import.css | 25 | ||||
-rw-r--r-- | sass/tests/resources/css/parent-selector.css | 24 | ||||
-rw-r--r-- | sass/tests/resources/css/semicolons.css | 10 | ||||
-rw-r--r-- | sass/tests/resources/css/var-guarded.css | 4 | ||||
-rw-r--r-- | sass/tests/resources/css/variables.css | 12 |
14 files changed, 233 insertions, 0 deletions
diff --git a/sass/tests/resources/css/comments.css b/sass/tests/resources/css/comments.css new file mode 100644 index 0000000000..1c773f7974 --- /dev/null +++ b/sass/tests/resources/css/comments.css @@ -0,0 +1,15 @@ +/** 0sprite: verticals; sprite-image: url(../common/img/vertical-sprites.png); sprite-layout: vertical */ + +/** 1sprite: verticals; sprite-image: url(../common/img/vertical-sprites.png); sprite-layout: vertical */ + +/** 2sprite: verticals; sprite-image: url(../common/img/vertical-sprites.png); sprite-layout: vertical */ + +.v-button:focus { + background-image: url(img/left-focus.png);/** sprite-ref: buttons */ + outline: none; +} + +.v-button:focus .v-button-wrap { + background-image: url(img/right-focus.png);/** sprite-ref: buttons; sprite-alignment: right */ + outline: none; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/control-directives.css b/sass/tests/resources/css/control-directives.css new file mode 100644 index 0000000000..0a6f1f7233 --- /dev/null +++ b/sass/tests/resources/css/control-directives.css @@ -0,0 +1 @@ +Implement a sane test case.
\ No newline at end of file diff --git a/sass/tests/resources/css/extends.css b/sass/tests/resources/css/extends.css new file mode 100644 index 0000000000..d1c903f166 --- /dev/null +++ b/sass/tests/resources/css/extends.css @@ -0,0 +1,13 @@ +.error, .badError { + border: 1px #f00; + background: #fdd; +} + +.error.intrusion, .badError.intrusion { + font-size: 1.3em; + font-weight: bold; +} + +.badError { + border-width: 3px; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/functions.css b/sass/tests/resources/css/functions.css new file mode 100644 index 0000000000..de87462b46 --- /dev/null +++ b/sass/tests/resources/css/functions.css @@ -0,0 +1,14 @@ +.main { + margin: 2px; + border: 11px; + border: 10px; + border: 10px; + color: hsl(0, 0%, 30%); + color: hsl(25, 100%, 50%); + color: rgb(36, 0, 0); + color: rgb(240, 0, 0); + color: #240000; + color: #200; + color: #f00000; + color: #f00; +} diff --git a/sass/tests/resources/css/imports.css b/sass/tests/resources/css/imports.css new file mode 100644 index 0000000000..5b1001802a --- /dev/null +++ b/sass/tests/resources/css/imports.css @@ -0,0 +1,11 @@ +.caption { + border: 1px solid black; + background: #ff0000; + padding: 10px; + margin: 10px; +} + +.text { + font-weight: bold; + color: red; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/microsoft-extensions.css b/sass/tests/resources/css/microsoft-extensions.css new file mode 100644 index 0000000000..69670969de --- /dev/null +++ b/sass/tests/resources/css/microsoft-extensions.css @@ -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/sass/tests/resources/css/mixins.css b/sass/tests/resources/css/mixins.css new file mode 100644 index 0000000000..5c727c193b --- /dev/null +++ b/sass/tests/resources/css/mixins.css @@ -0,0 +1,46 @@ +.main { + border: 1px solid black; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + font-family: arial; + font-size: 16px; + font-weight: bold; +} + +.main .details { + font-size: 14px; + font-weight: bold; +} + +.footer { + border: 2px solid black; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + border-radius: 10px; +} + +.header { + width: 100%; +} + +.main { + width: 100%; + height: 100%; +} + +.footer { + width: 100%; +} + +@media print { + .v-view { + overflow: visible; + } +} + +font-family: arial; + +font-size: 16px; + +font-weight: bold;
\ No newline at end of file diff --git a/sass/tests/resources/css/nested-properties.css b/sass/tests/resources/css/nested-properties.css new file mode 100644 index 0000000000..79b21e632b --- /dev/null +++ b/sass/tests/resources/css/nested-properties.css @@ -0,0 +1,5 @@ +li { + font-family: serif; + font-weight: bold; + font-size: 1.2em; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/nesting.css b/sass/tests/resources/css/nesting.css new file mode 100644 index 0000000000..2400c73d43 --- /dev/null +++ b/sass/tests/resources/css/nesting.css @@ -0,0 +1,47 @@ +.top-bar { + color: red; +} + +.top-bar .alt { + color: blue; +} + +.menu { + background-color: red; +} + +.menu a { + color: blue; +} + +.caption { + padding: 10px; +} + +.caption .text, .caption .header { + color: green; +} + +.footer { + padding: 10px; +} + +.footer .left, .footer .right { + color: purple; +} + +.footer .left a, .footer .right a { + color: orange; +} + +.main { + color: red; +} + +.main .second.third { + color: blue; +} + +.main .second.third .fourth { + color: black; +} diff --git a/sass/tests/resources/css/parent-import.css b/sass/tests/resources/css/parent-import.css new file mode 100644 index 0000000000..f67d17f8b4 --- /dev/null +++ b/sass/tests/resources/css/parent-import.css @@ -0,0 +1,25 @@ +.content-navigation { + border-color: #3bbfce; + color: #0000ff; +} + +.border { + padding: 8px; + margin: 8px; + border-color: #3bbfce; +} + +.body { + background-image: url(../folder-test2/bg.png); + background: transparent url(../folder-test2/img/loading-indicator.gif); + background-image: url(http://abc/bg.png); + background-image: url(/abc/bg.png); +} + +.base { + color: red; +} + +.text { + font-weight: bold; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/parent-selector.css b/sass/tests/resources/css/parent-selector.css new file mode 100644 index 0000000000..9c7140e313 --- /dev/null +++ b/sass/tests/resources/css/parent-selector.css @@ -0,0 +1,24 @@ +a { + font-weight: bold; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +body.firefox a { + font-weight: normal; +} + +#main { + color: black; +} + +#main a { + font-weight: bold; +} + +#main a:hover { + color: red; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/semicolons.css b/sass/tests/resources/css/semicolons.css new file mode 100644 index 0000000000..8a08617638 --- /dev/null +++ b/sass/tests/resources/css/semicolons.css @@ -0,0 +1,10 @@ +.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; +} diff --git a/sass/tests/resources/css/var-guarded.css b/sass/tests/resources/css/var-guarded.css new file mode 100644 index 0000000000..c4a8c49d12 --- /dev/null +++ b/sass/tests/resources/css/var-guarded.css @@ -0,0 +1,4 @@ +#main { + content: "First content"; + new-content: "First time reference"; +}
\ No newline at end of file diff --git a/sass/tests/resources/css/variables.css b/sass/tests/resources/css/variables.css new file mode 100644 index 0000000000..d54ae6cd30 --- /dev/null +++ b/sass/tests/resources/css/variables.css @@ -0,0 +1,12 @@ +.content-navigation { + border-color: #3bbfce; + color: #0000ff; + color1: #0000d1; + font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; +} + +.border { + padding: 8px; + margin: 8px; + border-color: #3bbfce; +}
\ No newline at end of file |