-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathbuttons.less
97 lines (88 loc) · 2.73 KB
/
buttons.less
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/* ==========================================================================
Settings
========================================================================== */
@import 'variables.less';
/*
@baseline: @baseline;
@button-color: @button-color;
@button-primary-color: @button-primary-color;
@button-info-color: @button-info-color;
@button-success-color: @button-success-color;
@button-warning-color: @button-warning-color;
@button-danger-color: @button-danger-color;
*/
/* ==========================================================================
Default
========================================================================== */
.btn{
.btn-s;
background-clip: border-box !important;
background-repeat: repeat-x;
border: 1px solid rgba(0, 0, 0, 0.25);
.border-box;
.border-radius(4px);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
cursor: pointer;
display: inline-block;
.gradient(@button-color, lighten(@button-color, 10%), @button-color);
.phh;
.pvn;
.transition(background-position linear 0.1s);
vertical-align: middle;
color: #333;
font-family: @body-font-family;
text-decoration: none !important;
text-shadow: rgba(255,255,255,0.75) 0 1px 0;
&:hover{
background-position: 0 -15px;
}
}
/* ==========================================================================
Styles
========================================================================== */
.btn-primary,
.btn-info,
.btn-success,
.btn-warning,
.btn-danger{
color: #FFF !important;
text-shadow: rgba(0,0,0,0.25) 0 -1px 0 !important;
}
.btn-primary{
.btn;
.gradient(@button-primary-color, lighten(@button-primary-color, 10%), @button-primary-color);
}
.btn-info{
.btn;
.gradient(@button-info-color, lighten(@button-info-color, 10%), @button-info-color);
}
.btn-success{
.btn;
.gradient(@button-success-color, lighten(@button-success-color, 10%), @button-success-color);
}
.btn-warning{
.btn;
.gradient(@button-warning-color, lighten(@button-warning-color, 10%), @button-warning-color);
}
.btn-danger{
.btn;
.gradient(@button-danger-color, lighten(@button-danger-color, 10%), @button-danger-color);
}
/* ==========================================================================
Sizes (Half = h, Single = s, Double = d)
========================================================================== */
.btn-h, .btn-half{
height: @baseline;
font-size: @baseline * 0.6;
line-height: @baseline;
}
.btn-s, .btn-single{
height: @baseline * 1.5;
font-size: @baseline * 0.75;
line-height: @baseline * 1.5;
}
.btn-d, .btn-double{
height: @baseline * 2;
font-size: @baseline;
line-height: @baseline * 2;
}