generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored code to clean up CSS selectors
- Loading branch information
1 parent
6d5007a
commit 3c61645
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,4 +131,4 @@ class StilleSettingTab extends PluginSettingTab { | |
this.plugin.refresh(); | ||
})); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
body.StilleStyle .view-content div:not(.CodeMirror-activeline) > .CodeMirror-line { | ||
/* Any line that isn't focused on, reduce opacity */ | ||
body.StilleStyle .cm-editor.cm-focused .cm-line:not(.cm-active) { | ||
opacity: var(--unfocusedLevel); | ||
} | ||
|
||
body.StilleStyle .cm-editor.cm-focused .cm-line:not(.cm-active) { | ||
/* If the editor does not have focus, then reduce opacity of contents of editor */ | ||
body.StilleStyle .cm-editor:not(.cm-focused) .cm-line{ | ||
opacity: var(--unfocusedLevel); | ||
} | ||
|
||
body.StilleStyle .view-content .CodeMirror-activeline div { | ||
opacity: 1.0; | ||
body.StilleStyle .cm-editor .cm-active { | ||
opacity: 1.0; | ||
} | ||
|
||
body.StilleStyle .cm-editor:not(.cm-focused) { | ||
opacity: var(--unfocusedLevel); | ||
body.StilleStyle.is-mobile .cm-editor .cm-active { | ||
opacity: 1.0; | ||
} |