-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathCodeBlockCopyButton.module.css
More file actions
63 lines (55 loc) · 1.41 KB
/
CodeBlockCopyButton.module.css
File metadata and controls
63 lines (55 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
:global(.webchat) .code-block-copy-button {
align-items: center;
appearance: none;
background: #fff;
border-radius: 4px;
border: 1px solid #d1d1d1;
color: #242424;
display: grid;
float: right; /* Use "inline-end" after we update Chromium in Docker */
gap: 4px;
justify-content: center;
margin-inline-start: var(--webchat__padding--regular);
padding: 3px;
}
:global(.webchat) .code-block-copy-button:hover {
background: #f5f5f5;
border: 1px solid #c7c7c7;
color: #242424;
}
:global(.webchat) .code-block-copy-button:active {
background: #e0e0e0;
border: 1px solid #b3b3b3;
color: #242424;
}
:global(.webchat) .code-block-copy-button:focus-visible {
background: #fff;
outline: 2px solid #000;
outline-offset: -2px;
}
:global(.webchat) .code-block-copy-button[aria-disabled='true'] {
background: #f0f0f0;
border: 1px solid #e0e0e0;
color: #bdbdbd;
cursor: not-allowed;
}
:global(.webchat) .code-block-copy-button__icon {
grid-column: 1;
grid-row: 1;
--webchat__component-icon--color: #707070;
--webchat__component-icon--size: 16px;
}
:global(.webchat) .code-block-copy-button__icon--copied {
opacity: 0;
}
:global(.webchat) .code-block-copy-button--copied .code-block-copy-button__icon {
animation: code-block-copy-button__copied-animation 0.5s linear;
}
@keyframes code-block-copy-button__copied-animation {
0% {
opacity: 100%;
}
100% {
opacity: unset;
}
}