Skip to content

Commit

Permalink
When editor loses focus, all text should be opaque
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellee committed Feb 10, 2022
1 parent 3abdb4d commit 6d5007a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Michael Lee
Copyright (c) 2021-2022 Michael Lee

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-stille",
"name": "Stille",
"version": "1.0.2",
"version": "1.0.3",
"minAppVersion": "0.9.12",
"description": "Focus on your writing, a section at a time.",
"author": "Michael Lee",
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-stille",
"version": "1.0.2",
"version": "1.0.3",
"description": "An Obsidian plugin that helps you focus on your writing, a section at a time.",
"main": "main.js",
"scripts": {
Expand Down
8 changes: 6 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
body.StilleStyle .view-content div:not(.CodeMirror-activeline) > .CodeMirror-line {
opacity: var(--unfocusedLevel);
opacity: var(--unfocusedLevel);
}

body.StilleStyle .cm-editor.cm-focused .cm-line:not(.cm-active) {
opacity: var(--unfocusedLevel);
opacity: var(--unfocusedLevel);
}

body.StilleStyle .view-content .CodeMirror-activeline div {
opacity: 1.0;
}

body.StilleStyle .cm-editor:not(.cm-focused) {
opacity: var(--unfocusedLevel);
}
1 change: 1 addition & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.0.3": "0.9.12",
"1.0.2": "0.9.12",
"1.0.1": "0.9.12",
"1.0.0": "0.9.12"
Expand Down

0 comments on commit 6d5007a

Please sign in to comment.