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

Side by Side Diff: chrome/browser/resources/shared/css/overlay.css

Issue 9625006: Implement new overlay style for options pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 years, 9 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 | Annotate | Revision Log
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; 10 -webkit-transition: 200ms opacity;
11 background-color: rgba(255, 255, 255, 0.75); 11 background-color: rgba(255, 255, 255, 0.75);
12 bottom: 0; 12 bottom: 0;
13 display: -webkit-box; 13 display: -webkit-box;
14 left: 0; 14 left: 0;
15 overflow: auto; 15 overflow: auto;
16 padding: 20px; 16 padding: 20px;
17 padding-bottom: 130px; 17 padding-bottom: 130px;
18 position: fixed; 18 position: fixed;
19 right: 0; 19 right: 0;
20 top: 0; 20 top: 0;
21 } 21 }
22 22
23 /* The foreground dialog. */ 23 /* The foreground dialog. */
24 .overlay .page { 24 .overlay .page {
25 -webkit-border-radius: 3px;
25 -webkit-box-orient: vertical; 26 -webkit-box-orient: vertical;
26 background: white; 27 background: white;
27 box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3), 0 3px 57px rgba(0, 0, 0, 0.3); 28 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0,0,0,0.15);
29 color: #333;
28 display: -webkit-box; 30 display: -webkit-box;
29 height: 90%; 31 height: 90%;
30 max-height: 640px; 32 max-height: 640px;
31 min-width: 400px; 33 min-width: 400px;
32 padding: 0; 34 padding: 0;
33 position: relative; 35 position: relative;
34 } 36 }
35 37
36 /* keyframes used to shake the overlay */ 38 /* keyframes used to pulse the overlay */
37 @-webkit-keyframes shake { 39 @-webkit-keyframes pulse {
38 0% { 40 0% {
39 -webkit-transform: translateX(-5px) rotateZ(-0.5deg) translateY(-2px); 41 -webkit-transform: scale(1);
42 }
43 40% {
44 -webkit-transform: scale(1.02);
40 } 45 }
41 50% { 46 60% {
42 -webkit-transform: translateX(0px) rotateZ(0deg) translateY(0px); 47 -webkit-transform: scale(1.02);
43 } 48 }
44 100% { 49 100% {
45 -webkit-transform: translateX(5px) rotateZ(0.5deg) translateY(-2px); 50 -webkit-transform: scale(1);
46 } 51 }
47 } 52 }
48 53
49 .overlay .page.shake { 54 .overlay .page.pulse {
50 -webkit-animation-direction: alternate; 55 -webkit-animation-duration: 180ms;
51 -webkit-animation-duration: 60ms; 56 -webkit-animation-iteration-count: 1;
52 -webkit-animation-iteration-count: 7; 57 -webkit-animation-name: pulse;
53 -webkit-animation-name: shake;
54 -webkit-animation-timing-function: ease-in-out; 58 -webkit-animation-timing-function: ease-in-out;
55 } 59 }
56 60
61 .overlay .page .close-button {
62 background-image: url('chrome://resources/images/x.png');
63 background-position: center;
64 background-repeat: no-repeat;
65 height: 44px;
66 position: absolute;
67 right: 0;
68 top: 0;
69 width: 44px;
70 }
71
72 html[dir='rtl'] .overlay .page .close-button {
73 left: 0;
74 right: auto;
75 }
76
77 .overlay .page .close-button:hover {
78 background-image: url('chrome://resources/images/x-hover.png');
79 }
80
57 .overlay .page h1 { 81 .overlay .page h1 {
58 -webkit-padding-end: 24px; 82 -webkit-padding-end: 24px;
59 -webkit-user-select: none; 83 -webkit-user-select: none;
60 background: -webkit-linear-gradient(white, #F8F8F8);
61 border-bottom: 1px solid rgba(188, 193, 208, .5);
62 color: #333; 84 color: #333;
63 font-size: 1.1em; 85 /* 120% of the body's font-size of 84% is 16px. This will keep the relative
64 font-weight: bold; 86 * size between the body and these titles consistent. */
87 font-size: 120%;
65 margin: 0; 88 margin: 0;
66 padding: 10px 15px 8px; 89 padding: 14px 17px 0;
67 text-shadow: white 0 1px 2px; 90 text-shadow: white 0 1px 2px;
68 } 91 }
69 92
70 .overlay .page .content-area { 93 .overlay .page .content-area {
71 -webkit-box-flex: 1; 94 -webkit-box-flex: 1;
72 overflow: auto; 95 overflow: auto;
73 padding: 10px 15px 5px; 96 padding: 14px 17px 6px;
74 } 97 }
75 98
76 .overlay .page .action-area { 99 .overlay .page .action-area {
77 -webkit-box-align: center; 100 -webkit-box-align: center;
78 -webkit-box-orient: horizontal; 101 -webkit-box-orient: horizontal;
79 -webkit-box-pack: end; 102 -webkit-box-pack: end;
80 border-top: 1px solid rgba(188, 193, 208, .5);
81 display: -webkit-box; 103 display: -webkit-box;
82 padding: 12px; 104 padding: 14px;
83 } 105 }
84 106
85 html[dir='rtl'] .overlay .page .action-area { 107 html[dir='rtl'] .overlay .page .action-area {
86 left: 0; 108 left: 0;
87 } 109 }
88 110
89 .overlay .page .action-area-right { 111 .overlay .page .action-area-right {
90 display: -webkit-box; 112 display: -webkit-box;
91 } 113 }
92 114
93 .overlay .page .button-strip { 115 .overlay .page .button-strip {
94 -webkit-box-orient: horizontal; 116 -webkit-box-orient: horizontal;
95 display: -webkit-box; 117 display: -webkit-box;
96 } 118 }
97 119
98 .overlay .page .button-strip > button { 120 .overlay .page .button-strip > button {
99 -webkit-margin-start: 10px; 121 -webkit-margin-start: 10px;
100 display: block; 122 display: block;
101 } 123 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/startup_overlay.html ('k') | chrome/browser/resources/shared/js/cr/ui/overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698