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
3 * found in the LICENSE file. */
5 /* The shield that overlays the background. */
7 -webkit-box-align: center
;
8 -webkit-box-orient: vertical
;
9 -webkit-box-pack: center
;
10 /* TODO(dbeam): remove perspective when http://crbug.com/374970 is fixed. */
11 -webkit-perspective: 1px;
12 -webkit-transition: 200ms opacity
;
13 background-color: rgba
(255, 255, 255, 0.75);
24 /* Used to slide in the overlay. */
25 .overlay.transparent .page {
26 /* TODO(flackr): Add perspective(500px) rotateX(5deg) when accelerated
27 * compositing is enabled on chrome:// pages. See http://crbug.com/116800. */
28 -webkit-transform: scale
(0.99) translateY
(-20px);
31 /* The foreground dialog. */
33 -webkit-border-radius: 3px;
34 -webkit-box-orient: vertical
;
35 -webkit-transition: 200ms -webkit-transform
;
37 box-shadow: 0 4px 23px 5px rgba
(0, 0, 0, 0.2), 0 2px 6px rgba
(0,0,0,0.15);
46 /* If the options page is loading don't do the transition. */
48 .loading .overlay .page {
49 -webkit-transition-duration: 0ms !important
;
52 /* keyframes used to pulse the overlay */
53 @-webkit-keyframes pulse
{
55 -webkit-transform: scale
(1);
58 -webkit-transform: scale
(1.02);
61 -webkit-transform: scale
(1.02);
64 -webkit-transform: scale
(1);
68 .overlay .page.pulse {
69 -webkit-animation-duration: 180ms;
70 -webkit-animation-iteration-count: 1;
71 -webkit-animation-name: pulse
;
72 -webkit-animation-timing-function: ease-in-out
;
75 .overlay .page > .close-button {
76 background-image: url
(chrome://theme
/IDR_CLOSE_DIALOG
);
77 background-position: center
;
78 background-repeat: no-repeat
;
87 html
[dir
='rtl'] .overlay
.page
> .close-button
{
92 .overlay .page > .close-button:hover {
93 background-image: url
(chrome://theme
/IDR_CLOSE_DIALOG_H
);
96 .overlay .page > .close-button:active {
97 background-image: url
(chrome://theme
/IDR_CLOSE_DIALOG_P
);
101 -webkit-padding-end: 24px;
102 -webkit-user-select: none
;
104 /* 120% of the body's font-size of 84% is 16px. This will keep the relative
105 * size between the body and these titles consistent. */
107 /* TODO(flackr): Pages like sync-setup and delete user collapse the margin
108 * above the top of the page. Use padding instead to make sure that the
109 * headers of these pages have the correct spacing, but this should not be
110 * necessary. See http://crbug.com/119029. */
112 padding: 14px 17px 14px;
113 text-shadow: white
0 1px 2px;
116 .overlay .page .content-area {
119 padding: 6px 17px 6px;
123 .overlay .page .action-area {
124 -webkit-box-align: center
;
125 -webkit-box-orient: horizontal
;
126 -webkit-box-pack: end
;
127 display: -webkit-box
;
131 html
[dir
='rtl'] .overlay
.page
.action-area
{
135 .overlay .page .action-area-right {
136 display: -webkit-box
;
139 .overlay .page .button-strip {
140 -webkit-box-orient: horizontal
;
141 display: -webkit-box
;
144 .overlay
.page
.button-strip
> :-webkit-any
(button
,
145 input
[type
='button'],
146 input
[type
='submit']) {
147 -webkit-margin-start: 10px;
151 .overlay .page .button-strip > .default-button:not(:focus) {
152 border-color: rgba
(0, 0, 0, 0.5);
155 .overlay .page .spacer-div {
159 /* On OSX 10.7, hidden scrollbars may prevent the user from realizing that the
160 * overlay contains scrollable content. To resolve this, style the scrollbars on
161 * OSX so they are always visible. See http://crbug.com/123010. */
162 <if expr
="is_macosx or is_ios">
163 .overlay .page .content-area::-webkit-scrollbar {
164 -webkit-appearance: none
;
168 .overlay .page .content-area::-webkit-scrollbar-thumb {
169 background-color: rgba
(0, 0, 0, 0.2);
170 border: 2px solid white
;
174 .overlay .page .content-area::-webkit-scrollbar-thumb:hover {
175 background-color: rgba
(0, 0, 0, 0.5);
180 background-color: #f5f5f5;
181 border-bottom-left-radius: inherit
;
182 border-bottom-right-radius: inherit
;
183 border-color: #e7e7e7;
184 border-top-style: solid
;
187 display: -webkit-box
;
191 /* Prevent the page underneath the overlay from scrolling. */
196 #overlay-container-1 {
199 #overlay-container-2 {