tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject [6/7] git commit: Create a page to demonstrate using Less with @import statements
Date Sat, 01 Jun 2013 01:20:03 GMT
Create a page to demonstrate using Less with @import statements


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/15390667
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/15390667
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/15390667

Branch: refs/heads/master
Commit: 153906673c71ffadb2a86a7892ca666a109fa10c
Parents: 795c38f
Author: Howard M. Lewis Ship <hlship@apache.org>
Authored: Fri May 31 17:39:13 2013 -0700
Committer: Howard M. Lewis Ship <hlship@apache.org>
Committed: Fri May 31 17:39:13 2013 -0700

----------------------------------------------------------------------
 .../test/groovy/t5/wro4j/pages/MultiLess.groovy    |    7 ++++++
 .../src/test/resources/META-INF/assets/colors.less |    2 +
 .../src/test/resources/META-INF/assets/multi.less  |   11 ++++++++++
 .../test/resources/t5/wro4j/pages/MultiLess.tml    |   16 +++++++++++++++
 4 files changed, 36 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/15390667/tapestry-wro4j/src/test/groovy/t5/wro4j/pages/MultiLess.groovy
----------------------------------------------------------------------
diff --git a/tapestry-wro4j/src/test/groovy/t5/wro4j/pages/MultiLess.groovy b/tapestry-wro4j/src/test/groovy/t5/wro4j/pages/MultiLess.groovy
new file mode 100644
index 0000000..ca9a68d
--- /dev/null
+++ b/tapestry-wro4j/src/test/groovy/t5/wro4j/pages/MultiLess.groovy
@@ -0,0 +1,7 @@
+package t5.wro4j.pages
+
+import org.apache.tapestry5.annotations.Import
+
+@Import(stylesheet = "multi.less")
+class MultiLess {
+}

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/15390667/tapestry-wro4j/src/test/resources/META-INF/assets/colors.less
----------------------------------------------------------------------
diff --git a/tapestry-wro4j/src/test/resources/META-INF/assets/colors.less b/tapestry-wro4j/src/test/resources/META-INF/assets/colors.less
new file mode 100644
index 0000000..ebac95e
--- /dev/null
+++ b/tapestry-wro4j/src/test/resources/META-INF/assets/colors.less
@@ -0,0 +1,2 @@
+@primary = "blue";
+@secondary = lighten(@primary, 25%);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/15390667/tapestry-wro4j/src/test/resources/META-INF/assets/multi.less
----------------------------------------------------------------------
diff --git a/tapestry-wro4j/src/test/resources/META-INF/assets/multi.less b/tapestry-wro4j/src/test/resources/META-INF/assets/multi.less
new file mode 100644
index 0000000..f89379a
--- /dev/null
+++ b/tapestry-wro4j/src/test/resources/META-INF/assets/multi.less
@@ -0,0 +1,11 @@
+@import "colors.less";
+
+.demo {
+
+  background-color: @secondary;
+
+  h3 {
+    color: @primary;
+  }
+
+}

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/15390667/tapestry-wro4j/src/test/resources/t5/wro4j/pages/MultiLess.tml
----------------------------------------------------------------------
diff --git a/tapestry-wro4j/src/test/resources/t5/wro4j/pages/MultiLess.tml b/tapestry-wro4j/src/test/resources/t5/wro4j/pages/MultiLess.tml
new file mode 100644
index 0000000..86559e8
--- /dev/null
+++ b/tapestry-wro4j/src/test/resources/t5/wro4j/pages/MultiLess.tml
@@ -0,0 +1,16 @@
+<t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
+
+    <p>This page is used to demonstrate Less that uses @import.</p>
+
+
+
+<div class="demo">
+
+    <h3>Primary: should be dark blue.</h3>
+
+    <p>Background color should be a lighter blue.</p>
+
+</div>
+
+
+</t:layout>


Mime
View raw message