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 -webkit-transition: 200ms opacity
;
11 background-color: rgba
(255, 255, 255, 0.75);
22 /* Used to slide in the overlay. */
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);
29 /* The foreground dialog. */
31 -webkit-border-radius: 3px;
32 -webkit-box-orient: vertical
;
33 -webkit-transition: 200ms -webkit-transform
;
35 box-shadow: 0 4px 23px 5px rgba
(0, 0, 0, 0.2), 0 2px 6px rgba
(0,0,0,0.15);
44 /* If the options page is loading don't do the transition. */
46 .loading .overlay .page {
47 -webkit-transition-duration: 0 !important
;
50 /* keyframes used to pulse the overlay */
51 @-webkit-keyframes pulse
{
53 -webkit-transform: scale
(1);
56 -webkit-transform: scale
(1.02);
59 -webkit-transform: scale
(1.02);
62 -webkit-transform: scale
(1);
66 .overlay .page.pulse {
67 -webkit-animation-duration: 180ms;
68 -webkit-animation-iteration-count: 1;
69 -webkit-animation-name: pulse
;
70 -webkit-animation-timing-function: ease-in-out
;
73 .overlay .page > .close-button {
74 background-image: url
('chrome://theme/IDR_CLOSE_DIALOG');
75 background-position: center
;
76 background-repeat: no-repeat
;
85 html
[dir
='rtl'] .overlay
.page
> .close-button
{
90 .overlay .page > .close-button:hover {
91 background-image: url
('chrome://theme/IDR_CLOSE_DIALOG_H');
94 .overlay .page > .close-button:active {
95 background-image: url
('chrome://theme/IDR_CLOSE_DIALOG_P');
99 -webkit-padding-end: 24px;
100 -webkit-user-select: none
;
102 /* 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. */
105 /* 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
107 * headers of these pages have the correct spacing, but this should not be
108 * necessary. See http://crbug.com/119029. */
110 padding: 14px 17px 14px;
111 text-shadow: white
0 1px 2px;
114 .overlay .page .content-area {
117 padding: 6px 17px 6px;
121 .overlay .page .action-area {
122 -webkit-box-align: center
;
123 -webkit-box-orient: horizontal
;
124 -webkit-box-pack: end
;
125 display: -webkit-box
;
129 html
[dir
='rtl'] .overlay
.page
.action-area
{
133 .overlay .page .action-area-right {
134 display: -webkit-box
;
137 .overlay .page .button-strip {
138 -webkit-box-orient: horizontal
;
139 display: -webkit-box
;
142 .overlay .page .button-strip > button {
143 -webkit-margin-start: 10px;
147 .overlay .page .button-strip > .default-button:not(:focus) {
148 border-color: rgba
(0, 0, 0, 0.5);
151 /* 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
153 * OSX so they are always visible. See http://crbug.com/123010. */
154 <if expr
="is_macosx or is_ios">
155 .overlay .page .content-area::-webkit-scrollbar {
156 -webkit-appearance: none
;
160 .overlay .page .content-area::-webkit-scrollbar-thumb {
161 background-color: rgba
(0, 0, 0, 0.2);
162 border: 2px solid white
;
166 .overlay .page .content-area::-webkit-scrollbar-thumb:hover {
167 background-color: rgba
(0, 0, 0, 0.5);
172 background-color: #f5f5f5;
173 border-color: #e7e7e7;
174 border-top-style: solid
;
177 display: -webkit-box
;