unignore bower_components
[bootswatch] / bower_components / font-awesome / src / assets / less / mixins.less
1 .gradient-text (@color: #808080, @color1: #999, @color2: #B3B3B3, @color3: #B3B3B3, @color4: #666) {
2     // fallback for browsers that don't support this
3 //    color: @color;
4
5     // makes simple gradient text in webkit browsers
6 //    background: -webkit-gradient(linear, left top, left bottom, from(@colorTop), to(@colorBottom));
7
8     // makes a more complex background, allowing iPhone-like text gradients
9     background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @color1), color-stop(55%, @color2), color-stop(55%, @color3), color-stop(100%, @color4)); // Safari 4+, Chrome 2+
10     background-image: -webkit-linear-gradient(top, @color1 0%, @color2 55%, @color3 55%, @color4 100%); // Safari 5.1+, Chrome 10+
11
12     -webkit-background-clip: text;
13     -webkit-text-fill-color: transparent;
14 }
15
16 // Mixin for generating button backgrounds
17 // ---------------------------------------
18 .buttonBackgroundThreeColors(@startColor, @midColor, @colorStop, @endColor) {
19   // gradientBar will set the background to a pleasing blend of these, to support IE<=9
20   #gradient > .vertical-three-colors(@startColor, @midColor, @colorStop, @endColor);
21   border-color: @startColor @startColor darken(@endColor, 15%);
22   border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
23
24   .reset-filter();
25
26   // in these cases the gradient won't cover the background, so we override
27   &:hover, &:active, &.active, &.disabled, &[disabled] {
28     background-color: @endColor;
29   }
30
31   // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
32   &:active,
33   &.active {
34     background-color: darken(@endColor, 10%) e("\9");
35   }
36 }
37
38 .icon-size (@size: 14px, @width-multiplier: .9, @height-multiplier: 1) {
39   i { font-size: @size; }
40   line-height: @size * 1.1;
41   height: @size * @height-multiplier * 1.05;
42   text-align: center;
43 }
44
45 .sticky-footer (@footer-height: @baseLineHeight * 4, @footer-padding-top: 70px, @footer-padding-bottom: 70px, @footer-margin-top: 70px) {
46   .wrapper {
47     margin: 0 auto -(@footer-height + @footer-padding-bottom + @footer-padding-top + @footer-margin-top + 1);
48   }
49   .push {
50     height: @footer-height + @footer-padding-bottom + @footer-padding-top + @footer-margin-top + 1;
51   }
52
53   .footer {
54     margin-top: @footer-margin-top;
55     height: @footer-height;
56     padding: @footer-padding-top 0 @footer-padding-bottom;
57   }
58 }