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