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 .cr-dialog-container { | 5 .cr-dialog-container { |
6 -webkit-box-align: center; | 6 -webkit-box-align: center; |
7 -webkit-box-pack: center; | 7 -webkit-box-pack: center; |
8 -webkit-transition: opacity 250ms linear; | |
9 -webkit-user-select: none; | 8 -webkit-user-select: none; |
10 display: -webkit-box; | 9 display: -webkit-box; |
11 height: 100%; | 10 height: 100%; |
12 left: 0; | 11 left: 0; |
13 overflow: hidden; | 12 overflow: hidden; |
14 position: absolute; | 13 position: absolute; |
15 top: 0; | 14 top: 0; |
| 15 transition: opacity 250ms linear; |
16 width: 100%; | 16 width: 100%; |
17 z-index: 9999; | 17 z-index: 9999; |
18 } | 18 } |
19 | 19 |
20 .cr-dialog-frame { | 20 .cr-dialog-frame { |
21 -webkit-box-orient: vertical; | 21 -webkit-box-orient: vertical; |
22 -webkit-box-shadow: 5px 5px 5px rgba(100, 100, 100, 0.5); | 22 -webkit-box-shadow: 5px 5px 5px rgba(100, 100, 100, 0.5); |
23 background-color: white; | 23 background-color: white; |
24 border: 1px solid rgba(0, 0, 0, 0.3); | 24 border: 1px solid rgba(0, 0, 0, 0.3); |
25 border-radius: 3px; | 25 border-radius: 3px; |
26 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), | 26 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), |
27 0 2px 6px rgba(0, 0, 0, 0.15); | 27 0 2px 6px rgba(0, 0, 0, 0.15); |
28 cursor: default; | 28 cursor: default; |
29 display: -webkit-box; | 29 display: -webkit-box; |
30 padding: 14px 17px; | 30 padding: 14px 17px; |
31 position: relative; | 31 position: relative; |
32 width: 460px; | 32 width: 460px; |
33 } | 33 } |
34 | 34 |
35 .cr-dialog-frame:focus { | 35 .cr-dialog-frame:focus { |
36 outline: none; | 36 outline: none; |
37 } | 37 } |
38 | 38 |
39 @-webkit-keyframes pulse { | 39 @keyframes pulse { |
40 0% { | 40 0% { |
41 transform: scale(1); | 41 transform: scale(1); |
42 } | 42 } |
43 40% { | 43 40% { |
44 transform: scale(1.02); | 44 transform: scale(1.02); |
45 } | 45 } |
46 60% { | 46 60% { |
47 transform: scale(1.02); | 47 transform: scale(1.02); |
48 } | 48 } |
49 100% { | 49 100% { |
50 transform: scale(1); | 50 transform: scale(1); |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 .cr-dialog-frame.pulse { | 54 .cr-dialog-frame.pulse { |
55 -webkit-animation-duration: 180ms; | 55 animation-duration: 180ms; |
56 -webkit-animation-iteration-count: 1; | 56 animation-iteration-count: 1; |
57 -webkit-animation-name: pulse; | 57 animation-name: pulse; |
58 -webkit-animation-timing-function: ease-in-out; | 58 animation-timing-function: ease-in-out; |
59 } | 59 } |
60 | 60 |
61 .shown > .cr-dialog-frame { | 61 .shown > .cr-dialog-frame { |
| 62 opacity: 1; |
62 transform: perspective(500px) scale(1) | 63 transform: perspective(500px) scale(1) |
63 translateY(0) rotateX(0); | 64 translateY(0) rotateX(0); |
64 opacity: 1; | |
65 } | 65 } |
66 | 66 |
67 .cr-dialog-frame { | 67 .cr-dialog-frame { |
| 68 opacity: 0; |
68 transform: perspective(500px) scale(0.99) | 69 transform: perspective(500px) scale(0.99) |
69 translateY(-20px) rotateX(5deg); | 70 translateY(-20px) rotateX(5deg); |
70 -webkit-transition: all 180ms; | 71 transition: all 180ms; |
71 -webkit-transition-duration: 250ms; | 72 transition-duration: 250ms; |
72 opacity: 0; | |
73 } | 73 } |
74 | 74 |
75 .cr-dialog-shield { | 75 .cr-dialog-shield { |
76 -webkit-transition: opacity 500ms; | |
77 background-color: white; | 76 background-color: white; |
78 bottom: 0; | 77 bottom: 0; |
79 display: block; | 78 display: block; |
80 left: 0; | 79 left: 0; |
81 opacity: 0; | 80 opacity: 0; |
82 pointer-events: none; | 81 pointer-events: none; |
83 position: absolute; | 82 position: absolute; |
84 right: 0; | 83 right: 0; |
85 top: 0; | 84 top: 0; |
| 85 transition: opacity 500ms; |
86 } | 86 } |
87 | 87 |
88 .shown > .cr-dialog-shield { | 88 .shown > .cr-dialog-shield { |
89 -webkit-transition: opacity 500ms; | |
90 opacity: 0.75; | 89 opacity: 0.75; |
| 90 transition: opacity 500ms; |
91 } | 91 } |
92 | 92 |
93 [hidden] { | 93 [hidden] { |
94 display: none; | 94 display: none; |
95 } | 95 } |
96 | 96 |
97 .cr-dialog-title { | 97 .cr-dialog-title { |
98 -webkit-margin-end: 20px; | 98 -webkit-margin-end: 20px; |
99 display: block; | 99 display: block; |
100 font-size: 120%; | 100 font-size: 120%; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 width: 44px; | 137 width: 44px; |
138 } | 138 } |
139 | 139 |
140 .cr-dialog-close:hover { | 140 .cr-dialog-close:hover { |
141 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H); | 141 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H); |
142 } | 142 } |
143 | 143 |
144 .cr-dialog-close:active { | 144 .cr-dialog-close:active { |
145 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P); | 145 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P); |
146 } | 146 } |
OLD | NEW |