UNPKG

3.26 kBCSSView Raw
1.rc-time-picker {
2 display: inline-block;
3 position: relative;
4 box-sizing: border-box;
5}
6.rc-time-picker * {
7 box-sizing: border-box;
8}
9.rc-time-picker-clear {
10 position: absolute;
11 right: 6px;
12 cursor: pointer;
13 overflow: hidden;
14 width: 20px;
15 height: 20px;
16 text-align: center;
17 line-height: 20px;
18 top: 3px;
19 margin: 0;
20}
21.rc-time-picker-clear-icon:after {
22 content: "x";
23 font-size: 12px;
24 font-style: normal;
25 color: #aaa;
26 display: inline-block;
27 line-height: 1;
28 height: 20px;
29 width: 20px;
30 transition: color 0.3s ease;
31}
32.rc-time-picker-clear-icon:hover:after {
33 color: #666;
34}
35.rc-time-picker-input {
36 width: 100%;
37 position: relative;
38 display: inline-block;
39 padding: 4px 7px;
40 height: 28px;
41 cursor: text;
42 font-size: 12px;
43 line-height: 1.5;
44 color: #666;
45 background-color: #fff;
46 background-image: none;
47 border: 1px solid #d9d9d9;
48 border-radius: 4px;
49 transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
50}
51.rc-time-picker-input[disabled] {
52 color: #ccc;
53 background: #f7f7f7;
54 cursor: not-allowed;
55}
56.rc-time-picker-panel {
57 z-index: 1070;
58 width: 170px;
59 position: absolute;
60 box-sizing: border-box;
61}
62.rc-time-picker-panel * {
63 box-sizing: border-box;
64}
65.rc-time-picker-panel-inner {
66 display: inline-block;
67 position: relative;
68 outline: none;
69 list-style: none;
70 font-size: 12px;
71 text-align: left;
72 background-color: #fff;
73 border-radius: 4px;
74 box-shadow: 0 1px 5px #ccc;
75 background-clip: padding-box;
76 border: 1px solid #ccc;
77 line-height: 1.5;
78}
79.rc-time-picker-panel-narrow {
80 max-width: 113px;
81}
82.rc-time-picker-panel-input {
83 margin: 0;
84 padding: 0;
85 width: 100%;
86 cursor: auto;
87 line-height: 1.5;
88 outline: 0;
89 border: 1px solid transparent;
90}
91.rc-time-picker-panel-input-wrap {
92 box-sizing: border-box;
93 position: relative;
94 padding: 6px;
95 border-bottom: 1px solid #e9e9e9;
96}
97.rc-time-picker-panel-input-invalid {
98 border-color: red;
99}
100.rc-time-picker-panel-select {
101 float: left;
102 font-size: 12px;
103 border: 1px solid #e9e9e9;
104 border-width: 0 1px;
105 margin-left: -1px;
106 box-sizing: border-box;
107 width: 56px;
108 max-height: 144px;
109 overflow-y: auto;
110 position: relative;
111}
112.rc-time-picker-panel-select-active {
113 overflow-y: auto;
114}
115.rc-time-picker-panel-select:first-child {
116 border-left: 0;
117 margin-left: 0;
118}
119.rc-time-picker-panel-select:last-child {
120 border-right: 0;
121}
122.rc-time-picker-panel-select ul {
123 list-style: none;
124 box-sizing: border-box;
125 margin: 0;
126 padding: 0;
127 width: 100%;
128}
129.rc-time-picker-panel-select li {
130 list-style: none;
131 margin: 0;
132 padding: 0 0 0 16px;
133 width: 100%;
134 height: 24px;
135 line-height: 24px;
136 text-align: left;
137 cursor: pointer;
138 -webkit-user-select: none;
139 -moz-user-select: none;
140 -ms-user-select: none;
141 user-select: none;
142}
143.rc-time-picker-panel-select li:hover {
144 background: #edfaff;
145}
146li.rc-time-picker-panel-select-option-selected {
147 background: #f7f7f7;
148 font-weight: bold;
149}
150li.rc-time-picker-panel-select-option-disabled {
151 color: #ccc;
152}
153li.rc-time-picker-panel-select-option-disabled:hover {
154 background: transparent;
155 cursor: not-allowed;
156}