File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 487
487
@tag-default-bg : @background-color-light ;
488
488
@tag-default-color : @text-color ;
489
489
@tag-font-size : @font-size-sm ;
490
+ @tag-line-height : 20px ;
490
491
491
492
// TimePicker
492
493
// ---
Original file line number Diff line number Diff line change 11
11
margin-right : 8px ;
12
12
padding : 0 7px ;
13
13
font-size : @tag-font-size ;
14
- line-height : 20 px ;
14
+ line-height : @tag-line-height ;
15
15
white-space : nowrap ;
16
16
background : @tag-default-bg ;
17
17
border : @border-width-base @border-style-base @border-color-base ;
64
64
&-checkable {
65
65
background-color : transparent ;
66
66
border-color : transparent ;
67
+ cursor : pointer ;
67
68
& :not (&-checked ):hover {
68
69
color : @primary-color ;
69
70
}
102
103
}
103
104
}
104
105
106
+ .make-status-color-classes (@color , @status ) {
107
+ @lightColor : ' @{color} -1' ;
108
+ @lightBorderColor : ' @{color} -3' ;
109
+ @darkColor : ' @{color} -6' ;
110
+ &- @{status} {
111
+ color : @@darkColor ;
112
+ background : @@lightColor ;
113
+ border-color : @@lightBorderColor ;
114
+ }
115
+ }
116
+
105
117
.make-color-classes ();
118
+
119
+ .make-status-color-classes (' green' , success);
120
+ .make-status-color-classes (' blue' , processing);
121
+ .make-status-color-classes (' red' , error);
122
+ .make-status-color-classes (' orange' , warning);
123
+
124
+ // To ensure that a space will be placed between character and `Icon`.
125
+ > .@{iconfont-css-prefix} + span ,
126
+ > span + .@{iconfont-css-prefix} {
127
+ margin-left : 7px ;
128
+ }
106
129
}
You can’t perform that action at this time.
0 commit comments