| 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. */ | 6 * chrome:// pages. */ |
| 7 | 7 |
| 8 @import url(chrome://resources/css/text_defaults.css); | 8 @import url(chrome://resources/css/text_defaults.css); |
| 9 @import url(i18n_process.css); | 9 @import url(i18n_process.css); |
| 10 @import url(widgets.css); | 10 @import url(widgets.css); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 a { | 62 a { |
| 63 color: rgb(17, 85, 204); | 63 color: rgb(17, 85, 204); |
| 64 text-decoration: underline; | 64 text-decoration: underline; |
| 65 } | 65 } |
| 66 | 66 |
| 67 a:active { | 67 a:active { |
| 68 color: rgb(5, 37, 119); | 68 color: rgb(5, 37, 119); |
| 69 } | 69 } |
| 70 | 70 |
| 71 /* Elements that need to be LTR even in an RTL context, but should align | 71 /* Elements that need to be LTR even in an RTL context, but should align |
| 72 * right. (Namely, URLs, search engine names, etc.) | 72 * right. (Namely, URLs, search engine names, etc.) */ |
| 73 */ | |
| 74 html[dir='rtl'] .weakrtl { | 73 html[dir='rtl'] .weakrtl { |
| 75 direction: ltr; | 74 direction: ltr; |
| 76 text-align: right; | 75 text-align: right; |
| 77 } | 76 } |
| 78 | 77 |
| 79 /* Input fields in search engine table need to be weak-rtl. Since those input | 78 /* Input fields in search engine table need to be weak-rtl. Since those input |
| 80 * fields are generated for all cr.ListItem elements (and we only want weakrtl | 79 * fields are generated for all cr.ListItem elements (and we only want weakrtl |
| 81 * on some), the class needs to be on the enclosing div. | 80 * on some), the class needs to be on the enclosing div. */ |
| 82 */ | |
| 83 html[dir='rtl'] div.weakrtl input { | 81 html[dir='rtl'] div.weakrtl input { |
| 84 direction: ltr; | 82 direction: ltr; |
| 85 text-align: right; | 83 text-align: right; |
| 86 } | 84 } |
| 87 | 85 |
| 88 html[dir='rtl'] .favicon-cell.weakrtl { | 86 html[dir='rtl'] .favicon-cell.weakrtl { |
| 89 -webkit-padding-end: 22px; | 87 -webkit-padding-end: 22px; |
| 90 -webkit-padding-start: 0; | 88 -webkit-padding-start: 0; |
| 91 } | 89 } |
| 92 | 90 |
| 93 /* weakrtl for selection drop downs needs to account for the fact that | 91 /* weakrtl for selection drop downs needs to account for the fact that |
| 94 * Webkit does not honor the text-align attribute for the select element. | 92 * Webkit does not honor the text-align attribute for the select element. |
| 95 * (See Webkit bug #40216) | 93 * (See Webkit bug #40216) */ |
| 96 */ | |
| 97 html[dir='rtl'] select.weakrtl { | 94 html[dir='rtl'] select.weakrtl { |
| 98 direction: rtl; | 95 direction: rtl; |
| 99 } | 96 } |
| 100 | 97 |
| 101 html[dir='rtl'] select.weakrtl option { | 98 html[dir='rtl'] select.weakrtl option { |
| 102 direction: ltr; | 99 direction: ltr; |
| 103 } | 100 } |
| 104 | 101 |
| 105 /* WebKit does not honor alignment for text specified via placeholder attribute. | 102 /* WebKit does not honor alignment for text specified via placeholder attribute. |
| 106 * This CSS is a workaround. Please remove once WebKit bug is fixed. | 103 * This CSS is a workaround. Please remove once WebKit bug is fixed. |
| 107 * https://bugs.webkit.org/show_bug.cgi?id=63367 | 104 * https://bugs.webkit.org/show_bug.cgi?id=63367 */ |
| 108 */ | |
| 109 html[dir='rtl'] input.weakrtl::-webkit-input-placeholder, | 105 html[dir='rtl'] input.weakrtl::-webkit-input-placeholder, |
| 110 html[dir='rtl'] .weakrtl input::-webkit-input-placeholder { | 106 html[dir='rtl'] .weakrtl input::-webkit-input-placeholder { |
| 111 direction: rtl; | 107 direction: rtl; |
| 112 } | 108 } |
| OLD | NEW |