| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | .copyable { |
| 9 | cursor: pointer; |
| 10 | display: flex; |
| 11 | align-items: center; |
| 12 | gap: var(--halfpad); |
| 13 | word-break: break-all; |
| 14 | } |
| 15 | |
| 16 | .copyable .codicon { |
| 17 | opacity: 0; |
| 18 | transition: opacity transform 0.1s; |
| 19 | } |
| 20 | .copyable.icon-only .codicon { |
| 21 | opacity: 1; |
| 22 | } |
| 23 | |
| 24 | .copyable:hover .codicon { |
| 25 | opacity: 1; |
| 26 | transform: scale(1.1); |
| 27 | } |
| 28 | |
| 29 | @keyframes beat { |
| 30 | 0% { |
| 31 | transform: scale(1, 1); |
| 32 | } |
| 33 | 100% { |
| 34 | transform: scale(1.01, 1.01); |
| 35 | } |
| 36 | } |
| 37 | .copyable:active { |
| 38 | animation: beat 0.1s linear backwards; |
| 39 | } |
| 40 | |
| 41 | .copyable-success-tooltip { |
| 42 | max-width: 300px; |
| 43 | display: flex; |
| 44 | white-space: nowrap; |
| 45 | } |
| 46 | |
| 47 | .copyable-success-overflow { |
| 48 | overflow: hidden; |
| 49 | text-overflow: ellipsis; |
| 50 | } |
| 51 | |