1 /* Copyright 2013 The Chromium Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. */ 4 5 /* Derived from /ui/webui/resources/css/list.css. */ 6 7 list, 8 grid { 9 display: block; 10 outline: none; 11 overflow: auto; 12 position: relative; /* Make sure that item offsets are relative to the 13 list. */ 14 } 15 16 list > *, 17 grid > * { 18 -webkit-user-select: none; 19 position: relative; /* to allow overlap */ 20 text-overflow: ellipsis; 21 white-space: pre; 22 } 23 24 list > * { 25 display: block; 26 } 27 28 grid > * { 29 display: inline-block; 30 } 31 32 list:focus > [lead], 33 grid:focus > [lead] { 34 z-index: 2; 35 } 36 37 list:not([disabled]) > :hover, 38 grid:not([disabled]) > :hover { 39 z-index: 1; 40 } 41 42 list > [selected], 43 grid > [selected] { 44 z-index: 2; 45 } 46 47 list > .spacer, 48 grid > .spacer { 49 box-sizing: border-box; 50 display: block; 51 overflow: hidden; 52 visibility: hidden; 53 } 54 55 list :-webkit-any( 56 input[type='input'], 57 input[type='password'], 58 input[type='search'], 59 input[type='text'], 60 input[type='url']), 61 list :-webkit-any( 62 button, 63 input[type='button'], 64 input[type='submit'], 65 select):not(.custom-appearance):not(.link-button) { 66 line-height: normal; 67 vertical-align: middle; 68 } 69 70 list > [hidden], 71 grid > [hidden] { 72 display: none; 73 } 74