Skip to content

Commit

Permalink
4.1.6
Browse files Browse the repository at this point in the history
- Copy button style changes
  • Loading branch information
valentine195 committed May 14, 2021
1 parent 66932c8 commit b310a35
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
23 changes: 13 additions & 10 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit b310a35

Please sign in to comment.