Skip to content

best way to save what you love

web/SectionHeading: make the link button always visible

wukko1473f220cb01
diff --git a/web/src/components/misc/SectionHeading.svelte b/web/src/components/misc/SectionHeading.svelte
index 31e27003..4645f2d0 100644
--- a/web/src/components/misc/SectionHeading.svelte
+++ b/web/src/components/misc/SectionHeading.svelte
@@ -51,13 +51,17 @@
padding: 2px;
box-shadow: none;
border-radius: 5px;
- transition: opacity 0.1s;
+ transition: opacity 0.2s;
+ opacity: 0.7;
+ }
+
+ .link-copy:focus-visible {
+ opacity: 1;
}
.link-copy :global(.copy-animation) {
width: 17px;
height: 17px;
- opacity: 0.7;
}
.link-copy :global(.copy-animation *) {
@@ -65,10 +69,6 @@
height: 17px;
}
- .link-copy :global(.copy-animation):hover {
- opacity: 1;
- }
-
.beta-label {
display: flex;
justify-content: center;
@@ -84,10 +84,6 @@
}
@media (hover: hover) {
- .link-copy:not(:focus-visible) {
- opacity: 0;
- }
-
.heading-container:hover .link-copy {
opacity: 1;
}