From b310a35f7db39f420abfd2d00e5438ff2beb319e Mon Sep 17 00:00:00 2001 From: valentine195 <38669521+valentine195@users.noreply.github.com> Date: Fri, 14 May 2021 10:38:30 -0400 Subject: [PATCH] 4.1.6 - Copy button style changes --- manifest.json | 2 +- package.json | 2 +- src/main.css | 23 +++++++++++++---------- versions.json | 2 +- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/manifest.json b/manifest.json index 97844ce..3375d21 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-admonition", "name": "Admonition", - "version": "4.1.5", + "version": "4.1.6", "minAppVersion": "0.11.0", "description": "Admonition block-styled content for Obsidian.md", "author": "Jeremy Valentine", diff --git a/package.json b/package.json index 335ce4d..77d442a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-admonition", - "version": "4.1.5", + "version": "4.1.6", "description": "Admonition block-styled content for Obsidian.md", "main": "main.js", "scripts": { diff --git a/src/main.css b/src/main.css index 1c487c7..520ade0 100644 --- a/src/main.css +++ b/src/main.css @@ -58,22 +58,25 @@ } .admonition-content-copy { - color: var(--text-faint); - cursor: pointer; - opacity: 0; - position: absolute; - right: 0px; - top: 0; - transition: 0.3s all ease-in; + color: var(--text-faint); + cursor: pointer; + opacity: 0; + position: absolute; + right: 0px; + top: 0; + transition: 0.3s opacity ease-in; } .admonition-content-copy:hover { - color: var(--text-normal); + color: var(--text-normal); } -.admonition-content:hover > .admonition-content-copy, +.admonition:hover .admonition-content-copy, .admonition-content-copy:hover { - opacity: 1; + opacity: 1; +} +.admonition-title:hover + .admonition-content .admonition-content-copy { + opacity: 0; } details.admonition:not([open]) { diff --git a/versions.json b/versions.json index 30b8cfe..54d1d55 100644 --- a/versions.json +++ b/versions.json @@ -6,5 +6,5 @@ "3.2.2": "0.11.0", "3.3.4": "0.11.0", "4.0.1": "0.11.0", - "4.1.5": "0.11.0" + "4.1.6": "0.11.0" } \ No newline at end of file