Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: ui/webui/resources/css/widgets.css

Issue 1203183003: WebUI: Fix radio and checkbox behavior when text selected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 * 277 *
278 * <div class="checkbox"> 278 * <div class="checkbox">
279 * <label> 279 * <label>
280 * <input type="checkbox"></input> 280 * <input type="checkbox"></input>
281 * <span> 281 * <span>
282 * </label> 282 * </label>
283 * </div> 283 * </div>
284 */ 284 */
285 285
286 :-webkit-any(.checkbox, .radio) label { 286 :-webkit-any(.checkbox, .radio) label {
287 -webkit-user-select: none;
287 /* Don't expand horizontally: <http://crbug.com/112091>. */ 288 /* Don't expand horizontally: <http://crbug.com/112091>. */
288 align-items: center; 289 align-items: center;
289 display: inline-flex; 290 display: inline-flex;
290 padding-bottom: 7px; 291 padding-bottom: 7px;
291 padding-top: 7px; 292 padding-top: 7px;
292 } 293 }
293 294
294 :-webkit-any(.checkbox, .radio) label input { 295 :-webkit-any(.checkbox, .radio) label input {
295 flex-shrink: 0; 296 flex-shrink: 0;
296 } 297 }
297 298
298 :-webkit-any(.checkbox, .radio) label input ~ span { 299 :-webkit-any(.checkbox, .radio) label input ~ span {
299 -webkit-margin-start: 0.6em; 300 -webkit-margin-start: 0.6em;
300 -webkit-user-select: none;
301 /* 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. */
302 display: block; 302 display: block;
303 } 303 }
304 304
305 :-webkit-any(.checkbox, .radio) label:hover { 305 :-webkit-any(.checkbox, .radio) label:hover {
306 color: black; 306 color: black;
307 } 307 }
308 308
309 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span { 309 label > input:disabled:-webkit-any([type='checkbox'], [type='radio']) ~ span {
310 color: #999; 310 color: #999;
311 } 311 }
312 312
313 extensionview { 313 extensionview {
314 display: inline-block; 314 display: inline-block;
315 height: 300px; 315 height: 300px;
316 width: 300px; 316 width: 300px;
317 } 317 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698