Warning, /webapps/ocs-webserver/library/lessphp/tests/inputs/variables.less is written in an unsupported language. File is not indexed.
0001 @a: 2; 0002 @x: @a * @a; 0003 @y: @x + 1; 0004 @z: @y + @x * 2; 0005 @m: @z % @y; 0006 0007 @nice-blue: #5B83AD; 0008 @light-blue: @nice-blue + #111; 0009 0010 @rgb-color: rgb(20%, 15%, 80%); 0011 @rgba-color: rgba(23,68,149,0.5); 0012 0013 @b: @a * 10px; 0014 @c: #888; 0015 @fonts: "Trebuchet MS", Verdana, sans-serif; 0016 0017 .variables { 0018 width: @z + 1cm; // 14cm 0019 height: @b + @x + 0px; // 24px 0020 margin-top: -@b; // -20px 0021 margin-bottom: 10 - -@b; // 30px 0022 @d: @c + #001; 0023 color: @d; 0024 background: @light-blue; 0025 font-family: @fonts; 0026 margin: @m + 0px; // 3px 0027 font: 10px/12px serif; 0028 font: 120%/120% serif; 0029 } 0030 0031 .external { 0032 color: @c; 0033 border: 1px solid @rgb-color; 0034 background: @rgba-color; 0035 padding: @nonexistant + 4px; 0036 } 0037 0038 @hello: 44px; 0039 @something: "hello"; 0040 @cool: something; 0041 0042 outer1: @@something; 0043 outer2: @@@cool; 0044 0045