aboutsummaryrefslogtreecommitdiff
path: root/mod/less/vendors/lessphp/tests/inputs/misc.less
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:42:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:42:42 -0300
commit711dab09b5146e74dbeda56679c65e3b6bec71f3 (patch)
treefed51be1475322c7a565d180d0b0ae3f97e6cf3a /mod/less/vendors/lessphp/tests/inputs/misc.less
parent4311cd55c6e6d6a064bfeabb53b9c528ca553ffd (diff)
parent551497ef94f6239b109316d8fab32f0909b13f73 (diff)
downloadelgg-711dab09b5146e74dbeda56679c65e3b6bec71f3.tar.gz
elgg-711dab09b5146e74dbeda56679c65e3b6bec71f3.tar.bz2
Merge commit '551497ef94f6239b109316d8fab32f0909b13f73' as 'mod/less'
Diffstat (limited to 'mod/less/vendors/lessphp/tests/inputs/misc.less')
-rw-r--r--mod/less/vendors/lessphp/tests/inputs/misc.less84
1 files changed, 84 insertions, 0 deletions
diff --git a/mod/less/vendors/lessphp/tests/inputs/misc.less b/mod/less/vendors/lessphp/tests/inputs/misc.less
new file mode 100644
index 000000000..86bd8f706
--- /dev/null
+++ b/mod/less/vendors/lessphp/tests/inputs/misc.less
@@ -0,0 +1,84 @@
+
+@hello: "utf-8";
+@charset @hello;
+
+@color: #fff;
+@base_path: "/assets/images/";
+@images: @base_path + "test/";
+.topbar { background: url(@{images}topbar.png); }
+.hello { test: empty-function(@images, 40%, to(@color)); }
+
+.css3 {
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 90%,
+ from(#E9A000), to(#A37000));
+}
+
+
+/**
+
+Here is a block comment
+
+**/
+
+
+// this is a comment
+
+.test, /*hello*/.world {
+ border: 1px solid red; // world
+ /* another property */
+ color: url(http://mage-page.com);
+ string: "hello /* this is not a comment */";
+ world: "// neither is this";
+ string: 'hello /* this is not a comment */' /*what if this is a comment */;
+ world: '// neither is this' // hell world;
+ ;
+ what-/*something?*/ever: 100px;
+ background: url(/*no comment here*/);
+}
+
+
+.urls {
+ @var: "http://google.com";
+ background: url(@var);
+ background: url(@{var});
+ background: url("@{var}");
+}
+
+.mix(@arg) { color: @arg; }
+@aaa: aaa;
+@bbb: bbb;
+// make sure the opening selector isn't too greedy
+.cool {.mix("@{aaa}, @{bbb}")}
+.cool();
+
+.cool("{hello");
+.cool('{hello');
+
+
+// merging of mixins
+.span-17 { float: left; }
+.span-17 { width: 660px; }
+
+.x {.span-17;}
+
+.hi {
+ pre {
+ color: red;
+ }
+}
+
+.hi {
+ pre {
+ color: blue;
+ }
+}
+
+.rad {
+ .hi;
+}
+
+
+@page :left { margin-left: 4cm; }
+@page :right { margin-left: 3cm; }
+@page { margin: 2cm }
+