Mercurial > hg > dml-open-vis
comparison src/DML/VendorAssetsBundle/Resources/assets/lesshat/3.0.2/lesshat.less @ 0:493bcb69166c
added public content
author | Daniel Wolff |
---|---|
date | Tue, 09 Feb 2016 20:54:02 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:493bcb69166c |
---|---|
1 // * =========================================================== * | |
2 // < LESSHat > | |
3 // * =========================================================== * | |
4 // | |
5 // Made with Energy drinks in Prague, Czech Republic. | |
6 // Handcrafted by Petr Brzek, lesshat.com | |
7 // Works great with CSS Hat csshat.com | |
8 | |
9 // version: v3.0.2 (2014-06-26) | |
10 | |
11 // TABLE OF MIXINS: | |
12 // align-content | |
13 // align-items | |
14 // align-self | |
15 // animation | |
16 // animation-delay | |
17 // animation-direction | |
18 // animation-duration | |
19 // animation-fill-mode | |
20 // animation-iteration-count | |
21 // animation-name | |
22 // animation-play-state | |
23 // animation-timing-function | |
24 // appearance | |
25 // backface-visibility | |
26 // background-clip | |
27 // background-image | |
28 // background-origin | |
29 // background-size | |
30 // blur | |
31 // border-bottom-left-radius | |
32 // border-bottom-right-radius | |
33 // border-image | |
34 // border-radius | |
35 // border-top-left-radius | |
36 // border-top-right-radius | |
37 // box-shadow | |
38 // box-sizing | |
39 // brightness | |
40 // calc | |
41 // column-count | |
42 // column-gap | |
43 // column-rule | |
44 // column-width | |
45 // columns | |
46 // contrast | |
47 // display | |
48 // drop-shadow | |
49 // filter | |
50 // flex | |
51 // flex-basis | |
52 // flex-direction | |
53 // flex-grow | |
54 // flex-shrink | |
55 // flex-wrap | |
56 // font-face | |
57 // grayscale | |
58 // hue-rotate | |
59 // hyphens | |
60 // invert | |
61 // justify-content | |
62 // keyframes | |
63 // opacity | |
64 // order | |
65 // perspective | |
66 // perspective-origin | |
67 // placeholder | |
68 // rotate | |
69 // rotate3d | |
70 // rotateX | |
71 // rotateY | |
72 // rotateZ | |
73 // saturate | |
74 // scale | |
75 // scale3d | |
76 // scaleX | |
77 // scaleY | |
78 // scaleZ | |
79 // selection | |
80 // sepia | |
81 // size | |
82 // skew | |
83 // skewX | |
84 // skewY | |
85 // transform | |
86 // transform-origin | |
87 // transform-style | |
88 // transition | |
89 // transition-delay | |
90 // transition-duration | |
91 // transition-property | |
92 // transition-timing-function | |
93 // translate | |
94 // translate3d | |
95 // translateX | |
96 // translateY | |
97 // translateZ | |
98 // user-select | |
99 | |
100 .align-content(...) { | |
101 @process: ~`(function(r){return r=r||"stretch"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
102 @process_ms: ~`(function(t){return t=t||"stretch","flex-start"==t?t="start":"flex-end"==t?t="end":"space-between"==t?t="justify":"space-around"==t&&(t="distribute"),t})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
103 -webkit-align-content: @process; | |
104 -ms-flex-line-pack: @process_ms; | |
105 align-content: @process; | |
106 } | |
107 | |
108 .align-items(...) { | |
109 @process_olderwebkit: ~`(function(t){return t=t||"stretch","flex-start"==t?t="start":"flex-end"==t&&(t="end"),t})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
110 @process_moz: ~`(function(t){return t=t||"stretch","flex-start"==t?t="start":"flex-end"==t&&(t="end"),t})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
111 @process: ~`(function(t){return t=t||"stretch"})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
112 @process_ms: ~`(function(t){return t=t||"stretch","flex-start"==t?t="start":"flex-end"==t&&(t="end"),t})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
113 -webkit-box-align: @process_olderwebkit; | |
114 -moz-box-align: @process_moz; | |
115 -webkit-align-items: @process; | |
116 -ms-flex-align: @process_ms; | |
117 align-items: @process; | |
118 } | |
119 | |
120 .align-self(...) { | |
121 @process: ~`(function(t){return t=t||"auto"})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
122 @process_ms: ~`(function(t){return t=t||"auto","flex-start"==t?t="start":"flex-end"==t&&(t="end"),t})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
123 -webkit-align-self: @process; | |
124 -ms-flex-item-align: @process_ms; | |
125 align-self: @process; | |
126 } | |
127 | |
128 .animation(...) { | |
129 @process: ~`(function(t){return t=t||"none",/^[^, ]*,/.test(t)&&(t=t.replace(/(?:,)(?![^(]*\))/g,"")),t})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
130 -webkit-animation: @process; | |
131 -moz-animation: @process; | |
132 -o-animation: @process; | |
133 animation: @process; | |
134 } | |
135 | |
136 .animation-delay(...) { | |
137 @process: ~`(function(t){t=t||"0";var r=/(?:\d)(?:ms|s)/gi,e=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(t)||"0"===t||(t=t.replace(e,function(t){return t+=parseFloat(t,10)>10?"ms":"s"})),t})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
138 -webkit-animation-delay: @process; | |
139 -moz-animation-delay: @process; | |
140 -o-animation-delay: @process; | |
141 animation-delay: @process; | |
142 } | |
143 | |
144 .animation-direction(...) { | |
145 @process: ~`(function(r){return r||"normal"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
146 -webkit-animation-direction: @process; | |
147 -moz-animation-direction: @process; | |
148 -o-animation-direction: @process; | |
149 animation-direction: @process; | |
150 } | |
151 | |
152 .animation-duration(...) { | |
153 @process: ~`(function(r){r=r||"0";var t=/ms|s/gi,e=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return t.test(r)||"0"===r||(r=r.replace(e,function(r){return r+=parseFloat(r,10)>10?"ms":"s"})),r})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
154 -webkit-animation-duration: @process; | |
155 -moz-animation-duration: @process; | |
156 -o-animation-duration: @process; | |
157 animation-duration: @process; | |
158 } | |
159 | |
160 .animation-fill-mode(...) { | |
161 @process: ~`(function(r){return r||"none"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
162 -webkit-animation-fill-mode: @process; | |
163 -moz-animation-fill-mode: @process; | |
164 -o-animation-fill-mode: @process; | |
165 animation-fill-mode: @process; | |
166 } | |
167 | |
168 .animation-iteration-count(...) { | |
169 @process: ~`(function(r){return r||"0"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
170 -webkit-animation-iteration-count: @process; | |
171 -moz-animation-iteration-count: @process; | |
172 -o-animation-iteration-count: @process; | |
173 animation-iteration-count: @process; | |
174 } | |
175 | |
176 .animation-name(...) { | |
177 @process: ~`(function(r){return r||"none"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
178 -webkit-animation-name: @process; | |
179 -moz-animation-name: @process; | |
180 -o-animation-name: @process; | |
181 animation-name: @process; | |
182 } | |
183 | |
184 .animation-play-state(...) { | |
185 @process: ~`(function(r){return r||"running"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
186 -webkit-animation-play-state: @process; | |
187 -moz-animation-play-state: @process; | |
188 -o-animation-play-state: @process; | |
189 animation-play-state: @process; | |
190 } | |
191 | |
192 .animation-timing-function(...) { | |
193 @process: ~`(function(r){return r||"ease"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
194 -webkit-animation-timing-function: @process; | |
195 -moz-animation-timing-function: @process; | |
196 -o-animation-timing-function: @process; | |
197 animation-timing-function: @process; | |
198 } | |
199 | |
200 .appearance(...) { | |
201 @process: ~`(function(r){return r||"none"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
202 -webkit-appearance: @process; | |
203 -moz-appearance: @process; | |
204 appearance: @process; | |
205 } | |
206 | |
207 .backface-visibility(...) { | |
208 @process: ~`(function(r){return r||"visible"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
209 -webkit-backface-visibility: @process; | |
210 -moz-backface-visibility: @process; | |
211 -ms-backface-visibility: @process; | |
212 -o-backface-visibility: @process; | |
213 backface-visibility: @process; | |
214 } | |
215 | |
216 .background-clip(...) { | |
217 @process: ~`(function(r){return r||"border-box"})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
218 -webkit-background-clip: @process; | |
219 -moz-background-clip: @process; | |
220 background-clip: @process; | |
221 } | |
222 | |
223 .background-image(...) { | |
224 @process_ms: ~`(function(t){function e(t){var e,r,n,a,s,i,u,o,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,l=0,f="",d=[];if(!t)return t;do e=t.charCodeAt(c++),r=t.charCodeAt(c++),n=t.charCodeAt(c++),o=e<<16|r<<8|n,a=63&o>>18,s=63&o>>12,i=63&o>>6,u=63&o,d[l++]=g.charAt(a)+g.charAt(s)+g.charAt(i)+g.charAt(u);while(c<t.length);f=d.join("");var p=t.length%3;return(p?f.slice(0,p-3):f)+"===".slice(p||3)}if(t=t||8121991,8121991==t)return t;var r=/linear|radial/g.test(t)&&t.split(/,(?=\s*(?:linear|radial|url))/g),n=[],a={"to bottom":'x1="0%" y1="0%" x2="0%" y2="100%"',"to left":'x1="100%" y1="0%" x2="0%" y2="0%"',"to top":'x1="0%" y1="100%" x2="0%" y2="0%"',"to right":'x1="0%" y1="0%" x2="100%" y2="0%"',get"top"(){return this["to bottom"]},get"180deg"(){return this["to bottom"]},get"right"(){return this["to left"]},get"270deg"(){return this["to left"]},get"bottom"(){return this["to top"]},get"90deg"(){return this["to right"]},get"0deg"(){return this["to top"]},get"left"(){return this["to right"]},"-45deg":'x1="0%" y1="0%" x2="100%" y2="100%"',"45deg":'x1="0%" y1="100%" x2="100%" y2="0%"',"ellipse at center":'cx="50%" cy="50%" r="75%"',get"135deg"(){return this["-45deg"]}},s={uri_data:"url(data:image/svg+xml;base64,",xml:'<?xml version="1.0" ?>',svg_start:'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none">',linear_gradient_start:'<linearGradient id="lesshat-generated" gradientUnits="userSpaceOnUse"',radial_gradient_start:'<radialGradient id="lesshat-generated" gradientUnits="userSpaceOnUse"',linear_gradient_end:"</linearGradient>",radial_gradient_end:"</radialGradient>",rect_linear:'<rect x="0" y="0" width="1" height="1" fill="url(#lesshat-generated)" />',rect_radial:'<rect x="-50" y="-50" width="101" height="101" fill="url(#lesshat-generated)" />',svg_end:"</svg>"};if(r.length){r.forEach(function(t){var e={};if(Object.keys(a).some(function(r){return t.indexOf(r)>=0?(e.svg_direction=a[r],!0):(e.svg_direction=!1,void 0)}),/linear/.test(t))e.svg_type="linear";else if(/radial/.test(t))e.svg_type="radial";else if(!/linear/.test(t)&&!/radial/.test(t))return e.url=t.trim(),e.svg_type="url",e.svg_direction=!0,n.push(e),!1;var r=t.match(/rgb|#[a-zA-Z0-9]|hsl/g).length;e.svg_stops=[],t=t.replace(/transparent/g,"rgba(0,0,0,0)"),t.match(/#[a-zA-Z0-9]/g)&&t.match(/(#[a-zA-Z0-9]+)\s*(\d+%)?/g).forEach(function(t){t=t.split(" "),e.svg_stops.push('<stop offset="'+(t[1]||!1)+'" stop-color="'+t[0]+'" stop-opacity="1"/>')}),t.match(/rgba?\(\d+,\s*\d+,\s*\d+(?:,\s*(0|1|\.\d+|0\.\d+))?\)/g)&&t.replace(/rgba?\((\d+,\s*\d+,\s*\d+)(?:,\s*(0|1|\.\d+|0\.\d+))?\)\s*(\d+%)?/g,function(t,r,n,a){e.svg_stops.push('<stop offset="'+(a||!1)+'" stop-color="rgb('+r+')" stop-opacity="'+(n||1)+'"/>')}),t.match(/hsla?\((\d+,\s*\d+%,\s*\d+%),\s*(0|1|\.\d+|0\.\d+)\)/g)&&t.replace(/hsla?\((\d+,\s*\d+%,\s*\d+%),\s*(0|1|\.\d+|0\.\d+)\)\s*(\d+%)?/g,function(t,r,n,a){e.svg_stops.push('<stop offset="'+(a||!1)+'" stop-color="hsl('+r+')" stop-opacity="'+(n||1)+'"/>')});var s=Math.floor(100/(r-1));e.svg_stops.forEach(function(t,r){/offset="false"/.test(t)&&(e.svg_stops[r]=t.replace(/offset="false"/,'offset="'+s*r+'%"'))}),e.svg_stops.sort(function(t,e){return t=t.match(/offset="(\d+)%"/),e=e.match(/offset="(\d+)%"/),2==t.length&&2==e.length?t[1]-e[1]:void 0}),n.push(e)});var i=[],u=n.every(function(t){for(var e in t)if(0==t[e]||0==t[e].length)return!1;return!0});if(!u)return 8121991;n.forEach(function(t,e){("linear"==t.svg_type||"radial"==t.svg_type)&&(i[e]=s.xml+s.svg_start),"linear"==t.svg_type?(i[e]+=s.linear_gradient_start+" "+t.svg_direction+">",t.svg_stops.forEach(function(t){i[e]+=t}),i[e]+=s.linear_gradient_end,i[e]+=s.rect_linear,i[e]+=s.svg_end):"radial"==t.svg_type?(i[e]+=s.radial_gradient_start+" "+t.svg_direction+">",t.svg_stops.forEach(function(t){i[e]+=t}),i[e]+=s.radial_gradient_end,i[e]+=s.rect_radial,i[e]+=s.svg_end):"url"==t.svg_type&&(i[e]=t.url)}),i.forEach(function(t,r){/<\?xml version="1.0" \?>/g.test(t)&&(i[r]=s.uri_data+e(t)+")")}),t=i.join(",")}return t})((function(){var r="@{arguments}";return r=r.replace(/^\[|\]$/g,"")})())`; | |
225 @process_webkit: ~`(function(t){if(t=t||8121991,8121991==t)return t;var e={"to bottom":"top","to left":"right","to top":"bottom","to right":"left","ellipse at center":"center, ellipse cover","circle closest-side":"center center, circle contain","circle farthest-corner":"center center, circle cover","circle farthest-side":"center center, circle cover","ellipse closest-side":"center center, ellipse contain","ellipse farthest-corner":"center center, ellipse cover","ellipse farthest-side":"center center, ellipse cover"},r=/(radial-gradient\()([a-z- ]+)at\s+(\w+%?)\s*(\w*%?)/g,n=Object.keys(e);return n.some(function(n){return t.indexOf(n)>=0?(t=t.replace(new RegExp(n+"(?![ a-z0-9])","g"),e[n]),!0):(r.test(t)&&(t=t.replace(r,function(t,e,r,n,a){return e.trim()+n.trim()+" "+a.trim()+","+r.replace(/closest-side/g,"contain").replace(/farthest-corner/g,"cover").trim()})),void 0)}),t=t.replace(/(\d+)\s*deg/g,function(t,e){return 90-e+"deg"}).replace(/(linear|radial)-gradient/g,"-webkit-$1-gradient")})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
226 @process_moz: ~`(function(e){if(e=e||8121991,8121991==e)return e;var t={"to bottom":"top","to left":"right","to top":"bottom","to right":"left","ellipse at center":"center, ellipse cover","circle closest-side":"center center, circle contain","circle farthest-corner":"center center, circle cover","circle farthest-side":"center center, circle cover","ellipse closest-side":"center center, ellipse contain","ellipse farthest-corner":"center center, ellipse cover","ellipse farthest-side":"center center, ellipse cover"},r=/(radial-gradient\()([a-z- ]+)at\s+(\w+%?)\s*(\w*%?)/g,n=Object.keys(t);return n.some(function(n){return e.indexOf(n)>=0?(e=e.replace(new RegExp(n+"(?![ a-z0-9])","g"),t[n]),!0):(r.test(e)&&(e=e.replace(r,function(e,t,r,n,a){return t.trim()+n.trim()+" "+a.trim()+","+r.replace(/closest-side/g,"contain").replace(/farthest-corner/g,"cover").trim()})),void 0)}),e=e.replace(/(\d+)\s*deg/g,function(e,t){return 90-t+"deg"}).replace(/(linear|radial)-gradient/g,"-moz-$1-gradient")})((function(){var t="@{arguments}";return t=t.replace(/^\[|\]$/g,"")})())`; | |
227 @process_opera: ~`(function(e){if(e=e||8121991,8121991==e)return e;var t={"to bottom":"top","to left":"right","to top":"bottom","to right":"left","ellipse at center":"center, ellipse cover","circle closest-side":"center center, circle contain","circle farthest-corner":"center center, circle cover","circle farthest-side":"center center, circle cover","ellipse closest-side":"center center, ellipse contain","ellipse farthest-corner":"center center, ellipse cover","ellipse farthest-side":"center center, ellipse cover"},r=/(radial-gradient\()([a-z- ]+)at\s+(\w+%?)\s*(\w*%?)/g,n=Object.keys(t);return n.some(function(n){return e.indexOf(n)>=0?(e=e.replace(new RegExp(n+"(?![ a-z0-9])","g"),t[n]),!0):(r.test(e)&&(e=e.replace(r,function(e,t,r,n,a){return t.trim()+n.trim()+" "+a.trim()+","+r.replace(/closest-side/g,"contain").replace(/farthest-corner/g,"cover").trim()})),void 0)}),e=e.replace(/(\d+)\s*deg/g,function(e,t){return 90-t+"deg"}).replace(/(linear|radial)-gradient/g,"-o-$1-gradient")})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
228 @process: ~`(function(e){if(e=e||8121991,8121991==e)return e;var t={top:"to bottom",right:"to left",bottom:"to top",left:"to right"},r=Object.keys(t);return r.some(function(r){return e.indexOf(r)>=0&&!new RegExp("to\\s+"+r+"|at\\s+"+r,"g").test(e)?(e=e.replace(new RegExp(r),t[r]),!0):void 0}),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
229 background-image: @process_ms; | |
230 background-image: @process_webkit; | |
231 background-image: @process_moz; | |
232 background-image: @process_opera; | |
233 background-image: @process; | |
234 } | |
235 | |
236 .background-origin(...) { | |
237 @process: ~`(function(e){return e||"padding-box"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
238 -webkit-background-origin: @process; | |
239 -moz-background-origin: @process; | |
240 background-origin: @process; | |
241 } | |
242 | |
243 .background-size(...) { | |
244 @process: ~`(function(e){e=e||"auto auto";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
245 -webkit-background-size: @process; | |
246 -moz-background-size: @process; | |
247 background-size: @process; | |
248 } | |
249 | |
250 .blur(...) { | |
251 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
252 -webkit-filter: blur(@process); | |
253 -moz-filter: blur(@process); | |
254 -ms-filter: blur(@process); | |
255 filter: blur(@process); | |
256 } | |
257 | |
258 .border-bottom-left-radius(...) { | |
259 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
260 -webkit-border-bottom-left-radius: @process; -webkit-background-clip: padding-box; | |
261 -moz-border-radius-bottomleft: @process; -moz-background-clip: padding; | |
262 border-bottom-left-radius: @process; background-clip: padding-box; | |
263 } | |
264 | |
265 .border-bottom-right-radius(...) { | |
266 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
267 -webkit-border-bottom-right-radius: @process; -webkit-background-clip: padding-box; | |
268 -moz-border-radius-bottomright: @process; -moz-background-clip: padding; | |
269 border-bottom-right-radius: @process; background-clip: padding-box; | |
270 } | |
271 | |
272 .border-image(...) { | |
273 @process: ~`(function(e){return e=e||8121991,/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
274 -webkit-border-image: @process; | |
275 -moz-border-image: @process; | |
276 -o-border-image: @process; | |
277 border-image: @process; | |
278 } | |
279 | |
280 .border-radius(...) { | |
281 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
282 -webkit-border-radius: @process; -webkit-background-clip: padding-box; | |
283 -moz-border-radius: @process; -moz-background-clip: padding; | |
284 border-radius: @process; background-clip: padding-box; | |
285 } | |
286 | |
287 .border-top-left-radius(...) { | |
288 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
289 -webkit-border-top-left-radius: @process; -webkit-background-clip: padding-box; | |
290 -moz-border-radius-topleft: @process; -moz-background-clip: padding; | |
291 border-top-left-radius: @process; background-clip: padding-box; | |
292 } | |
293 | |
294 .border-top-right-radius(...) { | |
295 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
296 -webkit-border-top-right-radius: @process; -webkit-background-clip: padding-box; | |
297 -moz-border-radius-topright: @process; -moz-background-clip: padding; | |
298 border-top-right-radius: @process; background-clip: padding-box; | |
299 } | |
300 | |
301 .box-shadow(...) { | |
302 @process: ~`(function(e){e=e||"0";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
303 -webkit-box-shadow: @process; | |
304 -moz-box-shadow: @process; | |
305 box-shadow: @process; | |
306 } | |
307 | |
308 .box-sizing(...) { | |
309 @process: ~`(function(e){return e=e||"content-box"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
310 -webkit-box-sizing: @process; | |
311 -moz-box-sizing: @process; | |
312 box-sizing: @process; | |
313 } | |
314 | |
315 .brightness(...) { | |
316 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
317 -webkit-filter: brightness(@process); | |
318 -moz-filter: brightness(@process); | |
319 -ms-filter: brightness(@process); | |
320 filter: brightness(@process); | |
321 } | |
322 | |
323 .calc(...) { | |
324 @process: ~`(function(e){function t(t,r){var a=");\n",c=n.split(","),i=c[0]+":"+t+"("+(c[1].trim()||0)+a;"start"==r?e="0;\n"+i:e+=i}e=e||8121991;var r="@{state}",n=e;if(8121991==e)return e;switch(r){case"1":t("-webkit-calc","start"),t("-moz-calc"),t("calc");break;case"2":t("-webkit-calc","start"),t("-moz-calc");break;case"3":t("-webkit-calc","start"),t("calc");break;case"4":t("-webkit-calc","start");break;case"5":t("-moz-calc","start"),t("calc");break;case"6":t("-moz-calc","start");break;case"7":t("calc","start")}return e=e.replace(/;$/g,"")})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
325 @state: 1; -lh-property: @process; | |
326 | |
327 } | |
328 | |
329 .column-count(...) { | |
330 @process: ~`(function(e){return e=e||"auto"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
331 -webkit-column-count: @process; | |
332 -moz-column-count: @process; | |
333 column-count: @process; | |
334 } | |
335 | |
336 .column-gap(...) { | |
337 @process: ~`(function(e){e=e||"normal";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
338 -webkit-column-gap: @process; | |
339 -moz-column-gap: @process; | |
340 column-gap: @process; | |
341 } | |
342 | |
343 .column-rule(...) { | |
344 @process: ~`(function(e){e=e||"medium none black";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
345 -webkit-column-rule: @process; | |
346 -moz-column-rule: @process; | |
347 column-rule: @process; | |
348 } | |
349 | |
350 .column-width(...) { | |
351 @process: ~`(function(e){e=e||"auto";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
352 -webkit-column-width: @process; | |
353 -moz-column-width: @process; | |
354 column-width: @process; | |
355 } | |
356 | |
357 .columns(...) { | |
358 @process: ~`(function(e){e=e||"auto auto";var t=/^\d+$/;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,""),e=e.split(" ")),t.test(e[0])&&(e[0]=e[0]+"px"),e.join(" ")})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
359 -webkit-columns: @process; | |
360 -moz-columns: @process; | |
361 columns: @process; | |
362 } | |
363 | |
364 .contrast(...) { | |
365 @process: ~`(function(e){e=e||"100%";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
366 -webkit-filter: ~"contrast(@{process})"; | |
367 -moz-filter: ~"contrast(@{process})"; | |
368 -ms-filter: ~"contrast(@{process})"; | |
369 filter: ~"contrast(@{process})"; | |
370 } | |
371 | |
372 .display(...) { | |
373 @process_oldwebkit: ~`(function(e){return e="flex"==e||"inline-flex"==e?"-webkit-box":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
374 @process_moz: ~`(function(e){return e="flex"==e||"inline-flex"==e?"-moz-box":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
375 @process_webkit: ~`(function(e){return e="flex"==e||"inline-flex"==e?"-webkit-"+e:8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
376 @process_ms: ~`(function(e){return e="flex"==e?"-ms-flexbox":"inline-flex"==e?"-ms-inline-flexbox":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
377 @process: ~`(function(e){return"flex"!=e&&"inline-flex"!=e&&(e=8121991),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
378 display: @process_oldwebkit; | |
379 display: @process_moz; | |
380 display: @process_webkit; | |
381 display: @process_ms; | |
382 display: @process; | |
383 } | |
384 | |
385 .drop-shadow(...) { | |
386 @process: ~`(function(e){if(e=e||8121991,8121991==e)return e;var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
387 -webkit-filter: drop-shadow(@process); | |
388 -moz-filter: drop-shadow(@process); | |
389 -ms-filter: drop-shadow(@process); | |
390 filter: drop-shadow(@process); | |
391 } | |
392 | |
393 .filter(...) { | |
394 @process: ~`(function(e){return e=e||"none",/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
395 -webkit-filter: @process; | |
396 -moz-filter: @process; | |
397 -ms-filter: @process; | |
398 filter: @process; | |
399 } | |
400 | |
401 .flex(...) { | |
402 @process_olderwebkit: ~`(function(e){return/^\d+/.test(e)?e=e.match(/^\d+/)[0]:""==e&&(e="0"),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
403 @process_moz: ~`(function(e){return/^\d+/.test(e)?e=e.match(/^\d+/)[0]:""==e&&(e="0"),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
404 @process: ~`(function(e){return e=e||"0 1 auto",/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
405 -webkit-box-flex: @process_olderwebkit; | |
406 -moz-box-flex: @process_moz; | |
407 -webkit-flex: @process; | |
408 -ms-flex: @process; | |
409 flex: @process; | |
410 } | |
411 | |
412 .flex-basis(...) { | |
413 @process: ~`(function(e){e=e||"auto";var t=/\d/gi,r=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return t.test(e)&&(e=e.replace(r,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
414 -webkit-flex-basis: @process; | |
415 flex-basis: @process; | |
416 } | |
417 | |
418 .flex-direction(...) { | |
419 @process_oldestwebkit: ~`(function(e){return e="row"==e||"column"==e?"normal":"row-reverse"==e||"column-reverse"==e?"reverse":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
420 @process_oldermoz: ~`(function(e){return e="row"==e||"column"==e?"normal":"row-reverse"==e||"column-reverse"==e?"reverse":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
421 @process_olderwebkit: ~`(function(e){return e="row"==e||"row-reverse"==e?"horizontal":"column"==e||"column-reverse"==e?"vertical":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
422 @process_moz: ~`(function(e){return e="row"==e||"row-reverse"==e?"horizontal":"column"==e||"column-reverse"==e?"vertical":8121991})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
423 @process: ~`(function(e){return e=e||"row"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
424 -webkit-box-direction: @process_oldestwebkit; | |
425 -moz-box-direction: @process_oldermoz; | |
426 -webkit-box-orient: @process_olderwebkit; | |
427 -moz-box-orient: @process_moz; | |
428 -webkit-flex-direction: @process; | |
429 -ms-flex-direction: @process; | |
430 flex-direction: @process; | |
431 } | |
432 | |
433 .flex-grow(...) { | |
434 @process: ~`(function(e){return e=e||"0"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
435 -webkit-flex-grow: @process; | |
436 flex-grow: @process; | |
437 } | |
438 | |
439 .flex-shrink(...) { | |
440 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
441 -webkit-flex-shrink: @process; | |
442 flex-shrink: @process; | |
443 } | |
444 | |
445 .flex-wrap(...) { | |
446 @process: ~`(function(e){return e=e||"nowrap"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
447 -webkit-flex-wrap: @process; | |
448 -ms-flex-wrap: @process; | |
449 flex-wrap: @process; | |
450 } | |
451 | |
452 .font-face(@fontname, @fontfile, @fontweight:normal, @fontstyle:normal) { | |
453 font-family: "@{fontname}"; | |
454 src: url("@{fontfile}.eot"); | |
455 src: url("@{fontfile}.eot?#iefix") format("embedded-opentype"), | |
456 url("@{fontfile}.woff") format("woff"), | |
457 url("@{fontfile}.ttf") format("truetype"), | |
458 url("@{fontfile}.svg#@{fontname}") format("svg"); | |
459 font-weight: @fontweight; | |
460 font-style: @fontstyle; | |
461 } | |
462 | |
463 .grayscale(...) { | |
464 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
465 -webkit-filter: grayscale(@process); | |
466 -moz-filter: grayscale(@process); | |
467 -ms-filter: grayscale(@process); | |
468 filter: grayscale(@process); | |
469 } | |
470 | |
471 .hue-rotate(...) { | |
472 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
473 -webkit-filter: hue-rotate(@process); | |
474 -moz-filter: hue-rotate(@process); | |
475 -ms-filter: hue-rotate(@process); | |
476 filter: hue-rotate(@process); | |
477 } | |
478 | |
479 .hyphens(...) { | |
480 @process: ~`(function(e){return e=e||"manual"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
481 -webkit-hyphens: @process; | |
482 -moz-hyphens: @process; | |
483 -ms-hyphens: @process; | |
484 hyphens: @process; | |
485 } | |
486 | |
487 .invert(...) { | |
488 @process: ~`(function(e){e=e||"100%";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
489 -webkit-filter: invert(@process); | |
490 -moz-filter: invert(@process); | |
491 -ms-filter: invert(@process); | |
492 filter: invert(@process); | |
493 } | |
494 | |
495 .justify-content(...) { | |
496 @process_oldestWebkit: ~`(function(e){return e=e||"start","flex-start"==e?e="start":"flex-end"==e?e="end":("space-between"==e||"space-around"==e)&&(e="justify"),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
497 @process_moz: ~`(function(e){return e=e||"start","flex-start"==e?e="start":"flex-end"==e?e="end":("space-between"==e||"space-around"==e)&&(e="justify"),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
498 @process_ms: ~`(function(e){return e=e||"start","flex-start"==e?e="start":"flex-end"==e?e="end":"space-between"==e?e="justify":"space-around"==e&&(e="distribute"),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
499 @process: ~`(function(e){return e=e||"flex-start"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
500 -webkit-box-pack: @process_oldestWebkit; | |
501 -moz-box-pack: @process_moz; | |
502 -ms-flex-pack: @process_ms; | |
503 -webkit-justify-content: @process; | |
504 justify-content: @process; | |
505 } | |
506 | |
507 .keyframes(...) { | |
508 @process: ~`(function(e){function r(r,t,c){var i="}\n",u=n.split(/(^[a-zA-Z0-9-]+),/g),s=t+" "+u[1]+"{",o=["-webkit-","-moz-","-ms-",""];c?a.forEach(function(r){-1!==e.indexOf(r)&&(u[2]=u[2].replace(new RegExp(r,"g"),function(e){return c+e}))}):u[2]=u[2].replace(/{([^}]+)}/g,function(e,r){var t=r.split(";");t.forEach(function(e,r){a.forEach(function(n){-1!==e.indexOf(n)&&(t[r]="",o.forEach(function(a){t[r]+=e.trim().replace(new RegExp(n,"g"),function(e){return a+e})+";"}))})});var n=t.join(";").replace(/;;/g,";");return e.replace(r,n)}),s+=u[2]+i,"start"==r?e="0; } \n"+s:"startend"==r?e="0; } \n"+s.replace(i,""):e+="end"==r?s.replace(i,""):s}e=e||8121991;var t="@{state}",n=e;if(8121991==e)return e;var a=["animation","transform","filter"];switch(t){case"1":r("start","@-webkit-keyframes","-webkit-"),r(null,"@-moz-keyframes","-moz-"),r(null,"@-o-keyframes","-o-"),r("end","@keyframes");break;case"2":r("start","@-webkit-keyframes","-webkit-"),r(null,"@-moz-keyframes","-moz-"),r("end","@keyframes");break;case"3":r("start","@-webkit-keyframes","-webkit-"),r(null,"@-moz-keyframes","-moz-"),r("end","@-o-keyframes","-o-");break;case"4":r("start","@-webkit-keyframes","-webkit-"),r(null,"@-o-keyframes","-o-"),r("end","@keyframes");break;case"5":r("start","@-webkit-keyframes","-webkit-"),r("end","@-moz-keyframes","-moz-");break;case"6":r("start","@-webkit-keyframes","-webkit-"),r("end","@-o-keyframes","-o-");break;case"7":r("start","@-webkit-keyframes","-webkit-"),r("end","@keyframes");break;case"8":r("startend","@-webkit-keyframes","-webkit-");break;case"9":r("start","@-moz-keyframes","-moz-"),r(null,"@-o-keyframes","-o-"),r("end","@keyframes");break;case"10":r("start","@-moz-keyframes","-moz-"),r("end","@-o-keyframes","-o-");break;case"11":r("start","@-moz-keyframes","-moz-"),r("end","@keyframes");break;case"12":r("startend","@-moz-keyframes","-moz-");break;case"13":r("start","@-o-keyframes","-o-"),r("end","@keyframes");break;case"14":r("startend","@-o-keyframes","-o-");break;case"15":r("startend","@keyframes")}return e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
509 @state: 1; lesshat-selector { -lh-property: @process; } | |
510 | |
511 | |
512 | |
513 } | |
514 | |
515 .opacity(...) { | |
516 @process_ms: ~`(function(e){return e=e||"filter: alpha(opacity=100)","alpha(opacity="+Math.floor(100*e)+")"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
517 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
518 zoom: 1; filter: @process_ms; | |
519 -webkit-opacity: @process; | |
520 -moz-opacity: @process; | |
521 opacity: @process; | |
522 } | |
523 | |
524 .order(...) { | |
525 @process: ~`(function(e){return e=e||"0"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
526 -webkit-box-ordinal-group: @process; | |
527 -moz-box-ordinal-group: @process; | |
528 -ms-flex-order: @process; | |
529 -webkit-order: @process; | |
530 order: @process; | |
531 } | |
532 | |
533 .perspective(...) { | |
534 @process: ~`(function(e){e=e||"none";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
535 -webkit-perspective: @process; | |
536 -moz-perspective: @process; | |
537 perspective: @process; | |
538 } | |
539 | |
540 .perspective-origin(...) { | |
541 @process: ~`(function(e){e=e||"50% 50%";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
542 -webkit-perspective-origin: @process; | |
543 -moz-perspective-origin: @process; | |
544 perspective-origin: @process; | |
545 } | |
546 | |
547 .placeholder(@color:#aaa, @element: 08121991) { | |
548 .inception (@arguments) when not (@element = 08121991) { | |
549 @{element}::-webkit-input-placeholder { | |
550 color: @color; | |
551 } | |
552 @{element}:-moz-placeholder { | |
553 color: @color; | |
554 } | |
555 @{element}::-moz-placeholder { | |
556 color: @color; | |
557 } | |
558 @{element}:-ms-input-placeholder { | |
559 color: @color; | |
560 } | |
561 } | |
562 .inception (@arguments) when (@element = 08121991) { | |
563 &::-webkit-input-placeholder { | |
564 color: @color; | |
565 } | |
566 &:-moz-placeholder { | |
567 color: @color; | |
568 } | |
569 &::-moz-placeholder { | |
570 color: @color; | |
571 } | |
572 &:-ms-input-placeholder { | |
573 color: @color; | |
574 } | |
575 } | |
576 .inception(@arguments); | |
577 } | |
578 | |
579 .rotate(...) { | |
580 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
581 -webkit-transform: rotate(@process); | |
582 -moz-transform: rotate(@process); | |
583 -ms-transform: rotate(@process); | |
584 -o-transform: rotate(@process); | |
585 transform: rotate(@process); | |
586 } | |
587 | |
588 .rotate3d(...) { | |
589 @process: ~`(function(e){return e=e||"0, 0, 0, 0",e=e.replace(/,\s*\d+$/,function(e){return e+"deg"})})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
590 -webkit-transform: rotate3d(@process); | |
591 -moz-transform: rotate3d(@process); | |
592 -ms-transform: rotate3d(@process); | |
593 -o-transform: rotate3d(@process); | |
594 transform: rotate3d(@process); | |
595 } | |
596 | |
597 .rotateX(...) { | |
598 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
599 -webkit-transform: rotateX(@process); | |
600 -moz-transform: rotateX(@process); | |
601 -ms-transform: rotateX(@process); | |
602 -o-transform: rotateX(@process); | |
603 transform: rotateX(@process); | |
604 } | |
605 | |
606 .rotateY(...) { | |
607 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
608 -webkit-transform: rotateY(@process); | |
609 -moz-transform: rotateY(@process); | |
610 -ms-transform: rotateY(@process); | |
611 -o-transform: rotateY(@process); | |
612 transform: rotateY(@process); | |
613 } | |
614 | |
615 .rotateZ(...) { | |
616 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
617 -webkit-transform: rotateZ(@process); | |
618 -moz-transform: rotateZ(@process); | |
619 -ms-transform: rotateZ(@process); | |
620 -o-transform: rotateZ(@process); | |
621 transform: rotateZ(@process); | |
622 } | |
623 | |
624 .saturate(...) { | |
625 @process: ~`(function(e){e=e||"100%";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
626 -webkit-filter: ~"saturate(@{process})"; | |
627 -moz-filter: ~"saturate(@{process})"; | |
628 -ms-filter: ~"saturate(@{process})"; | |
629 filter: ~"saturate(@{process})"; | |
630 } | |
631 | |
632 .scale(...) { | |
633 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
634 -webkit-transform: scale(@process); | |
635 -moz-transform: scale(@process); | |
636 -ms-transform: scale(@process); | |
637 -o-transform: scale(@process); | |
638 transform: scale(@process); | |
639 } | |
640 | |
641 .scale3d(...) { | |
642 @process: ~`(function(e){return e=e||"1, 1, 1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
643 -webkit-transform: scale3d(@process); | |
644 -moz-transform: scale3d(@process); | |
645 -ms-transform: scale3d(@process); | |
646 -o-transform: scale3d(@process); | |
647 transform: scale3d(@process); | |
648 } | |
649 | |
650 .scaleX(...) { | |
651 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
652 -webkit-transform: scaleX(@process); | |
653 -moz-transform: scaleX(@process); | |
654 -ms-transform: scaleX(@process); | |
655 -o-transform: scaleX(@process); | |
656 transform: scaleX(@process); | |
657 } | |
658 | |
659 .scaleY(...) { | |
660 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
661 -webkit-transform: scaleY(@process); | |
662 -moz-transform: scaleY(@process); | |
663 -ms-transform: scaleY(@process); | |
664 -o-transform: scaleY(@process); | |
665 transform: scaleY(@process); | |
666 } | |
667 | |
668 .scaleZ(...) { | |
669 @process: ~`(function(e){return e=e||"1"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
670 -webkit-transform: scaleZ(@process); | |
671 -moz-transform: scaleZ(@process); | |
672 -ms-transform: scaleZ(@process); | |
673 -o-transform: scaleZ(@process); | |
674 transform: scaleZ(@process); | |
675 } | |
676 | |
677 .selection(...) { | |
678 @process: ~`(function(e){function r(r,t){var a="}\n",c=n.split(","),u=(c[1]||"")+t+"{"+c[0]+a;"start"==r?e="0; } \n"+u:"startend"==r?e="0; } \n"+u.replace(a,""):e+="end"==r?u.replace(a,""):u}e=e||8121991;var t="@{state}",n=e;if(8121991==e)return e;switch(t){case"1":r("start","::selection"),r("end","::-moz-selection");break;case"2":r("startend","::selection");break;case"3":r("startend","::-moz-selection")}return e=e.replace(/;$/g,"")})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
679 @state: 1; lesshat-selector { -lh-property: @process; } | |
680 | |
681 } | |
682 | |
683 .sepia(...) { | |
684 @process: ~`(function(e){e=e||"100%";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
685 -webkit-filter: sepia(@process); | |
686 -moz-filter: sepia(@process); | |
687 -ms-filter: sepia(@process); | |
688 filter: sepia(@process); | |
689 } | |
690 | |
691 .size(@square) { | |
692 @unit: 'px'; | |
693 .process(@square) when (ispixel(@square)), (isem(@square)), (ispercentage(@square)), (iskeyword(@square)) { | |
694 width: @square; | |
695 height: @square; | |
696 } | |
697 | |
698 .process(@square) when not (ispixel(@square)) and not (isem(@square)) and not (ispercentage(@square)) and not (isstring(@square)) and not (iskeyword(@square)) { | |
699 width: ~`@{square} + @{unit}`; | |
700 height: ~`@{square} + @{unit}`; | |
701 } | |
702 | |
703 .process(@square); | |
704 | |
705 } | |
706 | |
707 .size(@width, @height) { | |
708 @unit: 'px'; | |
709 .process(@width, @height) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) { | |
710 .kittens(@height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { | |
711 width: @width; | |
712 height: @height; | |
713 } | |
714 .kittens(@height) when not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { | |
715 width: @width; | |
716 height: ~`@{height} + @{unit}`; | |
717 } | |
718 .kittens(@height); | |
719 } | |
720 | |
721 .process(@width, @height) when (ispixel(@height)), (isem(@height)), (ispercentage(@height)), (iskeyword(@height)) { | |
722 .kittens(@width) when (ispixel(@width)), (isem(@width)), (ispercentage(@width)), (iskeyword(@width)) {} | |
723 .kittens(@width) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) { | |
724 width: ~`@{width} + @{unit}`; | |
725 height: @height; | |
726 } | |
727 .kittens(@width); | |
728 } | |
729 | |
730 .process(@width, @height) when not (ispixel(@width)) and not (isem(@width)) and not (ispercentage(@width)) and not (iskeyword(@width)) and not (ispixel(@height)) and not (isem(@height)) and not (ispercentage(@height)) and not (iskeyword(@height)) { | |
731 width: ~`@{width} + @{unit}`; | |
732 height: ~`@{height} + @{unit}`; | |
733 } | |
734 | |
735 .process(@width, @height); | |
736 | |
737 } | |
738 | |
739 .skew(...) { | |
740 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
741 -webkit-transform: skew(@process); | |
742 -moz-transform: skew(@process); | |
743 -ms-transform: skew(@process); | |
744 -o-transform: skew(@process); | |
745 transform: skew(@process); | |
746 } | |
747 | |
748 .skewX(...) { | |
749 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
750 -webkit-transform: skewX(@process); | |
751 -moz-transform: skewX(@process); | |
752 -ms-transform: skewX(@process); | |
753 -o-transform: skewX(@process); | |
754 transform: skewX(@process); | |
755 } | |
756 | |
757 .skewY(...) { | |
758 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"deg"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
759 -webkit-transform: skewY(@process); | |
760 -moz-transform: skewY(@process); | |
761 -ms-transform: skewY(@process); | |
762 -o-transform: skewY(@process); | |
763 transform: skewY(@process); | |
764 } | |
765 | |
766 .transform(...) { | |
767 @process: ~`(function(e){e=e||"none";var r={translate:"px",rotate:"deg",rotate3d:"deg",skew:"deg"};/^\w*\(?[a-z0-9.]*\)?/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,""));for(var t in r)e.indexOf(t)>=0&&(e=e.replace(new RegExp(t+"[\\w]?\\([a-z0-9, %]*\\)"),function(e){var n=/(\d+\.?\d*)(?!\w|%)/g;return"rotate3d"==t&&(n=/,\s*\d+$/),e.replace(n,function(e){return e+r[t]})}));return e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
768 -webkit-transform: @process; | |
769 -moz-transform: @process; | |
770 -ms-transform: @process; | |
771 -o-transform: @process; | |
772 transform: @process; | |
773 } | |
774 | |
775 .transform-origin(...) { | |
776 @process: ~`(function(e){e=e||"50% 50% 0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"%"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
777 -webkit-transform-origin: @process; | |
778 -moz-transform-origin: @process; | |
779 -ms-transform-origin: @process; | |
780 -o-transform-origin: @process; | |
781 transform-origin: @process; | |
782 } | |
783 | |
784 .transform-style(...) { | |
785 @process: ~`(function(e){return e=e||"flat"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
786 -webkit-transform-style: @process; | |
787 -moz-transform-style: @process; | |
788 -ms-transform-style: @process; | |
789 -o-transform-style: @process; | |
790 transform-style: @process; | |
791 } | |
792 | |
793 .transition(...) { | |
794 @process_webkit: ~`(function(e){e=e||"all 0 ease 0";var r=["background-size","border-radius","border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","box-shadow","column","transform","filter"],t="-webkit-",n=/(?:\d)(?:ms|s)/gi,a=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),r.forEach(function(r){-1!==e.indexOf(r)&&(e=e.replace(new RegExp(r,"g"),function(e){return t+e}))}),n.test(e)||"0"===e||(e=e.replace(a,function(e){return e+=parseFloat(e,10)>10?"ms":"s"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
795 @process_moz: ~`(function(e){e=e||"all 0 ease 0";var r=["background-size","box-shadow","column","transform","filter"],t="-moz-",n=/(?:\d)(?:ms|s)/gi,a=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),r.forEach(function(r){-1!==e.indexOf(r)&&(e=e.replace(new RegExp(r,"g"),function(e){return t+e}))}),n.test(e)||"0"===e||(e=e.replace(a,function(e){return e+=parseFloat(e,10)>10?"ms":"s"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
796 @process_opera: ~`(function(e){e=e||"all 0 ease 0";var r=["transform"],t="-o-",n=/(?:\d)(?:ms|s)/gi,a=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;return/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,"")),r.forEach(function(r){-1!==e.indexOf(r)&&(e=e.replace(new RegExp(r,"g"),function(e){return t+e}))}),n.test(e)||"0"===e||(e=e.replace(a,function(e){return e+=parseFloat(e,10)>10?"ms":"s"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
797 @process: ~`(function(e){e=e||"all 0 ease 0";var r=["-webkit-","-moz-","-o-",""],t=["column","transform","filter"],n=/(?:\d)(?:ms|s)/gi,a=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%)/gi;/^[^, ]*,/.test(e)&&(e=e.replace(/(?:,)(?![^(]*\))/g,""));var c=e.split(/(?:,)(?![^(]*\))/g);return c.forEach(function(e,n){t.forEach(function(t){-1!==e.indexOf(t)&&(c[n]="",r.forEach(function(a,u){c[n]+=e.trim().replace(new RegExp(t,"g"),function(e){return a+e}),u<r.length-1&&(c[n]+=",")}))})}),e=c.join(","),n.test(e)||"0"===e||(e=e.replace(a,function(e){return e+=parseFloat(e,10)>10?"ms":"s"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
798 -webkit-transition: @process_webkit; | |
799 -moz-transition: @process_moz; | |
800 -o-transition: @process_opera; | |
801 transition: @process; | |
802 } | |
803 | |
804 .transition-delay(...) { | |
805 @process: ~`(function(e){e=e||"0";var r=/(?:\d)(?:ms|s)/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)||"0"===e||(e=e.replace(t,function(e){return e+=parseFloat(e,10)>10?"ms":"s"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
806 -webkit-transition-delay: @process; | |
807 -moz-transition-delay: @process; | |
808 -o-transition-delay: @process; | |
809 transition-delay: @process; | |
810 } | |
811 | |
812 .transition-duration(...) { | |
813 @process: ~`(function(e){e=e||"0";var r=/ms|s/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)||"0"===e||(e=e.replace(t,function(e){return e+=parseFloat(e,10)>10?"ms":"s"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
814 -webkit-transition-duration: @process; | |
815 -moz-transition-duration: @process; | |
816 -o-transition-duration: @process; | |
817 transition-duration: @process; | |
818 } | |
819 | |
820 .transition-property(...) { | |
821 @process_webkit: ~`(function(e){e=e||"all";var r=["background-size","border-radius","border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","box-shadow","column","transform","filter"],t="-webkit-";return r.forEach(function(r){-1!==e.indexOf(r)&&(e=e.replace(new RegExp(r,"g"),function(e){return t+e}))}),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
822 @process_moz: ~`(function(e){e=e||"all";var r=["background-size","box-shadow","column","transform","filter"],t="-moz-";return r.forEach(function(r){-1!==e.indexOf(r)&&(e=e.replace(new RegExp(r,"g"),function(e){return t+e}))}),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
823 @process_opera: ~`(function(e){e=e||"all";var r=["transform"],t="-o-";return r.forEach(function(r){-1!==e.indexOf(r)&&(e=e.replace(new RegExp(r,"g"),function(e){return t+e}))}),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
824 @process: ~`(function(e){e=e||"all";var r=["-webkit-","-moz-","-o-",""],t=["column","transform","filter"],n=e.split(/(?:,)(?![^(]*\))/g);return n.forEach(function(e,a){t.forEach(function(t){-1!==e.indexOf(t)&&(n[a]="",r.forEach(function(c,u){n[a]+=e.trim().replace(new RegExp(t,"g"),function(e){return c+e}),u<r.length-1&&(n[a]+=",")}))})}),e=n.join(",")})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
825 -webkit-transition-property: @process_webkit; | |
826 -moz-transition-property: @process_moz; | |
827 -o-transition-property: @process_opera; | |
828 transition-property: @process; | |
829 } | |
830 | |
831 .transition-timing-function(...) { | |
832 @process: ~`(function(e){return e=e||"ease"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
833 -webkit-transition-timing-function: @process; | |
834 -moz-transition-timing-function: @process; | |
835 -o-transition-timing-function: @process; | |
836 transition-timing-function: @process; | |
837 } | |
838 | |
839 .translate(...) { | |
840 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
841 -webkit-transform: translate(@process); | |
842 -moz-transform: translate(@process); | |
843 -ms-transform: translate(@process); | |
844 -o-transform: translate(@process); | |
845 transform: translate(@process); | |
846 } | |
847 | |
848 .translate3d(...) { | |
849 @process: ~`(function(e){e=e||"0, 0, 0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
850 -webkit-transform: translate3d(@process); | |
851 -moz-transform: translate3d(@process); | |
852 -ms-transform: translate3d(@process); | |
853 -o-transform: translate3d(@process); | |
854 transform: translate3d(@process); | |
855 } | |
856 | |
857 .translateX(...) { | |
858 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
859 -webkit-transform: translateX(@process); | |
860 -moz-transform: translateX(@process); | |
861 -ms-transform: translateX(@process); | |
862 -o-transform: translateX(@process); | |
863 transform: translateX(@process); | |
864 } | |
865 | |
866 .translateY(...) { | |
867 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
868 -webkit-transform: translateY(@process); | |
869 -moz-transform: translateY(@process); | |
870 -ms-transform: translateY(@process); | |
871 -o-transform: translateY(@process); | |
872 transform: translateY(@process); | |
873 } | |
874 | |
875 .translateZ(...) { | |
876 @process: ~`(function(e){e=e||"0";var r=/\d/gi,t=/(?:\s|^)(\.?\d+\.?\d*)(?![^(]*\)|\w|%|\.)/gi;return r.test(e)&&(e=e.replace(t,function(e){return 0==e&&e||e+"px"})),e})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
877 -webkit-transform: translateZ(@process); | |
878 -moz-transform: translateZ(@process); | |
879 -ms-transform: translateZ(@process); | |
880 -o-transform: translateZ(@process); | |
881 transform: translateZ(@process); | |
882 } | |
883 | |
884 .user-select(...) { | |
885 @process: ~`(function(e){return e=e||"auto"})((function(){var e="@{arguments}";return e=e.replace(/^\[|\]$/g,"")})())`; | |
886 -webkit-user-select: @process; | |
887 -moz-user-select: @process; | |
888 -ms-user-select: @process; | |
889 user-select: @process; | |
890 } |