Skip to content

Commit

Permalink
make code block's background transparent and wrap with a border
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-malikov committed Nov 19, 2022
1 parent 5146728 commit e7f1e9c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pnpm install

- name: Ensure version
run: pnpm version
run: pnpm run version

- name: Build
run: pnpm build
Expand Down
17 changes: 17 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
});
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"1.1.0": "1.0.1"
}
"1.1.0": "1.0.1",
"1.2.0": "1.0.1"
}

0 comments on commit e7f1e9c

Please sign in to comment.