OLD | NEW |
(Empty) | |
| 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 |
| 3 * found in the LICENSE file. */ |
| 4 |
| 5 .suggestions { |
| 6 position: absolute; |
| 7 z-index: 0; |
| 8 } |
| 9 |
| 10 .suggestions { |
| 11 -webkit-box-orient: vertical; |
| 12 display: -webkit-box; |
| 13 position: absolute; |
| 14 text-decoration: none; |
| 15 } |
| 16 |
| 17 .suggestions:focus { |
| 18 outline: none; |
| 19 } |
| 20 |
| 21 .suggestions .close-button { |
| 22 -webkit-transition: opacity 150ms; |
| 23 opacity: 0; |
| 24 position: absolute; |
| 25 right: 0; |
| 26 top: 0; |
| 27 z-index: 5; |
| 28 } |
| 29 |
| 30 html[dir=rtl] .suggestions .close-button { |
| 31 left: 0; |
| 32 right: auto; |
| 33 } |
| 34 |
| 35 .suggestions:hover .close-button { |
| 36 -webkit-transition-delay: 500ms; |
| 37 opacity: 1; |
| 38 } |
| 39 |
| 40 .suggestions .close-button:hover { |
| 41 -webkit-transition: none; |
| 42 } |
| 43 |
| 44 .suggestions .favicon { |
| 45 -webkit-margin-start: 5px; |
| 46 background: no-repeat left 50%; |
| 47 bottom: 7px; |
| 48 box-sizing: border-box; |
| 49 display: block; |
| 50 height: 16px; |
| 51 position: absolute; |
| 52 width: 16px; |
| 53 } |
| 54 |
| 55 html[dir='rtl'] .suggestions .favicon { |
| 56 background-position-x: right; |
| 57 } |
| 58 |
| 59 .suggestions .color-stripe { |
| 60 border-bottom-left-radius: 3px 3px; |
| 61 border-bottom-right-radius: 3px 3px; |
| 62 /* Matches height of title. */ |
| 63 bottom: 23px; |
| 64 height: 3px; |
| 65 /* Matches padding-top of the title. */ |
| 66 margin-bottom: 8px; |
| 67 position: absolute; |
| 68 width: 100%; |
| 69 z-index: 10; |
| 70 } |
| 71 |
| 72 .suggestions .title { |
| 73 display: block; |
| 74 height: 23px; |
| 75 overflow: hidden; |
| 76 padding-top: 8px; |
| 77 text-align: center; |
| 78 text-overflow: ellipsis; |
| 79 white-space: nowrap; |
| 80 } |
| 81 |
| 82 .suggestions:focus .thumbnail, |
| 83 .suggestions:hover .thumbnail { |
| 84 opacity: 0.95; |
| 85 } |
| 86 |
| 87 .suggestions:focus .thumbnail-shield, |
| 88 .suggestions:hover .thumbnail-shield, |
| 89 .suggestions:active .thumbnail-shield { |
| 90 background: -webkit-linear-gradient(rgba(255, 255, 255, 0), |
| 91 rgba(255, 255, 255, 0) 80%, |
| 92 rgba(255, 255, 255, 0.9)); |
| 93 } |
| 94 |
| 95 /* The thumbnail gets lighter when clicked, but not when the click is on the |
| 96 * close button. */ |
| 97 .suggestions:active .close-button:not(:active) + .thumbnail { |
| 98 opacity: 0.9; |
| 99 } |
| 100 |
| 101 /* The thumbnail gets a shadow when clicked, but not when the click is on the |
| 102 * close button. */ |
| 103 .suggestions:active .close-button:not(:active) + .thumbnail .thumbnail-shield { |
| 104 -webkit-box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.2); |
| 105 } |
OLD | NEW |