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

Side by Side Diff: ui/webui/resources/css/dialog_overlay.css

Issue 23665004: sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 dialog {
6 .overlay { 6 /* TODO(falken): <dialog> should have this in the UA stylesheet. */
7 -webkit-box-align: center; 7 width: -webkit-fit-content;
8 -webkit-box-orient: vertical;
9 -webkit-box-pack: center;
10 -webkit-transition: 200ms opacity;
11 background-color: rgba(255, 255, 255, 0.75);
12 bottom: 0;
13 display: -webkit-box;
14 left: 0;
15 overflow: auto;
16 padding: 20px;
17 position: fixed;
18 right: 0;
19 top: 0;
20 } 8 }
21 9
22 /* Used to slide in the overlay. */ 10 .overlay-container .page {
23 .overlay.transparent .page {
24 /* TODO(flackr): Add perspective(500px) rotateX(5deg) when accelerated
25 * compositing is enabled on chrome:// pages. See http://crbug.com/116800. */
26 -webkit-transform: scale(0.99) translateY(-20px);
27 }
28
29 /* The foreground dialog. */
30 .overlay .page {
31 -webkit-border-radius: 3px; 11 -webkit-border-radius: 3px;
32 -webkit-box-orient: vertical; 12 -webkit-box-orient: vertical;
33 -webkit-transition: 200ms -webkit-transform;
34 background: white; 13 background: white;
14 border: 0;
35 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0,0,0,0.15); 15 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0,0,0,0.15);
36 color: #333; 16 color: #333;
37 display: -webkit-box;
38 min-width: 400px; 17 min-width: 400px;
39 padding: 0; 18 padding: 0;
40 position: relative; 19 position: relative;
41 z-index: 0; 20 z-index: 0;
42 } 21 }
43 22
44 /* If the options page is loading don't do the transition. */ 23 .overlay-container .page[open] {
45 .loading .overlay, 24 display: -webkit-box;
46 .loading .overlay .page { 25 }
47 -webkit-transition-duration: 0 !important; 26
27 .overlay-container .page::backdrop {
28 background-color: rgba(255, 255, 255, 0.75);
29 bottom: 0;
30 left: 0;
31 position: fixed;
32 right: 0;
33 top: 0;
34 }
35
36 .overlay-container .page.opening {
37 -webkit-animation: dialog-in 200ms;
38 }
39
40 .overlay-container .page.opening::backdrop {
41 -webkit-animation: backdrop-in 200ms;
42 }
43
44 /* Used to slide in the dialog. */
45 @-webkit-keyframes dialog-in {
46 /* TODO(flackr): Add perspective(500px) rotateX(5deg) when accelerated
47 * compositing is enabled on chrome:// pages. See http://crbug.com/116800. */
48 0% {
49 -webkit-transform: scale(0.99) translateY(-20px);
50 opacity: 0;
51 }
52 }
53
54 @-webkit-keyframes backdrop-in {
55 0% {
56 opacity: 0;
57 }
58 }
59
60 .overlay-container .page.closing {
61 -webkit-animation: dialog-out 200ms;
62 -webkit-transform: scale(0.99) translateY(-20px);
63 opacity: 0;
64 }
65
66 .overlay-container .page.closing::backdrop {
67 -webkit-animation: backdrop-out 200ms;
68 opacity: 0;
69 }
70
71 @-webkit-keyframes dialog-out {
72 0% {
73 opacity: 1;
74 }
75 }
76
77 @-webkit-keyframes backdrop-out {
78 0% {
79 opacity: 1;
80 }
48 } 81 }
49 82
50 /* keyframes used to pulse the overlay */ 83 /* keyframes used to pulse the overlay */
51 @-webkit-keyframes pulse { 84 @-webkit-keyframes pulse {
52 0% { 85 0% {
53 -webkit-transform: scale(1); 86 -webkit-transform: scale(1);
54 } 87 }
55 40% { 88 40% {
56 -webkit-transform: scale(1.02); 89 -webkit-transform: scale(1.02);
57 } 90 }
58 60% { 91 60% {
59 -webkit-transform: scale(1.02); 92 -webkit-transform: scale(1.02);
60 } 93 }
61 100% { 94 100% {
62 -webkit-transform: scale(1); 95 -webkit-transform: scale(1);
63 } 96 }
64 } 97 }
65 98
66 .overlay .page.pulse { 99 .overlay-container .page.pulse {
67 -webkit-animation-duration: 180ms; 100 -webkit-animation-duration: 180ms;
68 -webkit-animation-iteration-count: 1; 101 -webkit-animation-iteration-count: 1;
69 -webkit-animation-name: pulse; 102 -webkit-animation-name: pulse;
70 -webkit-animation-timing-function: ease-in-out; 103 -webkit-animation-timing-function: ease-in-out;
71 } 104 }
72 105
73 .overlay .page > .close-button { 106 .overlay-container .page > .close-button {
74 background-image: url('chrome://theme/IDR_CLOSE_DIALOG'); 107 background-image: url('chrome://theme/IDR_CLOSE_DIALOG');
75 background-position: center; 108 background-position: center;
76 background-repeat: no-repeat; 109 background-repeat: no-repeat;
77 height: 14px; 110 height: 14px;
78 position: absolute; 111 position: absolute;
79 right: 7px; 112 right: 7px;
80 top: 7px; 113 top: 7px;
81 width: 14px; 114 width: 14px;
82 z-index: 1; 115 z-index: 1;
83 } 116 }
84 117
85 html[dir='rtl'] .overlay .page > .close-button { 118 html[dir='rtl'] .overlay-container .page > .close-button {
86 left: 10px; 119 left: 10px;
87 right: auto; 120 right: auto;
88 } 121 }
89 122
90 .overlay .page > .close-button:hover { 123 .overlay-container .page > .close-button:hover {
91 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_H'); 124 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_H');
92 } 125 }
93 126
94 .overlay .page > .close-button:active { 127 .overlay-container .page > .close-button:active {
95 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_P'); 128 background-image: url('chrome://theme/IDR_CLOSE_DIALOG_P');
96 } 129 }
97 130
98 .overlay .page h1 { 131 .overlay-container .page h1 {
99 -webkit-padding-end: 24px; 132 -webkit-padding-end: 24px;
100 -webkit-user-select: none; 133 -webkit-user-select: none;
101 color: #333; 134 color: #333;
102 /* 120% of the body's font-size of 84% is 16px. This will keep the relative 135 /* 120% of the body's font-size of 84% is 16px. This will keep the relative
103 * size between the body and these titles consistent. */ 136 * size between the body and these titles consistent. */
104 font-size: 120%; 137 font-size: 120%;
105 /* TODO(flackr): Pages like sync-setup and delete user collapse the margin 138 /* TODO(flackr): Pages like sync-setup and delete user collapse the margin
106 * above the top of the page. Use padding instead to make sure that the 139 * above the top of the page. Use padding instead to make sure that the
107 * headers of these pages have the correct spacing, but this should not be 140 * headers of these pages have the correct spacing, but this should not be
108 * necessary. See http://crbug.com/119029. */ 141 * necessary. See http://crbug.com/119029. */
109 margin: 0; 142 margin: 0;
110 padding: 14px 17px 14px; 143 padding: 14px 17px 14px;
111 text-shadow: white 0 1px 2px; 144 text-shadow: white 0 1px 2px;
112 } 145 }
113 146
114 .overlay .page .content-area { 147 .overlay-container .page .content-area {
115 -webkit-box-flex: 1; 148 -webkit-box-flex: 1;
116 overflow: auto; 149 overflow: auto;
117 padding: 6px 17px 6px; 150 padding: 6px 17px 6px;
118 position: relative; 151 position: relative;
119 } 152 }
120 153
121 .overlay .page .action-area { 154 .overlay-container .page .action-area {
122 -webkit-box-align: center; 155 -webkit-box-align: center;
123 -webkit-box-orient: horizontal; 156 -webkit-box-orient: horizontal;
124 -webkit-box-pack: end; 157 -webkit-box-pack: end;
125 display: -webkit-box; 158 display: -webkit-box;
126 padding: 14px 17px; 159 padding: 14px 17px;
127 } 160 }
128 161
129 html[dir='rtl'] .overlay .page .action-area { 162 html[dir='rtl'] .overlay-container .page .action-area {
130 left: 0; 163 left: 0;
131 } 164 }
132 165
133 .overlay .page .action-area-right { 166 .overlay-container .page .action-area-right {
134 display: -webkit-box; 167 display: -webkit-box;
135 } 168 }
136 169
137 .overlay .page .button-strip { 170 .overlay-container .page .button-strip {
138 -webkit-box-orient: horizontal; 171 -webkit-box-orient: horizontal;
139 display: -webkit-box; 172 display: -webkit-box;
140 } 173 }
141 174
142 .overlay .page .button-strip > button { 175 .overlay-container .page .button-strip > button {
143 -webkit-margin-start: 10px; 176 -webkit-margin-start: 10px;
144 display: block; 177 display: block;
145 } 178 }
146 179
147 .overlay .page .button-strip > .default-button:not(:focus) { 180 .overlay-container .page .button-strip > .default-button:not(:focus) {
148 border-color: rgba(0, 0, 0, 0.5); 181 border-color: rgba(0, 0, 0, 0.5);
149 } 182 }
150 183
151 /* On OSX 10.7, hidden scrollbars may prevent the user from realizing that the 184 /* On OSX 10.7, hidden scrollbars may prevent the user from realizing that the
152 * overlay contains scrollable content. To resolve this, style the scrollbars on 185 *.overlay-container contains scrollable content. To resolve this, style the
153 * OSX so they are always visible. See http://crbug.com/123010. */ 186 * scrollbars on OSX so they are always visible. See http://crbug.com/123010. */
154 <if expr="is_macosx or is_ios"> 187 <if expr="is_macosx or is_ios">
155 .overlay .page .content-area::-webkit-scrollbar { 188 .overlay-container .page .content-area::-webkit-scrollbar {
156 -webkit-appearance: none; 189 -webkit-appearance: none;
157 width: 11px; 190 width: 11px;
158 } 191 }
159 192
160 .overlay .page .content-area::-webkit-scrollbar-thumb { 193 .overlay-container .page .content-area::-webkit-scrollbar-thumb {
161 background-color: rgba(0, 0, 0, 0.2); 194 background-color: rgba(0, 0, 0, 0.2);
162 border: 2px solid white; 195 border: 2px solid white;
163 border-radius: 8px; 196 border-radius: 8px;
164 } 197 }
165 198
166 .overlay .page .content-area::-webkit-scrollbar-thumb:hover { 199 .overlay-container .page .content-area::-webkit-scrollbar-thumb:hover {
167 background-color: rgba(0, 0, 0, 0.5); 200 background-color: rgba(0, 0, 0, 0.5);
168 } 201 }
169 </if> 202 </if>
170 203
171 .gray-bottom-bar { 204 .gray-bottom-bar {
172 background-color: #f5f5f5; 205 background-color: #f5f5f5;
173 border-color: #e7e7e7; 206 border-color: #e7e7e7;
174 border-top-style: solid; 207 border-top-style: solid;
175 border-width: 1px; 208 border-width: 1px;
176 color: #888; 209 color: #888;
177 display: -webkit-box; 210 display: -webkit-box;
178 padding: 14px 17px; 211 padding: 14px 17px;
179 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | ui/webui/resources/js/cr/ui/dialog_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698