aboutsummaryrefslogtreecommitdiff
path: root/mod/less/vendors/lessphp/tests/inputs/guards.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/guards.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/guards.less')
-rw-r--r--mod/less/vendors/lessphp/tests/inputs/guards.less88
1 files changed, 88 insertions, 0 deletions
diff --git a/mod/less/vendors/lessphp/tests/inputs/guards.less b/mod/less/vendors/lessphp/tests/inputs/guards.less
new file mode 100644
index 000000000..20bdf240e
--- /dev/null
+++ b/mod/less/vendors/lessphp/tests/inputs/guards.less
@@ -0,0 +1,88 @@
+
+.simple(@hi) when (@hi) {
+ color: yellow;
+}
+
+
+.something(@hi) when (@hi = cool) {
+ color: red;
+}
+
+.another(@x) when (@x > 10) {
+ color: green;
+}
+
+
+.flipped(@x) when (@x =< 10) {
+ color: teal;
+}
+
+.yeah(@arg) when (isnumber(@arg)) {
+ color: purple;
+}
+
+
+.yeah(@arg) when (ispixel(@arg)) {
+ color: silver;
+}
+
+
+.hello(@arg) when not (@arg) {
+ color: orange;
+}
+
+dd {
+ .simple(true);
+ .simple(2344px);
+}
+
+b {
+ .something(cool);
+ .something(birthday);
+}
+
+img {
+ .another(12);
+ .another(2);
+
+ .flipped(12);
+ .flipped(2);
+}
+
+body {
+ .yeah("world");
+ .yeah(232px);
+ .yeah(232);
+
+ .hello(true);
+}
+
+.something(@x) when (@x) and (@y), not (@x = what) {
+ color: blue;
+}
+
+div {
+ @y: true;
+ .something(true);
+
+}
+
+pre {
+ .something(what);
+}
+
+
+.coloras(@g) when (iscolor(@g)) {
+ color: true @g;
+}
+
+link {
+ .coloras(red);
+ .coloras(10px);
+ .coloras(ffjref);
+ .coloras(#fff);
+ .coloras(#fffddd);
+ .coloras(rgb(0,0,0));
+ .coloras(rgba(0,0,0, .34));
+}
+