From 08defeb7e15bfb4334d2445e40486bfe589700b5 Mon Sep 17 00:00:00 2001 From: Altan Date: Tue, 12 Dec 2023 22:27:34 +1300 Subject: [PATCH] Add copy animation --- views/css/style.css | 5 +++++ views/index.pug | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/views/css/style.css b/views/css/style.css index 2a1f3be..044629f 100644 --- a/views/css/style.css +++ b/views/css/style.css @@ -51,6 +51,11 @@ p { -khtml-user-select: none; } +#click:active { + transition: background-color 0.1s; + background-color: #2888d9 !important; +} + .ip { cursor: pointer; } diff --git a/views/index.pug b/views/index.pug index a098319..9833fed 100644 --- a/views/index.pug +++ b/views/index.pug @@ -5,4 +5,4 @@ block layout-content div.hub h1 span.heading IP - span#click.ip(data-tooltip='Copy to Clipboard')= message \ No newline at end of file + span#click.ip(data-tooltip='Click to Copy')= message \ No newline at end of file