1 @import "../default/theme.less";
3 @padding-normal: 0px 16px;
6 @min-width-normal: 80px;
9 @btn-margin-right: 10px;
10 @btn-margin-right-sm: 5px;
11 @btn-margin-right-xs: 5px;
12 @btn-border-height: 1px;
14 .border-min-width(@min-width, 14px) {
15 min-width: @min-width + 8px;
18 .border-min-width(@min-width, 12px) {
19 min-width: @min-width;
22 .background-color-white-color-disabled (@color) when (@color = #fff) {
23 color: @disabled-text-color;
24 background-color: @common-color;
25 border-color: #e9e9e9;
28 .background-color-white-color-disabled (@color) when not (@color = #fff) {
30 background-color: @color;
31 opacity: @opacity-disable;
35 font-family: @font-family;
36 color: @common-textcolor;
37 .border-min-width(@min-width-normal, @font-size);
39 padding: @padding-normal;
41 font-size: @font-size;
45 margin-right: @btn-margin-right;
46 vertical-align: middle;
47 border: @btn-border-height solid @border-color-base;
48 background-color: @common-color;
49 border-radius: @radius;
50 line-height: @btn-height - @btn-border-height * 2;
57 background-image: none;
59 -webkit-box-shadow: none;
60 -moz-box-shadow: none;
66 color: @btn-common-color-text-hover;
67 border-color: @btn-common-color-border-hover;
68 background-color: @common-color-hover;
71 color: @btn-common-color-text-click;
72 border-color: @btn-common-color-border-click;
73 background-color: @common-color-click;
77 .background-color-white-color-disabled(@common-color);
83 .background-color-white-color-disabled(@common-color);
88 vertical-align: text-top;
94 background-color: @primary-color;
95 color: @scene-textcolor;
96 border-color: @primary-color;
99 color: @scene-textcolor;
100 background-color: @primary-color-hover;
101 border-color: @primary-color-hover;
104 color: @scene-textcolor;
105 background-color: @primary-color-click;
106 border-color: @primary-color-click;
114 color: @scene-textcolor;
115 .background-color-white-color-disabled(@primary-color);
120 background-color: @guide-color;
121 color: @scene-textcolor;
122 border-color: @guide-color;
125 color: @scene-textcolor;
126 background-color: @primary-color-guide-hover;
127 border-color: @primary-color-guide-hover;
130 color: @scene-textcolor;
131 background-color: @primary-color-guide-click;
132 border-color: @primary-color-guide-click;
140 color: @scene-textcolor;
141 .background-color-white-color-disabled(@guide-color);
150 background-color: @error-color;
151 color: @scene-textcolor;
152 border-color: @error-color;
155 color: @scene-textcolor;
156 background-color: @error-color-hover;
157 border-color: @error-color-hover;
160 color: @scene-textcolor;
161 background-color: @error-color-click;
162 border-color: @error-color-click;
170 color: @scene-textcolor;
171 .background-color-white-color-disabled(@error-color);
176 height: @btn-height-sm;
177 padding: @padding-sm;
178 .border-min-width(@min-width-sm, @font-size);
179 margin-right: @btn-margin-right-sm;
180 line-height: @btn-height-sm - @btn-border-height * 2;
184 height: @btn-height-xs;
185 padding: @padding-xs;
186 .border-min-width(@min-width-xs, @font-size);
187 margin-right: @btn-margin-right-xs;
188 line-height: @btn-height-xs - @btn-border-height * 2;
191 .plx-btn.dropdown-toggle {
193 outline: none !important;
194 background-image: none !important;
196 -webkit-box-shadow: none;
197 -moz-box-shadow: none;
202 .plx-btn.dropdown-toggle::after {
204 border-top: 4px solid;
205 border-right: 4px solid transparent;
206 border-left: 4px solid transparent;
207 color: darken(@border-color-base, 10%);
211 .plx-btn-sm.dropdown-toggle::after {
215 .plx-btn-xs.dropdown-toggle::after {
219 .plx-btn+.dropdown-menu {
224 font-size: @font-size;
225 border-radius: @radius;
228 background-color: @component-bg;
230 font-size: @font-size;
231 padding: @padding-normal;
238 background-color: @hover-bg-color;
242 color: @disabled-text-color;
249 background-color: @component-bg;
254 .plx-btn-sm+.dropdown-menu .dropdown-item {
255 padding: @padding-sm;
257 .plx-btn-xs+.dropdown-menu .dropdown-item {
258 padding: @padding-xs;
262 display: inline-block;
263 margin-right: @btn-margin-right;
267 margin-right: @btn-margin-right-sm;
271 margin-right: @btn-margin-right-xs;