-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathindex.less
121 lines (118 loc) · 2.75 KB
/
index.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import '../../style/themes/index';
@import '../../input/style/mixin';
@color-picker-prefix-cls: ~'@{ant-prefix}-color-picker';
.@{color-picker-prefix-cls} {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
list-style: none;
font-feature-settings: 'tnum';
position: relative;
display: inline-block;
outline: none;
cursor: pointer;
transition: opacity 0.3s;
min-width: 55px;
.pickr {
display: inline-block;
.pcr-button {
width: 18px;
height: 18px;
margin-left: 7px;
&:focus {
box-shadow: none;
}
}
}
&.@{color-picker-prefix-cls}-disabled {
cursor: not-allowed;
.@{color-picker-prefix-cls}-selection {
background: @input-disabled-bg;
box-shadow: none;
border: @border-width-base @border-style-base @select-border-color;
&:hover,
&:focus,
&:active {
border: @border-width-base @border-style-base @select-border-color;
box-shadow: none;
}
}
&.@{color-picker-prefix-cls}-open {
.@{color-picker-prefix-cls}-icon {
& svg {
transform: none;
}
}
}
}
&-open {
.@{color-picker-prefix-cls}-icon {
& svg {
transform: rotate(180deg);
}
}
.@{color-picker-prefix-cls}-selection {
.active();
}
}
&-selection {
display: block;
box-sizing: border-box;
background-color: @select-background;
border: @border-width-base @border-style-base @select-border-color;
border-top-width: @border-width-base + 0.02px;
border-radius: @border-radius-base;
outline: none;
transition: all 0.3s @ease-in-out;
user-select: none;
position: relative;
height: @input-height-base;
cursor: inherit;
&:hover {
.hover();
}
}
&-icon {
.iconfont-mixin();
position: absolute;
top: 50%;
right: @control-padding-horizontal - 4px;
margin-top: (-@font-size-sm / 2);
color: @disabled-color;
font-size: @font-size-sm;
line-height: 1;
transform-origin: 50% 50%;
& svg {
transition: transform 0.3s;
}
}
&-lg {
font-size: @font-size-lg;
.@{color-picker-prefix-cls}-selection {
line-height: @input-height-lg - 12;
height: @input-height-lg;
}
.@{color-picker-prefix-cls}-icon {
top: (@input-height-lg / 2);
}
}
&-sm {
.@{color-picker-prefix-cls}-selection {
line-height: @input-height-sm - 12;
height: @input-height-sm;
}
.pickr .pcr-button {
width: 14px;
height: 14px;
}
.@{color-picker-prefix-cls}-icon {
right: @control-padding-horizontal - 2px;
top: (@input-height-sm / 2);
font-size: 10px;
}
}
}