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 { |
6 -webkit-margin-start: 155px; | 6 -webkit-margin-start: 23px; |
7 color: rgb(48, 57, 66); | 7 color: rgb(48, 57, 66); |
8 } | 8 } |
9 | 9 |
| 10 body.uber-frame { |
| 11 -webkit-margin-start: 155px; |
| 12 } |
| 13 |
10 html[dir='rtl'] body.uber-frame { | 14 html[dir='rtl'] body.uber-frame { |
11 /* Enable vertical scrollbar at all times in RTL to avoid visual glitches when | 15 /* Enable vertical scrollbar at all times in RTL to avoid visual glitches when |
12 * showing sub-pages that vertically overflow. */ | 16 * showing sub-pages that vertically overflow. */ |
13 overflow-y: scroll; | 17 overflow-y: scroll; |
14 } | 18 } |
15 | 19 |
16 /* TODO(dbeam): Remove .page class from overlays in settings so the junk below | 20 /* TODO(dbeam): Remove .page class from overlays in settings so the junk below |
17 * isn't necessary. */ | 21 * isn't necessary. */ |
18 body.uber-frame #extension-settings.page, | 22 body #extension-settings.page, |
19 body.uber-frame #mainview-content .page, | 23 body #mainview-content .page, |
20 body.uber-frame .subpage-sheet-container .page, | 24 body .subpage-sheet-container .page, |
21 body.uber-frame > .page { | 25 body > .page { |
22 -webkit-margin-end: 24px; | 26 -webkit-margin-end: 24px; |
23 min-width: 576px; | 27 min-width: 576px; |
24 padding-bottom: 20px; | 28 padding-bottom: 20px; |
25 padding-top: 55px; | 29 padding-top: 55px; |
26 } | 30 } |
27 | 31 |
28 body.uber-frame header { | 32 body header { |
29 background-image: -webkit-linear-gradient(white, | 33 background-image: -webkit-linear-gradient(white, |
30 white 40%, | 34 white 40%, |
31 rgba(255, 255, 255, 0.92)); | 35 rgba(255, 255, 255, 0.92)); |
32 left: 155px; | 36 left: 23px; |
33 /* <section>s in options currently amount to 638px total, broken up into | 37 /* <section>s in options currently amount to 638px total, broken up into |
34 * 600px max-width + 18px -webkit-padding-start + 20px -webkit-margin-end | 38 * 600px max-width + 18px -webkit-padding-start + 20px -webkit-margin-end |
35 * so we mirror this value here so the headers match width and horizontal | 39 * so we mirror this value here so the headers match width and horizontal |
36 * alignment when scrolling sideways. | 40 * alignment when scrolling sideways. |
37 * other-devices.css' .device width depends on this, please keep in sync. | 41 * other-devices.css' .device width depends on this, please keep in sync. |
38 */ | 42 */ |
39 max-width: 738px; | 43 max-width: 738px; |
40 min-width: 600px; | 44 min-width: 600px; |
41 position: fixed; | 45 position: fixed; |
42 right: 0; | 46 right: 0; |
43 top: 0; | 47 top: 0; |
44 /* list.css sets a z-index of up to 2, this is set to 3 to ensure that the | 48 /* list.css sets a z-index of up to 2, this is set to 3 to ensure that the |
45 * header is in front of the selected list item. */ | 49 * header is in front of the selected list item. */ |
46 z-index: 3; | 50 z-index: 3; |
47 } | 51 } |
48 | 52 |
| 53 body.uber-frame header { |
| 54 left: 155px; |
| 55 } |
| 56 |
| 57 html[dir='rtl'] body header { |
| 58 left: 0; |
| 59 right: 23px; |
| 60 } |
| 61 |
49 html[dir='rtl'] body.uber-frame header { | 62 html[dir='rtl'] body.uber-frame header { |
50 left: 0; | |
51 right: 155px; | 63 right: 155px; |
52 } | 64 } |
53 | 65 |
54 body.uber-frame header > .search-field-container, | 66 body header > .search-field-container, |
55 body.uber-frame header > .header-extras, | 67 body header > .header-extras, |
56 body.uber-frame header > button { | 68 body header > button { |
57 position: absolute; | 69 position: absolute; |
58 right: 20px; | 70 right: 20px; |
59 top: 21px; | 71 top: 21px; |
60 } | 72 } |
61 | 73 |
62 html[dir='rtl'] body.uber-frame header > .search-field-container, | 74 html[dir='rtl'] body header > .search-field-container, |
63 html[dir='rtl'] body.uber-frame header > .header-extras, | 75 html[dir='rtl'] body header > .header-extras, |
64 html[dir='rtl'] body.uber-frame header > button { | 76 html[dir='rtl'] body header > button { |
65 left: 20px; | 77 left: 20px; |
66 right: auto; | 78 right: auto; |
67 } | 79 } |
68 | 80 |
69 body.uber-frame header input[type='search'], | 81 body header input[type='search'], |
70 body.uber-frame header input[type='text'], | 82 body header input[type='text'], |
71 body.uber-frame header button { | 83 body header button { |
72 margin: 0; | 84 margin: 0; |
73 } | 85 } |
74 | 86 |
75 body.uber-frame header > h1 { | 87 body header > h1 { |
76 margin: 0; | 88 margin: 0; |
77 padding: 21px 0 13px; | 89 padding: 21px 0 13px; |
78 } | 90 } |
79 | 91 |
80 /* Create a border under the h1 (but before anything that gets appended | 92 /* Create a border under the h1 (but before anything that gets appended |
81 * to the end of the header). */ | 93 * to the end of the header). */ |
82 body.uber-frame header > h1::after { | 94 body header > h1::after { |
83 -webkit-margin-end: 20px; | 95 -webkit-margin-end: 20px; |
84 background-color: #eee; | 96 background-color: #eee; |
85 content: ' '; | 97 content: ' '; |
86 display: block; | 98 display: block; |
87 height: 1px; | 99 height: 1px; |
88 position: relative; | 100 position: relative; |
89 top: 13px; | 101 top: 13px; |
90 } | 102 } |
91 | 103 |
92 body.uber-frame footer { | 104 body footer { |
93 border-top: 1px solid #eee; | 105 border-top: 1px solid #eee; |
94 margin-top: 16px; | 106 margin-top: 16px; |
95 /* min-width and max-width should match the header */ | 107 /* min-width and max-width should match the header */ |
96 max-width: 638px; | 108 max-width: 638px; |
97 min-width: 600px; | 109 min-width: 600px; |
98 padding: 8px 0; | 110 padding: 8px 0; |
99 } | 111 } |
100 | 112 |
101 /* Sections are used in options pages, help page and history page. This defines | 113 /* Sections are used in options pages, help page and history page. This defines |
102 * the section metrics to match the header metrics above. */ | 114 * the section metrics to match the header metrics above. */ |
103 body.uber-frame section { | 115 body section { |
104 -webkit-padding-start: 18px; | 116 -webkit-padding-start: 18px; |
105 margin-bottom: 24px; | 117 margin-bottom: 24px; |
106 margin-top: 8px; | 118 margin-top: 8px; |
107 max-width: 600px; | 119 max-width: 600px; |
108 } | 120 } |
109 | 121 |
110 body.uber-frame section:last-of-type { | 122 body section:last-of-type { |
111 margin-bottom: 0; | 123 margin-bottom: 0; |
112 } | 124 } |
113 | 125 |
114 body.uber-frame section > h3 { | 126 body section > h3 { |
115 -webkit-margin-start: -18px; | 127 -webkit-margin-start: -18px; |
116 } | 128 } |
117 | 129 |
118 body.uber-frame section > div:only-of-type { | 130 body section > div:only-of-type { |
119 -webkit-box-flex: 1; | 131 -webkit-box-flex: 1; |
120 } | 132 } |
121 | 133 |
122 body.uber-frame .section-header { | 134 body .section-header { |
123 -webkit-margin-start: -18px; | 135 -webkit-margin-start: -18px; |
124 margin-bottom: 0.8em; | 136 margin-bottom: 0.8em; |
125 margin-top: 1.2em; | 137 margin-top: 1.2em; |
126 } | 138 } |
127 | 139 |
128 body.uber-frame .section-header > h3 { | 140 body .section-header > h3 { |
129 display: inline; | 141 display: inline; |
130 } | 142 } |
131 | 143 |
132 /* Styles for a hideable notification banner at the top of a page. */ | 144 /* Styles for a hideable notification banner at the top of a page. */ |
133 .page.showing-banner { | 145 .page.showing-banner { |
134 margin-top: 45px; | 146 margin-top: 45px; |
135 } | 147 } |
136 | 148 |
137 .page-banner { | 149 .page-banner { |
138 background-color: white; | 150 background-color: white; |
(...skipping 29 matching lines...) Expand all Loading... |
168 background-size: 16px; | 180 background-size: 16px; |
169 display: block; | 181 display: block; |
170 padding-bottom: 8px; | 182 padding-bottom: 8px; |
171 padding-top: 8px; | 183 padding-top: 8px; |
172 } | 184 } |
173 | 185 |
174 .page-banner.clickable:active .page-banner-text { | 186 .page-banner.clickable:active .page-banner-text { |
175 background: -webkit-linear-gradient(rgb(250, 230, 145), | 187 background: -webkit-linear-gradient(rgb(250, 230, 145), |
176 rgb(255, 242, 183)); | 188 rgb(255, 242, 183)); |
177 } | 189 } |
OLD | NEW |