Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/common/extensions/docs/examples/api/fontSettings/css/overlay.css

Issue 2534693002: Reduce usage of webkit prefixes in extension examples (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 /* The shield that overlays the background. */ 5 /* The shield that overlays the background. */
6 .overlay { 6 .overlay {
7 -webkit-box-align: center; 7 -webkit-box-align: center;
8 -webkit-box-orient: vertical; 8 -webkit-box-orient: vertical;
9 -webkit-box-pack: center; 9 -webkit-box-pack: center;
10 -webkit-transition: 200ms opacity;
11 background-color: rgba(255, 255, 255, 0.75); 10 background-color: rgba(255, 255, 255, 0.75);
12 bottom: 0; 11 bottom: 0;
13 display: -webkit-box; 12 display: -webkit-box;
14 left: 0; 13 left: 0;
15 overflow: auto; 14 overflow: auto;
16 padding: 20px; 15 padding: 20px;
17 position: fixed; 16 position: fixed;
18 right: 0; 17 right: 0;
19 top: 0; 18 top: 0;
19 transition: 200ms opacity;
20 } 20 }
21 21
22 /* Used to slide in the overlay. */ 22 /* Used to slide in the overlay. */
23 .overlay.transparent .page { 23 .overlay.transparent .page {
24 /* TODO(flackr): Add perspective(500px) rotateX(5deg) when accelerated 24 /* TODO(flackr): Add perspective(500px) rotateX(5deg) when accelerated
25 * compositing is enabled on chrome:// pages. See http://crbug.com/116800. */ 25 * compositing is enabled on chrome:// pages. See http://crbug.com/116800. */
26 -webkit-transform: scale(0.99) translateY(-20px); 26 transform: scale(0.99) translateY(-20px);
27 } 27 }
28 28
29 /* The foreground dialog. */ 29 /* The foreground dialog. */
30 .overlay .page { 30 .overlay .page {
31 -webkit-border-radius: 3px; 31 -webkit-border-radius: 3px;
32 -webkit-box-orient: vertical; 32 -webkit-box-orient: vertical;
33 -webkit-transition: 200ms -webkit-transform;
34 background: white; 33 background: white;
35 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0,0,0,0.15); 34 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0,0,0,0.15);
36 color: #333; 35 color: #333;
37 display: -webkit-box; 36 display: -webkit-box;
38 min-width: 400px; 37 min-width: 400px;
39 padding: 0; 38 padding: 0;
40 position: relative; 39 position: relative;
40 transition: 200ms transform;
41 } 41 }
42 42
43 /* If the options page is loading don't do the transition. */ 43 /* If the options page is loading don't do the transition. */
44 .loading .overlay, 44 .loading .overlay,
45 .loading .overlay .page { 45 .loading .overlay .page {
46 -webkit-transition-duration: 0ms !important; 46 transition-duration: 0ms !important;
47 } 47 }
48 48
49 /* keyframes used to pulse the overlay */ 49 /* keyframes used to pulse the overlay */
50 @-webkit-keyframes pulse { 50 @keyframes pulse {
51 0% { 51 0% {
52 -webkit-transform: scale(1); 52 transform: scale(1);
53 } 53 }
54 40% { 54 40% {
55 -webkit-transform: scale(1.02); 55 transform: scale(1.02);
56 } 56 }
57 60% { 57 60% {
58 -webkit-transform: scale(1.02); 58 transform: scale(1.02);
59 } 59 }
60 100% { 60 100% {
61 -webkit-transform: scale(1); 61 transform: scale(1);
62 } 62 }
63 } 63 }
64 64
65 .overlay .page.pulse { 65 .overlay .page.pulse {
66 -webkit-animation-duration: 180ms; 66 animation-duration: 180ms;
67 -webkit-animation-iteration-count: 1; 67 animation-iteration-count: 1;
68 -webkit-animation-name: pulse; 68 animation-name: pulse;
69 -webkit-animation-timing-function: ease-in-out; 69 animation-timing-function: ease-in-out;
70 } 70 }
71 71
72 .overlay .page > .close-button { 72 .overlay .page > .close-button {
73 background-image: url('../images/x.png'); 73 background-image: url('../images/x.png');
74 background-position: center; 74 background-position: center;
75 background-repeat: no-repeat; 75 background-repeat: no-repeat;
76 height: 14px; 76 height: 14px;
77 position: absolute; 77 position: absolute;
78 right: 7px; 78 right: 7px;
79 top: 7px; 79 top: 7px;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 .overlay .page .content-area::-webkit-scrollbar-thumb { 154 .overlay .page .content-area::-webkit-scrollbar-thumb {
155 background-color: rgba(0, 0, 0, 0.2); 155 background-color: rgba(0, 0, 0, 0.2);
156 border: 2px solid white; 156 border: 2px solid white;
157 border-radius: 8px; 157 border-radius: 8px;
158 } 158 }
159 159
160 .overlay .page .content-area::-webkit-scrollbar-thumb:hover { 160 .overlay .page .content-area::-webkit-scrollbar-thumb:hover {
161 background-color: rgba(0, 0, 0, 0.5); 161 background-color: rgba(0, 0, 0, 0.5);
162 } 162 }
163 </if> 163 </if>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698