Skip to content

Commit

Permalink
Added background in reading view, updated to 1.2.0 and synced lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolello-dev committed Jan 6, 2024
1 parent 2aa32fa commit f512416
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "background-image",
"name": "Background Image",
"version": "1.1.0",
"version": "1.2.0",
"minAppVersion": "0.15.0",
"description": "This allows you to specify a remote URL as the background image, and a few settings to tweak the experience.",
"author": "shmolf",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-editor-background",
"version": "1.1.0",
"version": "1.2.0",
"description": "This allows you to specify a remote URL as the background image, and an opacity percentage for the background image.",
"main": "main.js",
"scripts": {
Expand Down
26 changes: 14 additions & 12 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
.markdown-reading-view:before,
.cm-editor:before {
content: '';
background-blend-mode: overlay;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
width: 100%;
height: 100%;
position: absolute;
background-image: var(--obsidian-editor-background-image);
opacity: var(--obsidian-editor-background-opacity);
filter: var(--obsidian-editor-background-bluriness);
content: "";
background-blend-mode: overlay;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
width: 100%;
height: 100%;
position: absolute;
background-image: var(--obsidian-editor-background-image);
opacity: var(--obsidian-editor-background-opacity);
filter: var(--obsidian-editor-background-bluriness);
}

.markdown-reading-view,
.cm-editor .cm-contentContainer {
background: var(--obsidian-editor-background-input-contrast);
background: var(--obsidian-editor-background-input-contrast);
}

0 comments on commit f512416

Please sign in to comment.