OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 .trash { | 5 .trash { |
6 -webkit-appearance: none; | 6 -webkit-appearance: none; |
7 background: none; | 7 background: none; |
8 border: none; | 8 border: none; |
9 cursor: pointer; | 9 cursor: pointer; |
10 display: inline-block; | 10 display: inline-block; |
(...skipping 20 matching lines...) Expand all Loading... |
31 -webkit-transform-origin: -7% 100%; | 31 -webkit-transform-origin: -7% 100%; |
32 -webkit-transition: -webkit-transform 150ms; | 32 -webkit-transition: -webkit-transform 150ms; |
33 height: 6px; | 33 height: 6px; |
34 width: 14px; | 34 width: 14px; |
35 } | 35 } |
36 | 36 |
37 html[dir='rtl'] .trash > .lid { | 37 html[dir='rtl'] .trash > .lid { |
38 -webkit-transform-origin: 107% 100%; | 38 -webkit-transform-origin: 107% 100%; |
39 } | 39 } |
40 | 40 |
41 .trash:focus > .lid, | 41 .trash:-webkit-any(:focus, :hover, .open) > .lid { |
42 .trash:hover > .lid { | |
43 -webkit-transform: rotate(-45deg); | 42 -webkit-transform: rotate(-45deg); |
44 -webkit-transition: -webkit-transform 250ms; | 43 -webkit-transition: -webkit-transform 250ms; |
45 } | 44 } |
46 | 45 |
47 html[dir='rtl'] .trash:focus > .lid, | 46 html[dir='rtl'] .trash:-webkit-any(:focus, :hover, .open) > .lid { |
48 html[dir='rtl'] .trash:hover > .lid { | |
49 -webkit-transform: rotate(45deg); | 47 -webkit-transform: rotate(45deg); |
50 } | 48 } |
51 | 49 |
52 .trash > .can { | 50 .trash > .can { |
53 background-position: -1px -4px; | 51 background-position: -1px -4px; |
54 height: 12px; | 52 height: 12px; |
55 /* The margins match the background position offsets. */ | 53 /* The margins match the background position offsets. */ |
56 margin-left: 1px; | 54 margin-left: 1px; |
57 /* The right margin is one greater due to a shadow on the trash image. */ | 55 /* The right margin is one greater due to a shadow on the trash image. */ |
58 margin-right: 2px; | 56 margin-right: 2px; |
59 margin-top: 4px; | 57 margin-top: 4px; |
60 width: 11px; | 58 width: 11px; |
61 } | 59 } |
OLD | NEW |