From 2eb04216b20bec8221dd846dfb974c0597fd6f11 Mon Sep 17 00:00:00 2001 From: valentine195 <38669521+valentine195@users.noreply.github.com> Date: Wed, 28 Apr 2021 08:20:45 -0400 Subject: [PATCH] 3.2.1 - Properly center admonition icon (ref #14 ) --- manifest.json | 2 +- package.json | 2 +- src/main.css | 6 ++---- tsconfig.json | 2 +- versions.json | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index 29da3d0..b30d20e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-admonition", "name": "Admonition", - "version": "3.2.0", + "version": "3.2.1", "minAppVersion": "0.11.0", "description": "Admonition block-styled content for Obsidian.md", "author": "Jeremy Valentine", diff --git a/package.json b/package.json index 74f1aeb..3f4a6d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-admonition", - "version": "3.2.0", + "version": "3.2.1", "description": "Admonition block-styled content for Obsidian.md", "main": "main.js", "scripts": { diff --git a/src/main.css b/src/main.css index 5a90923..10cbbaf 100644 --- a/src/main.css +++ b/src/main.css @@ -37,12 +37,10 @@ .admonition-title-icon { position: absolute; left: 0.6rem; + top: 50%; + transform: translateY(-50%); width: 1.25rem; - height: 1.25rem; color: rgb(var(--admonition-color)); - display: flex; - justify-content: center; - align-items: center; } .admonition-title.no-title { diff --git a/tsconfig.json b/tsconfig.json index 302dc10..a0e93ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,5 +12,5 @@ "importHelpers": true, "lib": ["dom", "es5", "scripthost", "es2019"] }, - "include": ["**/*.ts"] + "include": ["**/*.ts", "src/codemirror.js"] } diff --git a/versions.json b/versions.json index faf7a08..f379c77 100644 --- a/versions.json +++ b/versions.json @@ -3,5 +3,5 @@ "1.0.1": "0.11.0", "2.0.1": "0.11.0", "3.1.2": "0.11.0", - "3.2.0": "0.11.0" + "3.2.1": "0.11.0" }