Chromium Code Reviews| 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 | 5 |
| 6 /* This file defines styles for form controls. The order of rule blocks is | 6 /* This file defines styles for form controls. The order of rule blocks is |
| 7 * important as there are some rules with equal specificity that rely on order | 7 * important as there are some rules with equal specificity that rely on order |
| 8 * as a tiebreaker. These are marked with OVERRIDE. | 8 * as a tiebreaker. These are marked with OVERRIDE. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 margin: 0 1px 0 0; | 28 margin: 0 1px 0 0; |
| 29 text-shadow: 0 1px 0 rgb(240, 240, 240); | 29 text-shadow: 0 1px 0 rgb(240, 240, 240); |
| 30 } | 30 } |
| 31 | 31 |
| 32 button:not(.custom-appearance):not(.link-button), | 32 button:not(.custom-appearance):not(.link-button), |
| 33 input[type='button']:not(.custom-appearance):not(.link-button), | 33 input[type='button']:not(.custom-appearance):not(.link-button), |
| 34 input[type='submit']:not(.custom-appearance):not(.link-button), | 34 input[type='submit']:not(.custom-appearance):not(.link-button), |
| 35 select { | 35 select { |
| 36 height: 2em; | 36 height: 2em; |
| 37 min-width: 4em; | 37 min-width: 4em; |
| 38 <if expr="pp_ifdef('chromeos')"> | |
|
Evan Stade
2012/03/13 01:35:31
this seems better than html[os='chromeos'] because
Dan Beam
2012/03/13 01:50:10
+1
csilv
2012/03/13 01:55:51
Agreed 100%.
Evan Stade
2012/03/13 01:58:09
I meant that if we were to do this in css, we woul
| |
| 39 /* Without this rule, chromeos button text is too high on the button. */ | |
| 40 padding-top: 3px; | |
| 41 </if> | |
| 42 <if expr="is_macosx or is_win"> | |
| 43 /* The following platform-specific rule is necessary to get adjacent | |
| 44 * buttons, text inputs, and so forth to align on their borders while also | |
| 45 * aligning on the text's baselines. */ | |
| 46 padding-bottom: 1px; | |
| 47 </if> | |
| 38 } | 48 } |
| 39 | 49 |
| 40 button:not(.custom-appearance):not(.link-button), | 50 button:not(.custom-appearance):not(.link-button), |
| 41 input[type='button']:not(.custom-appearance):not(.link-button), | 51 input[type='button']:not(.custom-appearance):not(.link-button), |
| 42 input[type='submit']:not(.custom-appearance):not(.link-button) { | 52 input[type='submit']:not(.custom-appearance):not(.link-button) { |
| 43 -webkit-padding-end: 10px; | 53 -webkit-padding-end: 10px; |
| 44 -webkit-padding-start: 10px; | 54 -webkit-padding-start: 10px; |
| 45 } | 55 } |
| 46 | 56 |
| 47 select { | 57 select { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 input[type='text'], | 274 input[type='text'], |
| 265 input[type='url'], | 275 input[type='url'], |
| 266 input:not([type]) { | 276 input:not([type]) { |
| 267 border: 1px solid #bfbfbf; | 277 border: 1px solid #bfbfbf; |
| 268 border-radius: 2px; | 278 border-radius: 2px; |
| 269 box-sizing: border-box; | 279 box-sizing: border-box; |
| 270 font: inherit; | 280 font: inherit; |
| 271 height: 2em; | 281 height: 2em; |
| 272 margin: 0; | 282 margin: 0; |
| 273 padding: 3px; | 283 padding: 3px; |
| 284 <if expr="pp_ifdef('chromeos')"> | |
| 285 /* For better alignment between adjacent buttons and inputs. */ | |
| 286 padding-bottom: 2px; | |
| 287 </if> | |
| 274 } | 288 } |
| 275 | 289 |
| 276 input[type='search'] { | 290 input[type='search'] { |
| 277 -webkit-appearance: textfield; | 291 -webkit-appearance: textfield; |
| 278 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end | 292 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end |
| 279 * of the default text in relatively spacious languages (i.e. German). */ | 293 * of the default text in relatively spacious languages (i.e. German). */ |
| 280 min-width: 160px; | 294 min-width: 160px; |
| 281 } | 295 } |
| 282 | 296 |
| 283 input[type='text']:disabled { | 297 input[type='text']:disabled { |
| 284 color: #888; | 298 color: #888; |
| 285 } | 299 } |
| OLD | NEW |