button.less
2.22 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@import "variables.less";
.btn {
display: inline-block;
width: auto;
font-size: 14px;
padding: 4px 12px;
text-align: center;
border-radius: 2px;
border: none;
}
.btn-normal {
height: 36px;
color: @xn-font-primary;
font-weight: 600;
font-size: 14px;
line-height: 36px;
padding: 0 20px;
}
.btn-normal-disable {
height: 36px;
font-weight: 600;
font-size: 14px;
line-height: 36px;
padding: 0 20px;
color: #ccc;
background: #eee;
}
.btn-normal-disable:hover, .btn-normal-disable:focus {
color: #ccc;
}
.btn-common {
background: #ddd;
}
.btn-common:hover {
background: #eee;
}
.btn-common:focus {
background: #ccc;
}
.btn-sm {
height: 30px;
color: @xn-font-primary;
font-size: 12px;
padding: 3px 8px;
}
.btn-bg{
padding: 3px 8px;
}
.btn-sm-disable {
height: 30px;
font-size: 14px;
line-height: 30px;
padding: 0 15px;
color: #ccc;
background: #eee;
}
.btn-sm-disable:hover, .btn-sm-disable:focus {
color: #ccc;
}
.btn-primary{
color: #fff;
background: @xn-blue;
}
.btn-primary:hover {
color: #fff;
background: #6699ff;
}
.btn-primary:focus {
background: #2976eb;
}
.btn-success {
color: #fff;
background: #5CB85C;
}
.btn-success:hover{
color: #fff;
background: #449d44;
}
.btn-success:focus {
color: #fff;
background: #449d44;
}
.btn-info {
color: #fff;
background: #5bc0de;
}
.btn-info:hover{
color: #fff;
background: #31b0d5;
}
.btn-info:focus {
color: #fff;
background: #31b0d5;
}
.btn-warn {
color: #fff;
background: #f0ad4e;
}
.btn-warn:hover{
color: #fff;
background: #ec971f;
}
.btn-warn:focus {
color: #fff;
background: #ec971f;
}
.btn-danger {
color: #fff;
background: #d9534f;
}
.btn-danger:hover{
color: #fff;
background: #c9302c;
}
.btn-danger:focus {
color: #fff;
background: #c9302c;
}
.btn-special {
height: 48px;
color: #fff;
font-weight: 600;
line-height: 48px;
padding: 0;
width: 300px;
background: @xn-orange;
font-size: 18px;
}
.btn-special:hover {
background: #ffcb7e;
color: #fff;
}
.btn-special:focus {
color: #fff;
background: #ffb344;
}