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%, 20%); | 8 background: hsl(0, 0%, 95%); |
9 border-radius: 2px; | 9 border-radius: 2px; |
10 color: white; | 10 color: hsl(0, 0%, 20%); |
11 padding: 6px 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)); |
| 17 border: 1px solid hsla(0, 0%, 0%, 0.1); |
| 18 background-clip: padding-box; |
| 19 box-sizing: border-box; |
16 } | 20 } |
17 | 21 |
18 .tooltip, | 22 .tooltip { |
19 .tooltip-arrow { | |
20 position: absolute; | 23 position: absolute; |
21 visibility: hidden; | 24 visibility: hidden; |
22 transition: visibility 0s 100ms; | 25 transition: visibility 0s 100ms, opacity 150ms cubic-bezier(0, 0, .2, 1); |
23 z-index: 3000; | 26 z-index: 3000; |
24 top: 0; | 27 top: 0; |
25 left: 0; | 28 left: 0; |
| 29 opacity: 0; |
26 } | 30 } |
27 | 31 |
28 .tooltip.shown, | 32 .tooltip.shown { |
29 .tooltip.shown + .tooltip-arrow { | |
30 visibility: visible; | 33 visibility: visible; |
31 transition-delay: 400ms; | 34 transition-delay: 600ms; |
| 35 opacity: 1; |
32 } | 36 } |
33 | 37 |
34 .tooltip.shown.instant, | 38 .tooltip.shown.instant { |
35 .tooltip.shown.instant + .tooltip-arrow { | |
36 transition-delay: 0s; | 39 transition-delay: 0s; |
37 } | 40 } |
38 | 41 |
39 .tooltip-arrow { | |
40 border: solid; | |
41 border-color: hsl(0, 0%, 20%) transparent; | |
42 border-width: 0 4px 4px 4px; | |
43 margin-left: -4px; | |
44 } | |
45 | |
46 .tooltip-arrow.tooltip-arrow-top { | |
47 border-width: 4px 4px 0 4px; | |
48 } | |
49 | |
50 .tooltip-shortcut { | 42 .tooltip-shortcut { |
51 color: hsl(0, 0%, 80%); | 43 color: hsl(0, 0%, 45%); |
52 display: inline-block; | 44 display: inline-block; |
53 margin-left: 10px; | 45 margin-left: 8px; |
54 flex: 0 0 auto; | 46 flex: 0 0 auto; |
55 } | 47 } |
OLD | NEW |