| /* Copyright 2013 The Chromium Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. */ |
| |
| /* Derived from /ui/webui/resources/css/list.css. */ |
| |
| list, |
| grid { |
| display: block; |
| outline: none; |
| overflow: auto; |
| position: relative; /* Make sure that item offsets are relative to the |
| list. */ |
| } |
| |
| list > *, |
| grid > * { |
| -webkit-user-select: none; |
| position: relative; /* to allow overlap */ |
| text-overflow: ellipsis; |
| white-space: pre; |
| } |
| |
| list > * { |
| display: block; |
| } |
| |
| grid > * { |
| display: inline-block; |
| } |
| |
| list:focus > [lead], |
| grid:focus > [lead] { |
| z-index: 2; |
| } |
| |
| list:not([disabled]) > :hover, |
| grid:not([disabled]) > :hover { |
| z-index: 1; |
| } |
| |
| list > [selected], |
| grid > [selected] { |
| z-index: 2; |
| } |
| |
| list > .spacer, |
| grid > .spacer { |
| box-sizing: border-box; |
| display: block; |
| overflow: hidden; |
| visibility: hidden; |
| } |
| |
| list :-webkit-any( |
| input[type='input'], |
| input[type='password'], |
| input[type='search'], |
| input[type='text'], |
| input[type='url']), |
| list :-webkit-any( |
| button, |
| input[type='button'], |
| input[type='submit'], |
| select):not(.custom-appearance):not(.link-button) { |
| line-height: normal; |
| vertical-align: middle; |
| } |
| |
| list > [hidden], |
| grid > [hidden] { |
| display: none; |
| } |