Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / options / browser_options.css
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. */
4
5 #change-home-page-section {
6   margin-left: 30px;
7 }
8
9 #home-page-url {
10   display: inline-block;
11   max-width: 400px;
12   overflow: hidden;
13   text-overflow: ellipsis;
14   vertical-align: top;
15 }
16
17 #default-browser-state,
18 #profiles-supervised-dashboard-tip {
19   margin-top: 6px;
20 }
21
22 #sync-overview p {
23   display: inline;
24 }
25
26 #account-picture-wrapper {
27   float: left;
28   margin: 0 2px 10px 0;
29 }
30
31 html[dir=rtl] #account-picture-wrapper {
32   float: right;
33 }
34
35 #account-picture-control {
36   border: 1px solid rgba(0, 0, 0, 0.3);
37   border-radius: 4px;
38   display: inline-block;
39   padding: 3px;
40   position: relative;
41 }
42
43 #account-picture {
44   height: 56px;
45   vertical-align: middle;
46   width: 56px;
47 }
48
49 #account-picture:disabled {
50   cursor: default;
51 }
52
53 #change-picture-caption {
54   background: rgba(0, 0, 0, 0.5);
55   bottom: 0;
56   color: white;
57   cursor: pointer;
58   font-size: small;
59   margin: 3px 0;
60   position: absolute;
61   text-align: center;
62   visibility: hidden;
63   /* Width of #account-picture. */
64   width: 56px;
65 }
66
67 #account-picture:not(:disabled):hover + #change-picture-caption,
68 #account-picture:not(:disabled) + #change-picture-caption:hover {
69   visibility: visible;
70 }
71
72 #account-picture-indicator {
73   -webkit-margin-end: 3px;
74 }
75
76 #sync-general {
77   -webkit-margin-start: 76px;
78   margin-bottom: 10px;
79 }
80
81 #sync-buttons {
82   clear: both;
83 }
84
85 #profiles-list {
86   margin-bottom: 10px;
87   min-height: 0;
88 }
89
90 #profiles-list .profile-name {
91   -webkit-box-flex: 1;
92   overflow: hidden;
93   text-overflow: ellipsis;
94   white-space: nowrap;
95 }
96
97 #profiles-list > * {
98   height: 40px;
99 }
100
101 #profiles-list:focus {
102   border-color: rgb(77, 144, 254);
103 }
104
105 .profile-img {
106   height: 31px;
107   padding: 3px;
108   vertical-align: middle;
109   width: 38px;
110 }
111
112 .profile-item-current {
113   font-weight: bold;
114 }
115
116 #profiles-buttons {
117   white-space: nowrap;
118 }
119
120 .sync-error {
121   background: rgb(255, 219, 219);
122   border: 1px solid rgb(206, 76, 76);
123   border-radius: 2px;
124   padding: 10px;
125 }
126
127 .sync-error .link-button {
128   margin: 0 1ex;
129   padding: 0;
130 }
131
132 #mac-passwords-warning {
133   margin-top: 10px;
134 }
135
136 input[type='range'] {
137   vertical-align: middle;
138 }
139
140 /* CSS tweak to fix crbug.com/151788. Inconsistencies in the CSS rules across
141  * platforms and elements. Too risky to attempt a general fix for M23 at this
142  * time. This fix addresses the immediate problem in the bug report by forcing
143  * the button to align consistently with its neighboring select element.
144  * TODO(kevers): Revisit padding rules for select and buttons to ensure
145  * consistency in the size and baseline across all platforms. */
146 #manage-default-search-engines {
147   padding-bottom: 0;
148   padding-top: 0;
149 }
150
151 .extension-controlled-warning-box {
152   background-color: #fbfbfb;
153   border: 1px solid #cecece;
154   border-radius: 3px;
155   padding: 19px;
156 }
157
158 .extension-controlled-warning {
159   -webkit-padding-start: 35px;
160   background-repeat: no-repeat;
161   margin-bottom: 14px;
162   padding-bottom: 6px;
163   padding-top: 3px;
164 }
165
166 /* Override a platform specific rule in Widgets that may no longer be relevant.
167  * Too late in the development cycle to update Widgets.css due to the number
168  * of pages that depend on it.
169  * TODO(kevers): Rivisit padding rules. */
170 #default-search-engine {
171   padding-bottom: 0;
172 }
173
174 .hotword-settings {
175   -webkit-margin-start: 22px;
176 }
177
178 /* Internet settings */
179
180 #network-settings {
181   position: relative;
182 }
183
184 #network-list {
185   min-height: 0;
186   width: 320px;
187 }
188
189 #download-location-label.disabled {
190   color: #999;
191 }
192
193 .network-group {
194   -webkit-box-orient: horizontal;
195   height: 42px;
196   overflow: visible;
197 }
198
199 list:not([disabled]) > .network-group:hover,
200 list:not([disabled]) > .network-group[selected] {
201   background-color: #f8f8f8 !important;
202   background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.8),
203                                             rgba(255, 255, 255, 0)) !important;
204   box-shadow: inset 0 0 1px 1px #f0f0f0;
205 }
206
207 .network-group-labels {
208   -webkit-box-flex: 1;
209   -webkit-box-orient: vertical;
210   display: -webkit-box;
211   padding-top: 3px;
212 }
213
214 .network-icon,
215 .network-menu-item-icon {
216   -webkit-margin-end: 8px;
217   background-position: left top;
218   background-size: 25px;
219   height: 25px;
220   width: 25px;
221 }
222
223 .other-cellulars > .network-menu-item-icon {
224   background-position: left top;
225 }
226
227 @-webkit-keyframes connecting-animation {
228   0% {
229     background-position: 0 25%;
230   }
231   12.5% {
232     background-position: 0 50%;
233   }
234   25%  {
235     background-position: 0 75%;
236   }
237   37.5%  {
238     background-position: 0 100%;
239   }
240   50%  {
241     background-position: 0 100%;
242   }
243   62.5%  {
244     background-position: 0 75%;
245   }
246   75%  {
247     background-position: 0 50%;
248   }
249   87.5%  {
250     background-position: 0 25%;
251   }
252 }
253
254 .network-add-connection,
255 .network-control-active,
256 .network-control-inactive {
257   background-position: center center !important;
258   background-repeat: no-repeat;
259 }
260
261 .network-add-connection {
262   background-image: url('chrome://theme/IDR_NETWORK_ADD_CONNECTION');
263   background-size: 16px;
264 }
265
266 .network-control-inactive {
267   background-image: none;
268 }
269
270 .network-control-active {
271   background-image: url('chrome://theme/IDR_PROFILE_SELECTED');
272   background-size: 16px;
273 }
274
275 .network-options-button {
276   -webkit-box-flex: 0;
277   -webkit-transform: scale(0.6);
278   background-image: none;
279   background-position: center center;
280   display: block;
281   opacity: 0.5;
282   vertical-align: middle;
283   width: 19px;
284 }
285
286 .network-group > .controlled-setting-indicator,
287 .network-menu-item > .controlled-setting-indicator {
288   -webkit-margin-end: 5px;
289 }
290
291 .network-options-button:hover {
292   opacity: 1;
293 }
294
295 @-webkit-keyframes vpn-connecting-animation {
296   from {
297     opacity: 1;
298   }
299   to {
300     opacity: 0.2;
301   }
302 }
303
304 .network-connecting {
305   -webkit-animation: connecting-animation 1s step-end infinite;
306 }
307
308 .network-vpn.network-connecting {
309   -webkit-animation: vpn-connecting-animation 500ms alternate infinite;
310 }
311
312 .network-title {
313   font-weight: 600;
314   line-height: 120%;
315 }
316
317 .network-subtitle {
318   color: #333;
319   display: inline-block;
320   line-height: 100%;
321   max-width: 260px;
322   opacity: 0.4;
323   overflow: hidden;
324   padding-bottom: 3px;
325   text-overflow: ellipsis;
326   white-space: nowrap;
327 }
328
329 .network-selector {
330   background: right center no-repeat;
331   background-image: url('../../../../ui/webui/resources/images/select.png');
332   padding-right: 20px;
333 }
334
335 .network-menu {
336   -webkit-box-shadow:
337       0 0 0 1px rgba(0,0,0,0.1),
338       0 5px 1px 1px rgba(0,0,0,0.1),
339       0 5px 2px 1px rgba(0,0,0,0.1),
340       0 5px 12px 1px rgba(0,0,0,0.5);
341   background: #fff;
342   display: block;
343   position: absolute;
344   width: 320px;
345   z-index: 1;
346 }
347
348 .network-menu-item {
349   -webkit-box-align: center;
350   -webkit-box-orient: horizontal;
351   display: -webkit-box;
352   height: 32px;
353   margin-left: 4px;
354   margin-right: 4px;
355 }
356
357 .network-menu-item-label {
358   -webkit-box-flex: 1;
359   color: #555;
360   display: block;
361   overflow-x: hidden;
362   text-overflow: ellipsis;
363   white-space: nowrap;
364 }
365
366 .active-network {
367    color: black;
368    font-weight: bold;
369 }
370
371 .network-disabled-control {
372   color: #999;
373 }
374
375 /* Restrict the size of the networks menu, by limiting the number of
376    visible networks. */
377 .network-menu-group {
378     max-height: 192px;
379     overflow-x: hidden;
380     overflow-y: auto;
381     text-overflow: ellipsis;
382 }
383
384 .network-menu-item:hover {
385   background-color: #eee;
386 }
387
388 .network-menu > hr {
389   opacity: 0.4;
390 }
391
392 #shared-proxies {
393   margin-top: 12px;
394 }
395
396 #web-content-section select,
397 .web-content-select-label {
398   min-width: 145px;
399 }
400
401 .web-content-select-label > span:only-of-type {
402   display: inline-block;
403   min-width: 100px;
404 }
405
406 #timezone-value {
407   display: inline-block;
408   vertical-align: baseline;
409 }
410
411 #privacy-explanation {
412   line-height: 1.8em;
413 }
414
415 #advanced-settings {
416   height: 0;
417   margin-top: 8px;
418   overflow: hidden;
419 }
420
421 #auto-open-file-types-label {
422   padding: 0.45em 0
423 }
424
425 .sliding {
426   -webkit-transition: height 200ms;
427   overflow-y: hidden;
428 }
429
430 #keyboard-overlay .option-value > select {
431   width: 100%;
432 }
433
434 #keyboard-overlay table {
435   /* Same as .settings-row {margin}. */
436   -webkit-border-vertical-spacing: 0.65em;
437 }
438
439 #accessibility-autoclick .controlled-setting-with-label {
440   -webkit-box-align: baseline;
441 }
442
443 #accessibility-autoclick label + select {
444   /* Same as .controlled-setting-with-label > input + span. */
445   -webkit-margin-start: 0.6em;
446 }