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 defines styles for form controls. The order of rule blocks is | 5 /* This file defines styles for form controls. The order of rule blocks is |
6 * important as there are some rules with equal specificity that rely on order | 6 * important as there are some rules with equal specificity that rely on order |
7 * as a tiebreaker. These are marked with OVERRIDE. */ | 7 * as a tiebreaker. These are marked with OVERRIDE. */ |
8 | 8 |
9 /* Default state **************************************************************/ | 9 /* Default state **************************************************************/ |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 textarea { | 91 textarea { |
92 border: 1px solid #bfbfbf; | 92 border: 1px solid #bfbfbf; |
93 border-radius: 2px; | 93 border-radius: 2px; |
94 box-sizing: border-box; | 94 box-sizing: border-box; |
95 color: #444; | 95 color: #444; |
96 font: inherit; | 96 font: inherit; |
97 margin: 0; | 97 margin: 0; |
98 /* Use min-height to accommodate addditional padding for touch as needed. */ | 98 /* Use min-height to accommodate addditional padding for touch as needed. */ |
99 min-height: 2em; | 99 min-height: 2em; |
100 padding: 3px; | 100 padding: 3px; |
101 <if expr="is_win or is_macosx"> | 101 <if expr="is_win or is_macosx or is_ios"> |
102 /* For better alignment between adjacent buttons and inputs. */ | 102 /* For better alignment between adjacent buttons and inputs. */ |
103 padding-bottom: 4px; | 103 padding-bottom: 4px; |
104 </if> | 104 </if> |
105 } | 105 } |
106 | 106 |
107 input[type='search'] { | 107 input[type='search'] { |
108 -webkit-appearance: textfield; | 108 -webkit-appearance: textfield; |
109 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end | 109 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end |
110 * of the default text in relatively spacious languages (i.e. German). */ | 110 * of the default text in relatively spacious languages (i.e. German). */ |
111 min-width: 160px; | 111 min-width: 160px; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 display: block; | 298 display: block; |
299 } | 299 } |
300 | 300 |
301 :-webkit-any(.checkbox, .radio) label:hover { | 301 :-webkit-any(.checkbox, .radio) label:hover { |
302 color: black; | 302 color: black; |
303 } | 303 } |
304 | 304 |
305 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { | 305 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { |
306 color: #999; | 306 color: #999; |
307 } | 307 } |
OLD | NEW |