1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* _effects.scss */
/* Mixins for visual effects in CSS3 */
// ----------------------------------------------------------------------------
// Gradients
// ----------------------------------------------------------------------------
@mixin vertical-gradient ($startColor: lighten($agoraGray, 95%), $endColor: $agoraGray) {
// Fallback
background-color: $endColor;
*background-color: $endColor; // IE7
// IE6-8
@include filter-gradient($startColor, $endColor, vertical);
// IE9+, Opera, Gecko, WebKit
@include background-image(linear-gradient(top, $startColor, $endColor));
}
// ----------------------------------------------------------------------------
// Button styling
// ----------------------------------------------------------------------------
@mixin buttonColors ($baseColor: $agoraGray) {
// Background color
@include vertical-gradient(lighten($baseColor, 7.5%), $baseColor);
@if $baseColor == $agoraGray {
color: black;
@include text-shadow(0 1px 1px rgba($baseColor, 0.3));
} @else {
color: white;
@include text-shadow(0 1px 1px rgba($baseColor, 0.75));
}
border: 1px solid darken($baseColor, 2%);
&:hover,
&.mw-ui-hover {
@include vertical-gradient(lighten($baseColor, 12.5%), lighten($baseColor, 7.5%));
text-decoration: none;
}
&:active,
&.mw-ui-active {
background: {
image: none;
color: darken($baseColor, 3%);
}
text-shadow: none;
}
&:disabled,
&.mw-ui-disabled {
background: {
image: none;
color: $baseColor;
}
opacity: 0.5;
text-shadow: none;
}
}
|