diff options
author | Marc Englund <marc@vaadin.com> | 2012-11-22 17:09:10 +0200 |
---|---|---|
committer | Marc Englund <marc@vaadin.com> | 2012-11-23 09:29:59 +0200 |
commit | d6caa6043adef61387ccfece57336593641875c4 (patch) | |
tree | 64ad544c320a07b1ce7394cd06ecbb2c637a6abd /WebContent/VAADIN/themes/runo | |
parent | e33302b9676ae62ea0bdc53ff6c6e3f4aea01522 (diff) | |
download | vaadin-framework-d6caa6043adef61387ccfece57336593641875c4.tar.gz vaadin-framework-d6caa6043adef61387ccfece57336593641875c4.zip |
Fixes #6714 #10330 - wraps theme in themename{}, creates legacy-styles.css, updates themes to support this.
Change-Id: I185b67b2ee74dca2faf48ff2517f24280aff4375
Diffstat (limited to 'WebContent/VAADIN/themes/runo')
-rw-r--r-- | WebContent/VAADIN/themes/runo/common/common.scss | 14 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/runo/legacy-styles.scss | 6 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/runo/select/select.scss | 2 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/runo/styles.scss | 4 |
4 files changed, 17 insertions, 9 deletions
diff --git a/WebContent/VAADIN/themes/runo/common/common.scss b/WebContent/VAADIN/themes/runo/common/common.scss index 41ab6dae88..be39a1287a 100644 --- a/WebContent/VAADIN/themes/runo/common/common.scss +++ b/WebContent/VAADIN/themes/runo/common/common.scss @@ -3,7 +3,7 @@ .v-generated-body { background: #e9eced; } -.v-app { +&.v-app { background: #e9eced url(img/main-bg.png) repeat-x; font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", geneva, helvetica, arial, tahoma, verdana, sans-serif; color: #464f52; @@ -11,14 +11,14 @@ line-height: 18px; } /* Global font styles */ -.v-app, +&.v-app, .v-window, .v-popupview-popup, .v-tooltip, -.v-app input, -.v-app select, -.v-app button, -.v-app textarea, +&.v-app input, +&.v-app select, +&.v-app button, +&.v-app textarea, .v-window input, .v-window select, .v-window button, @@ -37,7 +37,7 @@ color: #464f52; font-size: 13px; } -.v-app select, +&.v-app select, .v-window select { padding: 0; } diff --git a/WebContent/VAADIN/themes/runo/legacy-styles.scss b/WebContent/VAADIN/themes/runo/legacy-styles.scss new file mode 100644 index 0000000000..29ccb22aa5 --- /dev/null +++ b/WebContent/VAADIN/themes/runo/legacy-styles.scss @@ -0,0 +1,6 @@ +@import "runo.scss"; +// For legacy themes; does not wrap styles in .themename +// Creates legacy-styles.css that can be imported into non-sass themes. +// NOTE: can not be used in scenarios where multiple themes are used on the +// same page (e.g portals). +@include runo;
\ No newline at end of file diff --git a/WebContent/VAADIN/themes/runo/select/select.scss b/WebContent/VAADIN/themes/runo/select/select.scss index e043f143e3..64188eed09 100644 --- a/WebContent/VAADIN/themes/runo/select/select.scss +++ b/WebContent/VAADIN/themes/runo/select/select.scss @@ -19,7 +19,7 @@ background: transparent url(img/bg-left-filter.png) no-repeat; padding-left: 4px; } -.v-app .v-filterselect .v-filterselect-input, +&.v-app .v-filterselect .v-filterselect-input, .v-window .v-filterselect .v-filterselect-input, .v-popupview-popup .v-filterselect .v-filterselect-input { background: transparent url(img/bg-center-filter.png) no-repeat 1px 0; diff --git a/WebContent/VAADIN/themes/runo/styles.scss b/WebContent/VAADIN/themes/runo/styles.scss index 987b1425b6..cfcb8bfa78 100644 --- a/WebContent/VAADIN/themes/runo/styles.scss +++ b/WebContent/VAADIN/themes/runo/styles.scss @@ -1,2 +1,4 @@ @import "runo.scss"; -@include runo;
\ No newline at end of file +.runo { + @include runo; +}
\ No newline at end of file |