| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 .tooltip { | 7 .tooltip { |
| 8 background: hsl(0, 0%, 95%); | 8 background: hsl(0, 0%, 95%); |
| 9 border-radius: 2px; | 9 border-radius: 2px; |
| 10 color: hsl(0, 0%, 20%); | 10 color: hsl(0, 0%, 20%); |
| 11 padding: 5px 8px; | 11 padding: 5px 8px; |
| 12 font-size: 11px; | 12 font-size: 11px; |
| 13 line-height: 14px; | 13 line-height: 14px; |
| 14 display: flex; | 14 display: flex; |
| 15 align-items: center; | 15 align-items: center; |
| 16 -webkit-filter: drop-shadow(0 1px 2px hsla(0, 0%, 0%, 0.3)); | 16 -webkit-filter: drop-shadow(0 1px 2px hsla(0, 0%, 0%, 0.3)); |
| 17 border: 1px solid hsla(0, 0%, 0%, 0.1); | 17 border: 1px solid hsla(0, 0%, 0%, 0.1); |
| 18 background-clip: padding-box; | 18 background-clip: padding-box; |
| 19 box-sizing: border-box; | 19 box-sizing: border-box; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .tooltip { | 22 .tooltip { |
| 23 position: absolute; | 23 position: absolute; |
| 24 visibility: hidden; | 24 visibility: hidden; |
| 25 transition: visibility 0s 100ms, opacity 150ms cubic-bezier(0, 0, .2, 1); | 25 transition: visibility 0s 100ms, opacity 150ms cubic-bezier(0, 0, .2, 1); |
| 26 z-index: 3000; | 26 z-index: 20001; |
| 27 top: 0; | 27 top: 0; |
| 28 left: 0; | 28 left: 0; |
| 29 opacity: 0; | 29 opacity: 0; |
| 30 } | 30 } |
| 31 | 31 |
| 32 .tooltip.shown { | 32 .tooltip.shown { |
| 33 visibility: visible; | 33 visibility: visible; |
| 34 transition-delay: 600ms; | 34 transition-delay: 600ms; |
| 35 opacity: 1; | 35 opacity: 1; |
| 36 } | 36 } |
| 37 | 37 |
| 38 .tooltip.shown.instant { | 38 .tooltip.shown.instant { |
| 39 transition-delay: 0s; | 39 transition-delay: 0s; |
| 40 } | 40 } |
| 41 | 41 |
| 42 .tooltip-shortcut { | 42 .tooltip-shortcut { |
| 43 color: hsl(0, 0%, 45%); | 43 color: hsl(0, 0%, 45%); |
| 44 display: inline-block; | 44 display: inline-block; |
| 45 margin-left: 8px; | 45 margin-left: 8px; |
| 46 flex: 0 0 auto; | 46 flex: 0 0 auto; |
| 47 } | 47 } |
| OLD | NEW |