diff options
author | Artur Signell <artur@vaadin.com> | 2013-09-02 23:57:30 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-09-26 06:20:45 +0000 |
commit | 89760ada6261e63c4964d6665729a7e43797f811 (patch) | |
tree | 8da05a74b802602de58c1434cb688d693c7c1cc8 /theme-compiler | |
parent | bad3f6a6b5102a3392472b4a3f8c7c833d94c9e3 (diff) | |
download | vaadin-framework-89760ada6261e63c4964d6665729a7e43797f811.tar.gz vaadin-framework-89760ada6261e63c4964d6665729a7e43797f811.zip |
Add support for partial imports (#11776)
Change-Id: I5696e63b618294b4e6bbd3b0e407befddc5aa8a8
Diffstat (limited to 'theme-compiler')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java index f0464d098b..5de1f95264 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java @@ -65,6 +65,13 @@ public abstract class AbstractResolver implements ScssStylesheetResolver, return source; } + // Try to find partial import (_identifier.scss) + source = normalizeAndResolve(path + "/_" + identifier); + + if (source != null) { + return source; + } + } return normalizeAndResolve(identifier); |