Skip to content

Commit

Permalink
Fix opacity for Obsidian 1.x. Improve Super Focus Mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan McQuen <[email protected]>
  • Loading branch information
ryanpcmcquen committed Oct 31, 2022
1 parent 24fb58a commit 71fad0b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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-focus-mode",
"name": "Focus Mode",
"version": "1.10.2",
"version": "1.11.0",
"minAppVersion": "0.9.12",
"description": "Add Focus Mode to Obsidian.",
"author": "ryanpcmcquen",
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-focus-mode",
"version": "1.10.2",
"version": "1.11.0",
"description": "Add Focus Mode to Obsidian.",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.focus-mode .cm-s-obsidian .cm-line:not(.cm-active),
.focus-mode .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line {
opacity: 0.85;
filter: saturate(0.85);
Expand All @@ -13,7 +14,8 @@
.workspace-split.maximised
.workspace-leaf.mod-active
~ .workspace-split,
.focus-mode.plugin-tabs .stayopen .view-header {
.focus-mode.plugin-tabs .stayopen .view-header,
.super-focus-mode .workspace-tabs:not(.mod-active) {
display: none;
}

Expand Down
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.11.0": "0.10.9",
"1.10.2": "0.10.9",
"1.10.1": "0.10.9",
"1.10.0": "0.10.9",
Expand Down

0 comments on commit 71fad0b

Please sign in to comment.