Warning, /webapps/ocs-webserver/library/lessphp/tests/inputs/misc.less is written in an unsupported language. File is not indexed.
0001 0002 @color: #fff; 0003 @base_path: "/assets/images/"; 0004 @images: @base_path + "test/"; 0005 .topbar { background: url(@{images}topbar.png); } 0006 .hello { test: empty-function(@images, 40%, to(@color)); } 0007 0008 .css3 { 0009 background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, 0010 from(#E9A000), to(#A37000)); 0011 } 0012 0013 0014 /** 0015 0016 Here is a block comment 0017 0018 **/ 0019 0020 0021 // this is a comment 0022 0023 .test, /*hello*/.world { 0024 border: 1px solid red; // world 0025 /* another property */ 0026 color: url(http://mage-page.com); 0027 string: "hello /* this is not a comment */"; 0028 world: "// neither is this"; 0029 string: 'hello /* this is not a comment */' /*what if this is a comment */; 0030 world: '// neither is this' // hell world; 0031 ; 0032 what-/*something?*/ever: 100px; 0033 background: url(/*no comment here*/); 0034 } 0035 0036 0037 .urls { 0038 @var: "http://google.com"; 0039 background1: url(@var); 0040 background2: url(@{var}); 0041 background3: url("@{var}"); 0042 } 0043 0044 .mix(@arg) { color: @arg; } 0045 @aaa: aaa; 0046 @bbb: bbb; 0047 // make sure the opening selector isn't too greedy 0048 .cool {.mix("@{aaa}, @{bbb}")} 0049 .cool(); 0050 0051 .cool("{hello"); 0052 .cool('{hello'); 0053 0054 0055 // merging of mixins 0056 .span-17 { float: left; } 0057 .span-17 { width: 660px; } 0058 0059 .x {.span-17;} 0060 0061 .hi { 0062 pre { 0063 color: red; 0064 } 0065 } 0066 0067 .hi { 0068 pre { 0069 color: blue; 0070 } 0071 } 0072 0073 .rad { 0074 .hi; 0075 } 0076 0077 0078 hello { 0079 numbers: 1.0 0.1 .1 1.; 0080 numbers: 1.0s 0.1s .1s 1.s; 0081 numbers: -1.0s -0.1s -.1s -1.s; 0082 numbers: -1.0 -0.1 -.1 -1.; 0083 } 0084 0085 0086 #string { 0087 hello: 'what\'s going on here'; 0088 hello: 'blah blag @{ blah blah'; 0089 0090 join: 3434 + "hello"; 0091 join: 3434 + hello; 0092 } 0093 0094 0095 .duplicates { 0096 hello: world; 0097 hello: "world"; 0098 hello: world; 0099 hello: "what"; 0100 hello: world; 0101 hello: "world"; 0102 }