Skip to content

Commit 6d5007a

Browse files
committed
When editor loses focus, all text should be opaque
1 parent 3abdb4d commit 6d5007a

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Michael Lee
3+
Copyright (c) 2021-2022 Michael Lee
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-stille",
33
"name": "Stille",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"minAppVersion": "0.9.12",
66
"description": "Focus on your writing, a section at a time.",
77
"author": "Michael Lee",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-stille",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "An Obsidian plugin that helps you focus on your writing, a section at a time.",
55
"main": "main.js",
66
"scripts": {

styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
body.StilleStyle .view-content div:not(.CodeMirror-activeline) > .CodeMirror-line {
2-
opacity: var(--unfocusedLevel);
2+
opacity: var(--unfocusedLevel);
33
}
44

55
body.StilleStyle .cm-editor.cm-focused .cm-line:not(.cm-active) {
6-
opacity: var(--unfocusedLevel);
6+
opacity: var(--unfocusedLevel);
77
}
88

99
body.StilleStyle .view-content .CodeMirror-activeline div {
1010
opacity: 1.0;
1111
}
12+
13+
body.StilleStyle .cm-editor:not(.cm-focused) {
14+
opacity: var(--unfocusedLevel);
15+
}

versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"1.0.3": "0.9.12",
23
"1.0.2": "0.9.12",
34
"1.0.1": "0.9.12",
45
"1.0.0": "0.9.12"

0 commit comments

Comments
 (0)