fix(web): keep copy labels hover-only
ci / web (push) Successful in 25s
ci / flake (push) Failing after 40s
ci / rust (push) Successful in 5m12s

This commit is contained in:
Miguel Palhas
2026-09-07 08:13:23 +01:00
parent 4a2f7e98b4
commit 0543f66469
+10 -15
View File
@@ -2533,7 +2533,7 @@ input.leaf-rename:focus {
}
.st-copyable::after {
content: "copy";
content: none;
position: absolute;
top: var(--sp-1);
right: var(--sp-1);
@@ -2554,30 +2554,25 @@ input.leaf-rename:focus {
outline: none;
}
.st-copyable:focus-visible::after,
.st-copyable[data-copy-state="copied"]::after,
.st-copyable[data-copy-state="error"]::after {
opacity: 1;
}
@media (hover: hover) {
.st-copyable:hover {
background: var(--surface-2);
}
.st-copyable:hover::after {
content: "copy";
opacity: 1;
}
}
.st-copyable[data-copy-state="copied"]::after {
content: "copied";
color: var(--live);
}
.st-copyable[data-copy-state="copied"]:hover::after {
content: "copied";
color: var(--live);
}
.st-copyable[data-copy-state="error"]::after {
content: "copy failed";
color: var(--danger);
.st-copyable[data-copy-state="error"]:hover::after {
content: "copy failed";
color: var(--danger);
}
}
/* tool rows: bordered, compact, deliberately not lifted */