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