OLD | NEW |
1 /* https://github.com/bgrins/spectrum */ | 1 /* https://github.com/bgrins/spectrum */ |
2 :host { | 2 :host { |
3 width: 232px; | 3 width: 232px; |
4 height: 240px; | 4 height: 240px; |
5 -webkit-user-select: none; | 5 -webkit-user-select: none; |
6 } | 6 } |
7 | 7 |
8 :host(.palettes-enabled) { | 8 :host(.palettes-enabled) { |
9 height: 271px; | 9 height: 271px; |
10 } | 10 } |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 flex: 0 0 12px; | 201 flex: 0 0 12px; |
202 display: inline-block; | 202 display: inline-block; |
203 border-radius: 2px; | 203 border-radius: 2px; |
204 margin: 6px; | 204 margin: 6px; |
205 cursor: pointer; | 205 cursor: pointer; |
206 } | 206 } |
207 | 207 |
208 .spectrum-palette > .spectrum-palette-color { | 208 .spectrum-palette > .spectrum-palette-color { |
209 transition: transform 100ms cubic-bezier(0, 0, 0.2, 1); | 209 transition: transform 100ms cubic-bezier(0, 0, 0.2, 1); |
210 border: 1px solid rgba(0, 0, 0, 0.1); | 210 border: 1px solid rgba(0, 0, 0, 0.1); |
| 211 will-change: transform; |
211 } | 212 } |
212 | 213 |
213 .spectrum-palette > .spectrum-palette-color.empty-color { | 214 .spectrum-palette > .spectrum-palette-color.empty-color { |
214 border-color: transparent; | 215 border-color: transparent; |
215 } | 216 } |
216 | 217 |
217 .spectrum-palette > .spectrum-palette-color:not(.empty-color):hover { | 218 .spectrum-palette > .spectrum-palette-color:not(.empty-color):hover { |
218 transform: scale(1.15); | 219 transform: scale(1.15); |
219 } | 220 } |
220 | 221 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 width: 100%; | 305 width: 100%; |
305 height: 100%; | 306 height: 100%; |
306 } | 307 } |
307 | 308 |
308 .spectrum-contrast-line { | 309 .spectrum-contrast-line { |
309 fill: none; | 310 fill: none; |
310 stroke: white; | 311 stroke: white; |
311 opacity: 0.7; | 312 opacity: 0.7; |
312 stroke-width: 1.5px; | 313 stroke-width: 1.5px; |
313 } | 314 } |
OLD | NEW |