mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 21:31:53 +08:00
32 lines
545 B
CSS
32 lines
545 B
CSS
.root {
|
|
position: absolute;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.15s ease;
|
|
|
|
button {
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
padding: 0.125rem;
|
|
background-color: var(--sl-color-bg);
|
|
color: var(--sl-color-text-secondary);
|
|
|
|
svg {
|
|
display: block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
|
|
&[data-copied="true"] {
|
|
color: var(--sl-color-green-high);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Show copy button when parent is hovered */
|
|
*:hover > .root {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|