|
3 | 3 | @font-face { |
4 | 4 | font-family: 'FontAwesome'; |
5 | 5 | src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot'); |
6 | | - src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.woff') format('woff'), url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf') format('truetype'), url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.svg?#fontawesomeregular') format('svg'); |
| 6 | + src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?#iefix') |
| 7 | + format('embedded-opentype'), |
| 8 | + url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.woff') |
| 9 | + format('woff'), |
| 10 | + url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf') |
| 11 | + format('truetype'), |
| 12 | + url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.svg?#fontawesomeregular') |
| 13 | + format('svg'); |
7 | 14 | font-weight: normal; |
8 | 15 | font-style: normal; |
9 | 16 | } |
|
24 | 31 |
|
25 | 32 | &-collapse { |
26 | 33 | overflow: hidden; |
27 | | - &-active { |
28 | | - transition: height .3s ease-out; |
29 | | - } |
| 34 | + // &-active { |
| 35 | + transition: height 0.3s ease-out; |
| 36 | + // } |
30 | 37 | } |
31 | 38 |
|
32 | 39 | &-item-group-list { |
|
68 | 75 | margin-top: 0; |
69 | 76 | } |
70 | 77 |
|
71 | | - &-item, &-submenu-title { |
| 78 | + &-item, |
| 79 | + &-submenu-title { |
72 | 80 | margin: 0; |
73 | 81 | position: relative; |
74 | 82 | display: block; |
75 | 83 | padding: 7px 7px 7px 16px; |
76 | 84 | white-space: nowrap; |
77 | 85 |
|
78 | 86 | // Disabled state sets text to gray and nukes hover/tab effects |
79 | | - &.@{menuPrefixCls}-item-disabled, &.@{menuPrefixCls}-submenu-disabled { |
| 87 | + &.@{menuPrefixCls}-item-disabled, |
| 88 | + &.@{menuPrefixCls}-submenu-disabled { |
80 | 89 | color: #777 !important; |
81 | 90 | } |
82 | 91 | } |
|
102 | 111 | } |
103 | 112 | } |
104 | 113 |
|
105 | | - .@{menuPrefixCls}-submenu-title, .@{menuPrefixCls}-item { |
| 114 | + .@{menuPrefixCls}-submenu-title, |
| 115 | + .@{menuPrefixCls}-item { |
106 | 116 | .anticon { |
107 | 117 | width: 14px; |
108 | 118 | height: 14px; |
|
112 | 122 | } |
113 | 123 |
|
114 | 124 | &-horizontal { |
115 | | - background-color: #F3F5F7; |
| 125 | + background-color: #f3f5f7; |
116 | 126 | border: none; |
117 | 127 | border-bottom: 1px solid #d9d9d9; |
118 | 128 | box-shadow: none; |
119 | 129 | white-space: nowrap; |
120 | 130 | overflow: hidden; |
121 | 131 |
|
122 | | - & > .@{menuPrefixCls}-item, & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { |
| 132 | + & > .@{menuPrefixCls}-item, |
| 133 | + & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { |
123 | 134 | padding: 15px 20px; |
124 | 135 | } |
125 | 136 |
|
126 | | - & > .@{menuPrefixCls}-submenu, & > .@{menuPrefixCls}-item { |
| 137 | + & > .@{menuPrefixCls}-submenu, |
| 138 | + & > .@{menuPrefixCls}-item { |
127 | 139 | border-bottom: 2px solid transparent; |
128 | 140 | display: inline-block; |
129 | 141 | vertical-align: bottom; |
130 | 142 |
|
131 | 143 | &-active { |
132 | 144 | border-bottom: 2px solid #2db7f5; |
133 | | - background-color: #F3F5F7; |
| 145 | + background-color: #f3f5f7; |
134 | 146 | color: #2baee9; |
135 | 147 | } |
136 | 148 | } |
137 | 149 |
|
138 | 150 | &:after { |
139 | | - content: "\20"; |
| 151 | + content: '\20'; |
140 | 152 | display: block; |
141 | 153 | height: 0; |
142 | 154 | clear: both; |
|
148 | 160 | &-vertical-right, |
149 | 161 | &-inline { |
150 | 162 | padding: 12px 0; |
151 | | - & > .@{menuPrefixCls}-item, & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { |
| 163 | + & > .@{menuPrefixCls}-item, |
| 164 | + & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { |
152 | 165 | padding: 12px 8px 12px 24px; |
153 | 166 | } |
154 | 167 | .@{menuPrefixCls}-submenu-arrow { |
|
163 | 176 | right: 16px; |
164 | 177 | line-height: 1.5em; |
165 | 178 | &:before { |
166 | | - content: "\f0da"; |
| 179 | + content: '\f0da'; |
167 | 180 | } |
168 | 181 | } |
169 | 182 | } |
170 | 183 | &-inline { |
171 | 184 | .@{menuPrefixCls}-submenu-arrow { |
172 | 185 | transform: rotate(90deg); |
173 | | - transition: transform .3s; |
| 186 | + transition: transform 0.3s; |
174 | 187 | } |
175 | 188 | & .@{menuPrefixCls}-submenu-open > .@{menuPrefixCls}-submenu-title { |
176 | 189 | .@{menuPrefixCls}-submenu-arrow { |
|
191 | 204 | border-radius: 0; |
192 | 205 | box-shadow: none; |
193 | 206 |
|
194 | | - & > .@{menuPrefixCls}-item, & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { |
| 207 | + & > .@{menuPrefixCls}-item, |
| 208 | + & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { |
195 | 209 | padding-top: 8px; |
196 | 210 | padding-bottom: 8px; |
197 | 211 | padding-right: 0; |
198 | 212 | } |
199 | 213 | } |
200 | 214 |
|
201 | 215 | .effect() { |
202 | | - animation-duration: .3s; |
| 216 | + animation-duration: 0.3s; |
203 | 217 | animation-fill-mode: both; |
204 | 218 | transform-origin: 0 0; |
205 | 219 | } |
206 | 220 |
|
207 | 221 | &-open { |
208 | | - |
209 | | - &-slide-up-enter, &-slide-up-appear { |
| 222 | + &-slide-up-enter, |
| 223 | + &-slide-up-appear { |
210 | 224 | .effect(); |
211 | 225 | opacity: 0; |
212 | 226 | animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); |
|
220 | 234 | animation-play-state: paused; |
221 | 235 | } |
222 | 236 |
|
223 | | - &-slide-up-enter&-slide-up-enter-active, &-slide-up-appear&-slide-up-appear-active { |
| 237 | + &-slide-up-enter&-slide-up-enter-active, |
| 238 | + &-slide-up-appear&-slide-up-appear-active { |
224 | 239 | animation-name: rcMenuOpenSlideUpIn; |
225 | 240 | animation-play-state: running; |
226 | 241 | } |
|
255 | 270 | } |
256 | 271 | } |
257 | 272 |
|
258 | | - &-zoom-enter, &-zoom-appear { |
| 273 | + &-zoom-enter, |
| 274 | + &-zoom-appear { |
259 | 275 | opacity: 0; |
260 | 276 | .effect(); |
261 | 277 | animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1); |
|
268 | 284 | animation-play-state: paused; |
269 | 285 | } |
270 | 286 |
|
271 | | - &-zoom-enter&-zoom-enter-active, &-zoom-appear&-zoom-appear-active { |
| 287 | + &-zoom-enter&-zoom-enter-active, |
| 288 | + &-zoom-appear&-zoom-appear-active { |
272 | 289 | animation-name: rcMenuOpenZoomIn; |
273 | 290 | animation-play-state: running; |
274 | 291 | } |
|
290 | 307 | } |
291 | 308 | @keyframes rcMenuOpenZoomOut { |
292 | 309 | 0% { |
293 | | - |
294 | 310 | transform: scale(1, 1); |
295 | 311 | } |
296 | 312 | 100% { |
|
299 | 315 | } |
300 | 316 | } |
301 | 317 | } |
302 | | - |
303 | 318 | } |
304 | | - |
|
0 commit comments