From 88abcf4a2d13114752c0462714127a7bddcf361b Mon Sep 17 00:00:00 2001 From: Lea Verou Date: Mon, 24 Mar 2025 12:39:19 -0400 Subject: [PATCH] Copy icon --- docs/_layouts/palette.njk | 2 +- docs/docs/palettes/app/tweak.css | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/_layouts/palette.njk b/docs/_layouts/palette.njk index f0b6ab81e..876708f7d 100644 --- a/docs/_layouts/palette.njk +++ b/docs/_layouts/palette.njk @@ -148,7 +148,7 @@
- +
diff --git a/docs/docs/palettes/app/tweak.css b/docs/docs/palettes/app/tweak.css index ad1704f84..e04b06000 100644 --- a/docs/docs/palettes/app/tweak.css +++ b/docs/docs/palettes/app/tweak.css @@ -150,6 +150,18 @@ wa-dropdown > .color.swatch { opacity: var(--tweak-icon-opacity, 0%); } + .copy-icon { + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + opacity: var(--copy-icon-opacity, 0%); + + &:has(wa-dropdown[open]) { + --copy-icon-opacity: 40%; + } + } + .color.swatch:hover { --tweak-icon-opacity: 40%; --copy-icon-opacity: 40%;