aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-09-02 23:57:30 +0300
committerVaadin Code Review <review@vaadin.com>2013-09-26 06:20:45 +0000
commit89760ada6261e63c4964d6665729a7e43797f811 (patch)
tree8da05a74b802602de58c1434cb688d693c7c1cc8
parentbad3f6a6b5102a3392472b4a3f8c7c833d94c9e3 (diff)
downloadvaadin-framework-89760ada6261e63c4964d6665729a7e43797f811.tar.gz
vaadin-framework-89760ada6261e63c4964d6665729a7e43797f811.zip
Add support for partial imports (#11776)
Change-Id: I5696e63b618294b4e6bbd3b0e407befddc5aa8a8
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java7
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);