OLD | NEW |
---|---|
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 body.uber-frame { | 5 body.uber-frame { |
6 -webkit-margin-start: 155px; | 6 -webkit-margin-start: 155px; |
7 } | 7 } |
8 | 8 |
9 html[dir="rtl"] body.uber-frame { | 9 html[dir="rtl"] body.uber-frame { |
10 /* Enable vertical scrollbar at all times in RTL to avoid visual glitches when | 10 /* Enable vertical scrollbar at all times in RTL to avoid visual glitches when |
11 * showing sub-pages that vertically overflow. */ | 11 * showing sub-pages that vertically overflow. */ |
12 overflow-y: scroll; | 12 overflow-y: scroll; |
13 } | 13 } |
14 | 14 |
15 /* TODO(dbeam): Remove .page class from overlays in settings so the junk below | 15 /* TODO(dbeam): Remove .page class from overlays in settings so the junk below |
16 * isn't necessary. */ | 16 * isn't necessary. */ |
17 body.uber-frame #extension-settings.page, | 17 body.uber-frame #extension-settings.page, |
18 body.uber-frame #mainview-content .page, | 18 body.uber-frame #mainview-content .page, |
19 body.uber-frame .subpage-sheet-container .page, | 19 body.uber-frame .subpage-sheet-container .page, |
20 body.uber-frame > .page { | 20 body.uber-frame > .page { |
21 -webkit-margin-end: 24px; | |
22 min-width: 576px; | |
21 padding-top: 55px; | 23 padding-top: 55px; |
22 } | 24 } |
23 | 25 |
24 body.uber-frame header { | 26 body.uber-frame header { |
25 background: white; | 27 background: white; |
26 left: 155px; | 28 left: 155px; |
27 min-width: 700px; | 29 min-width: 600px; |
28 /* <section>s in options currently amount to 638px total, broken up into | 30 /* <section>s in options currently amount to 638px total, broken up into |
29 * 600px max-width + 18px -webkit-padding-start + 20px -webkit-margin-end | 31 * 600px max-width + 18px -webkit-padding-start + 20px -webkit-margin-end |
30 * so we mirror this value here so the headers match width and horizontal | 32 * so we mirror this value here so the headers match width and horizontal |
31 * alignment when scrolling sideways. */ | 33 * alignment when scrolling sideways. */ |
32 max-width: 738px; | 34 max-width: 738px; |
33 position: fixed; | 35 position: fixed; |
34 right: 155px; | 36 right: 0; |
35 top: 0; | 37 top: 0; |
36 z-index: 2; | 38 z-index: 2; |
37 } | 39 } |
38 | 40 |
41 html[dir='rtl'] body.uber-frame header { | |
42 left: 0; | |
43 right: 155px; | |
44 } | |
45 | |
46 body.uber-frame header > .search-field-container, | |
47 body.uber-frame header > .header-extras, | |
48 body.uber-frame header > button { | |
49 position: absolute; | |
50 right: 20px; | |
51 top: 21px; | |
52 } | |
53 | |
54 body.uber-frame html[dir='rtl'] header > .search-field-container, | |
55 body.uber-frame html[dir='rtl'] header > .header-extras, | |
56 body.uber-frame html[dir='rtl'] header > button { | |
57 left: 20px; | |
58 right: auto; | |
59 } | |
60 | |
61 body.uber-frame header input, | |
62 body.uber-frame header button { | |
63 margin: 0; | |
64 } | |
65 | |
39 body.uber-frame header > h1 { | 66 body.uber-frame header > h1 { |
40 border-bottom: 1px solid #eee; | |
41 margin: 0; | 67 margin: 0; |
42 padding: 21px 0 13px; | 68 padding: 21px 0 13px; |
43 } | 69 } |
44 | 70 |
71 /* Create a border under the h1 (but before anything that gets appended | |
72 * to the end of the header, such as the managed prefs banner). */ | |
73 body.uber-frame header > h1::after { | |
Dan Beam
2012/03/05 22:56:36
didn't know :: meant "pseudo-element", that's cool
| |
74 -webkit-margin-end: 20px; | |
75 content: ' '; | |
76 display: block; | |
77 height: 1px; | |
78 background-color: #eee; | |
79 position: relative; | |
80 top: 13px; | |
81 } | |
82 | |
45 body.uber-frame footer { | 83 body.uber-frame footer { |
46 border-top: 1px solid #eee; | 84 border-top: 1px solid #eee; |
47 margin-top: 16px; | 85 margin-top: 16px; |
48 /* min-width and max-width should match the header */ | 86 /* min-width and max-width should match the header */ |
49 min-width: 600px; | 87 min-width: 600px; |
50 max-width: 638px; | 88 max-width: 638px; |
51 padding: 8px 0; | 89 padding: 8px 0; |
52 } | 90 } |
OLD | NEW |