From e7f1e9cd712640806bac6f8355771e51ad555b79 Mon Sep 17 00:00:00 2001 From: Andrew Malikov Date: Sun, 20 Nov 2022 00:10:45 +0400 Subject: [PATCH] make code block's background transparent and wrap with a border --- .github/workflows/release.yml | 2 +- main.ts | 17 +++++++++++++++++ manifest.json | 4 ++-- package.json | 2 +- versions.json | 5 +++-- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2ed28a..0fb4645 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: run: pnpm install - name: Ensure version - run: pnpm version + run: pnpm run version - name: Build run: pnpm build diff --git a/main.ts b/main.ts index 87fb8eb..cdf6204 100644 --- a/main.ts +++ b/main.ts @@ -25,4 +25,21 @@ export const SmoorthTheme = EditorView.theme({ animationTimingFunction: "cubic-bezier(0.85, 0, 0.15, 1) !important", animationIterationCount: "20 !important", }, + + ".HyperMD-codeblock-bg": { + backgroundColor: "transparent !important", + border: "0 solid var(--code-background)", + borderLeftWidth: "0.2em", + borderRightWidth: "0.2em", + }, + + ".HyperMD-codeblock-begin-bg": { + backgroundColor: "transparent !important", + borderTopWidth: "0.2em", + }, + + ".HyperMD-codeblock-end-bg": { + backgroundColor: "transparent !important", + borderBottomWidth: "0.2em", + }, }); diff --git a/manifest.json b/manifest.json index 0b3fa4a..5f162fe 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "smoorth", "name": "Smoorth", - "version": "1.1.0", + "version": "1.2.0", "minAppVersion": "1.0.1", "description": "A smooth and round caret.", "author": "Andrew Malikov", "authorUrl": "https://github.com/VallanDeMorty", "isDesktopOnly": true -} +} \ No newline at end of file diff --git a/package.json b/package.json index eeaeb18..ac0725a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smoorth", - "version": "1.1.0", + "version": "1.2.0", "description": "A smooth and round caret for Obsidian", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 8312519..6fe57d9 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,4 @@ { - "1.1.0": "1.0.1" -} + "1.1.0": "1.0.1", + "1.2.0": "1.0.1" +} \ No newline at end of file