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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 .link-button { | 249 .link-button { |
250 -webkit-box-shadow: none; | 250 -webkit-box-shadow: none; |
251 background: transparent none; | 251 background: transparent none; |
252 border: none; | 252 border: none; |
253 color: rgb(17, 85, 204); | 253 color: rgb(17, 85, 204); |
254 cursor: pointer; | 254 cursor: pointer; |
255 /* Input elements have -webkit-small-control which can override the body font. | 255 /* Input elements have -webkit-small-control which can override the body font. |
256 * Resolve this by using 'inherit'. */ | 256 * Resolve this by using 'inherit'. */ |
257 font: inherit; | 257 font: inherit; |
258 margin: 0; | 258 margin: 0; |
259 padding: 0 4px; | 259 padding: 0; |
260 } | 260 } |
261 | 261 |
262 .link-button:hover { | 262 .link-button:hover { |
263 text-decoration: underline; | 263 text-decoration: underline; |
264 } | 264 } |
265 | 265 |
266 .link-button:active { | 266 .link-button:active { |
267 color: rgb(5, 37, 119); | 267 color: rgb(5, 37, 119); |
268 text-decoration: underline; | 268 text-decoration: underline; |
269 } | 269 } |
(...skipping 18 matching lines...) Expand all Loading... |
288 */ | 288 */ |
289 | 289 |
290 :-webkit-any(.checkbox, .radio) label { | 290 :-webkit-any(.checkbox, .radio) label { |
291 /* Don't expand horizontally: <http://crbug.com/112091>. */ | 291 /* Don't expand horizontally: <http://crbug.com/112091>. */ |
292 display: -webkit-inline-box; | 292 display: -webkit-inline-box; |
293 padding-bottom: 7px; | 293 padding-bottom: 7px; |
294 padding-top: 7px; | 294 padding-top: 7px; |
295 } | 295 } |
296 | 296 |
297 :-webkit-any(.checkbox, .radio) label input ~ span { | 297 :-webkit-any(.checkbox, .radio) label input ~ span { |
| 298 -webkit-margin-end: 0.3em; |
298 -webkit-margin-start: 0.6em; | 299 -webkit-margin-start: 0.6em; |
| 300 -webkit-user-select: none; |
299 /* Make sure long spans wrap at the same horizontal position they start. */ | 301 /* Make sure long spans wrap at the same horizontal position they start. */ |
300 display: block; | 302 display: block; |
301 } | 303 } |
302 | 304 |
303 :-webkit-any(.checkbox, .radio) label:hover { | 305 :-webkit-any(.checkbox, .radio) label:hover { |
304 color: black; | 306 color: black; |
305 } | 307 } |
306 | 308 |
307 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { | 309 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { |
308 color: #999; | 310 color: #999; |
309 } | 311 } |
OLD | NEW |