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 /* This file holds CSS that should be shared, in theory, by all user-visible | 5 /* This file holds CSS that should be shared, in theory, by all user-visible |
6 * chrome:// pages. This contrasts chrome_shared.css, which it is meant to | 6 * chrome:// pages. This contrasts chrome_shared.css, which it is meant to |
7 * replace, but has CSS specific to options and options-like pages. */ | 7 * replace, but has CSS specific to options and options-like pages. */ |
8 | 8 |
9 @import url("chrome://resources/css/button.css"); | 9 @import url("chrome://resources/css/button.css"); |
10 @import url("chrome://resources/css/checkbox.css"); | 10 @import url("chrome://resources/css/checkbox.css"); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 */ | 107 */ |
108 html[touch-optimized] input[type='search'] { | 108 html[touch-optimized] input[type='search'] { |
109 font-size: 13px; | 109 font-size: 13px; |
110 padding: 5px; | 110 padding: 5px; |
111 } | 111 } |
112 | 112 |
113 html[touch-optimized] input[type='search']::-webkit-search-cancel-button { | 113 html[touch-optimized] input[type='search']::-webkit-search-cancel-button { |
114 -webkit-transform: scale(1.5); | 114 -webkit-transform: scale(1.5); |
115 } | 115 } |
116 | 116 |
117 header > .search-field-container, | |
118 header > button { | |
119 position: absolute; | |
120 right: 100px; | |
121 top: 21px; | |
122 } | |
123 | |
124 html[dir='rtl'] header > .search-field-container, | |
125 html[dir='rtl'] header > button { | |
126 left: 100px; | |
127 right: auto; | |
128 } | |
129 | |
130 header input, | |
131 header button { | |
132 margin: 0; | |
133 } | |
134 | |
135 /* Elements that need to be LTR even in an RTL context, but should align | 117 /* Elements that need to be LTR even in an RTL context, but should align |
136 * right. (Namely, URLs, search engine names, etc.) | 118 * right. (Namely, URLs, search engine names, etc.) |
137 */ | 119 */ |
138 html[dir='rtl'] .weakrtl { | 120 html[dir='rtl'] .weakrtl { |
139 direction: ltr; | 121 direction: ltr; |
140 text-align: right; | 122 text-align: right; |
141 } | 123 } |
142 | 124 |
143 /* Input fields in search engine table need to be weak-rtl. Since those input | 125 /* Input fields in search engine table need to be weak-rtl. Since those input |
144 * fields are generated for all cr.ListItem elements (and we only want weakrtl | 126 * fields are generated for all cr.ListItem elements (and we only want weakrtl |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 * For now it's a bandaid until we install open sans properly. */ | 161 * For now it's a bandaid until we install open sans properly. */ |
180 <if expr="is_posix and not is_macosx and not pp_ifdef('chromeos')"> | 162 <if expr="is_posix and not is_macosx and not pp_ifdef('chromeos')"> |
181 @font-face { | 163 @font-face { |
182 font-family: 'Open Sans'; | 164 font-family: 'Open Sans'; |
183 font-style: normal; | 165 font-style: normal; |
184 font-weight: 400; | 166 font-weight: 400; |
185 src: local('Open Sans'), local('OpenSans'), | 167 src: local('Open Sans'), local('OpenSans'), |
186 url('chrome://resources/fonts/open_sans.woff') format('woff'); | 168 url('chrome://resources/fonts/open_sans.woff') format('woff'); |
187 } | 169 } |
188 </if> | 170 </if> |
OLD | NEW |