forked from Creditra/Creditra-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopyToClipboard.css
More file actions
65 lines (57 loc) · 1.29 KB
/
Copy pathCopyToClipboard.css
File metadata and controls
65 lines (57 loc) · 1.29 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
64
65
.copy-affordance {
display: inline-flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
max-width: 100%;
}
.copy-affordance--surface {
min-height: 44px;
padding: 0.625rem 0.75rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
}
.copy-affordance__value {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
}
.copy-affordance__button {
min-height: 32px;
padding: 0.375rem 0.625rem;
display: inline-flex;
align-items: center;
gap: 0.375rem;
border: 1px solid transparent;
border-radius: 999px;
background: rgba(88, 166, 255, 0.12);
color: var(--accent);
font: inherit;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, color 0.15s;
flex-shrink: 0;
}
.copy-affordance__button:hover {
background: rgba(88, 166, 255, 0.18);
border-color: rgba(88, 166, 255, 0.35);
}
.copy-affordance__button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.copy-affordance__button[data-copied='true'] {
background: rgba(63, 185, 80, 0.14);
border-color: rgba(63, 185, 80, 0.35);
color: var(--success);
}
.copy-affordance__button-label {
line-height: 1;
}
.copy-affordance__icon {
width: 0.9rem;
height: 0.9rem;
}