generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conditionally add status data attribute to scenes
fixes #221 If a scene has a "status" property, the contents of that property will be stringified and set as a data-scene-status attribute on the scene in the explorer view. This allows for custom styling of scenes for specific statuses, a la ``` [data-scene-status="done"]::before { content: "🎉"; padding: 0 4px 0 0; } ```
- Loading branch information
Showing
5 changed files
with
40 additions
and
16 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
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
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
4 changes: 4 additions & 0 deletions
4
test-longform-vault/.obsidian/snippets/test-status-styling.css
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[data-scene-status="done"]::before { | ||
content: "🎉"; | ||
padding: 0 4px 0 0; | ||
} |
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,5 +1,6 @@ | ||
--- | ||
test: test | ||
status: done | ||
--- | ||
|
||
a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a asda asdsa dasdas dsad asd asdas dasd asd asd asdas das dasd as ads ad ad asdas das das das asasd asd a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a a a a a a a a a a a a aa a a a a a a a aa a a a a a a a aa a a a a a aa a a aa a a aa a asdasd asdas dasdas dasd adasd |