Deprecates $wgRateLimitLog in favor of debug log
[lhc/web/wiklou.git] / resources / mediawiki.less / mediawiki.mixins.less
1 /**
2 * Common LESS mixin library for MediaWiki
3 *
4 * By default the folder containing this file is included in $wgResourceLoaderLESSImportPaths,
5 * which makes this file importable by all less files via '@import "mediawiki.mixins";'.
6 *
7 * The mixins included below are considered a public interface for MediaWiki extensions.
8 * The signatures of parametrized mixins should be kept as stable as possible.
9 *
10 * See <http://lesscss.org/#-mixins> for more information about how to write mixins.
11 */
12
13 .background-image(@url) when (embeddable(@url)) {
14 background-image: embed(@url);
15 background-image: url(@url)!ie;
16 }
17
18 .background-image(@url) when not (embeddable(@url)) {
19 background-image: url(@url);
20 }
21
22 .vertical-gradient ( @startColor: gray, @endColor: white, @startPos: 0, @endPos: 100% ) {
23 background-color: @endColor;
24 background-image: -moz-linear-gradient( top, @startColor @startPos, @endColor @endPos ); // Firefox 3.6+
25 background-image: -webkit-gradient( linear, left top, left bottom, color-stop( @startPos, @startColor ), color-stop( @endPos, @endColor ) ); // Safari 4+, Chrome 2+
26 background-image: -webkit-linear-gradient( top, @startColor @startPos, @endColor @endPos ); // Safari 5.1+, Chrome 10+
27 background-image: linear-gradient( @startColor @startPos, @endColor @endPos ); // Standard
28 }
29
30 /* Note gzip compression means that it is okay to embed twice */
31 /* http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique */
32 .background-image-svg(@svg, @fallback) {
33 background-image: url(@fallback);
34 /* SVG support using a transparent gradient to guarantee cross-browser
35 * compatibility (browsers able to understand gradient syntax support also SVG) */
36 /* @embed */ background-image: -webkit-linear-gradient(transparent, transparent), url(@svg);
37 /* @embed */ background-image: linear-gradient(transparent, transparent), url(@svg);
38 }
39
40 /* Caution: Does not support localisable images */
41 .list-style-image(@url) when (embeddable(@url)) {
42 list-style-image: embed(@url);
43 list-style-image: url(@url)!ie;
44 }
45
46 .list-style-image(@url) when not (embeddable(@url)) {
47 list-style-image: url(@url);
48 }
49
50 .transition(@string) {
51 -webkit-transition: @string;
52 transition: @string;
53 }