jekyll-obsidian 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.standard.yml +3 -0
- data/CHANGELOG.md +49 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE +21 -0
- data/README.md +97 -0
- data/Rakefile +10 -0
- data/assets/css/obsidian.scss +103 -0
- data/assets/css/partials/_canvas.scss +62 -0
- data/assets/css/partials/_explorer.scss +128 -0
- data/assets/css/partials/_fileread.scss +111 -0
- data/assets/css/partials/_loading.scss +28 -0
- data/assets/css/partials/_modals.scss +206 -0
- data/assets/css/partials/_note.scss +113 -0
- data/assets/css/partials/_sidebar.scss +30 -0
- data/assets/includes/canvas.html +403 -0
- data/assets/includes/explorer.html +202 -0
- data/assets/includes/fileread.html +338 -0
- data/assets/includes/modals.html +277 -0
- data/assets/includes/note.html +175 -0
- data/assets/includes/sidebar.html +106 -0
- data/assets/layouts/obsidian.html +294 -0
- data/lib/jekyll/obsidian/version.rb +7 -0
- data/lib/jekyll/obsidian.rb +250 -0
- data/lib/jekyll/remote.rb +36 -0
- data/lib/jekyll-obsidian.rb +3 -0
- data/screenshots/jekyll-obsidian.png +0 -0
- data/sig/jekyll/obsidian.rbs +6 -0
- metadata +103 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d080f763648a7d4d15eb6b5b65d41dc7e22c4f4030366fd7f11ab75a52b421ab
|
4
|
+
data.tar.gz: 4ef6b231668c6442cd2d36d7c595fe507f9a029ecd7767fe2997e6231416bb22
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fc15afa41dec63f364dba5b3657ec499c8fbc95425964a71a781cad7305f4dfbe0d05923d0e42d94caf92e6127229933ca9cdd9290983351172a60c1fea2df41
|
7
|
+
data.tar.gz: '084533f538cb36977c5e4c24bc0bf988a9c736031a862d6c8a2829c5d88784e08506328d984b26279dddebbd89bcaabb98d6bb1fe3467533f37409f0cc03f920'
|
data/.rspec
ADDED
data/.standard.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
## [Unreleased]
|
2
|
+
|
3
|
+
## [1.1.2] - 2024-09-13
|
4
|
+
- Fixed duplicate linked mentions
|
5
|
+
- Added text color to linked mention
|
6
|
+
- Improved mobile explorer dock touch events
|
7
|
+
|
8
|
+
## [1.1.1] - 2024-09-12
|
9
|
+
- Removed jekyll hook on post write
|
10
|
+
|
11
|
+
## [1.1.0] - 2024-09-12
|
12
|
+
- Fixed parsing of backlinks from renamed .md files
|
13
|
+
|
14
|
+
## [1.0.10] - 2024-09-12
|
15
|
+
- Fixed parsing of generated JSON files
|
16
|
+
|
17
|
+
## [1.0.9] - 2024-09-12
|
18
|
+
- Site data generated as json files saved into _data
|
19
|
+
|
20
|
+
## [1.0.8] - 2024-09-12
|
21
|
+
- Renamed .md to .mdnote so jekyll do not generate pages from it
|
22
|
+
|
23
|
+
## [1.0.6] - 2024-09-12
|
24
|
+
- Moved EXPLORER and FILE_TREE to explorer.html
|
25
|
+
|
26
|
+
## [1.0.5] - 2024-09-12
|
27
|
+
- Removed VAULTPATH and VAULT_FILES from global constants
|
28
|
+
|
29
|
+
## [1.0.4] - 2024-09-12
|
30
|
+
- Moved const initialization outside of head with defer attribte (again)
|
31
|
+
|
32
|
+
## [1.0.3] - 2024-09-12
|
33
|
+
- Fixed loading-spinner style
|
34
|
+
- Updated README
|
35
|
+
|
36
|
+
## [1.0.2] - 2024-09-12
|
37
|
+
- Turned off overwriting for generated html files
|
38
|
+
- Moved const variable declarators to head
|
39
|
+
|
40
|
+
## [1.0.1] - 2024-09-12
|
41
|
+
- Added `defer` attribute to script body responsible for initialization of constant variables
|
42
|
+
|
43
|
+
|
44
|
+
## [1.0.0] - 2024-09-11
|
45
|
+
- Initial release
|
46
|
+
|
47
|
+
|
48
|
+
## [0.1.0] - 2024-05-17
|
49
|
+
- Project started
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at khiemgluong@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 Khiem Luong
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
# jekyll-obsidian
|
2
|
+
|
3
|
+
**View <a href="https://obsidian.md/" target="_blank">Obsidian</a> vaults, on your <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> website.**
|
4
|
+
|
5
|
+

|
6
|
+
|
7
|
+
jekyll-obsidian is designed to emulate as much of Obsidian's original look and feel, allowing your Obsidian vaults to be hosted on a static Jekyll site.
|
8
|
+
|
9
|
+
It should work out of the box if you use the default `minima` theme. Otherwise, you can modify the generated obsidian.scss and its partials. These .scss files are not overwritten when the site is served, and if you want to reset the styles, simply delete that modified .scss file and the gem will regenerate the default one.
|
10
|
+
|
11
|
+
Thank you to the developers of <a href="https://github.com/cure53/DOMPurify" target="_blank">DOMPurify</a>, <a href="https://github.com/js-cookie/js-cookie" target="_blank">js-cookie</a> (for saving color scheme), <a href="https://github.com/markdown-it/markdown-it" target="_blank">markdown-it</a> (for parsing `.md` notes), and <a href="https://github.com/jonobr1/two.js" target="_blank">two.js</a> (for drawing `.canvas` node edges).
|
12
|
+
|
13
|
+
# Features
|
14
|
+
This Jekyll plugin has all the core features of Obsidian, including:
|
15
|
+
- Backlinks
|
16
|
+
- Embeds
|
17
|
+
- Callouts
|
18
|
+
- Linked mentions
|
19
|
+
- Canvas
|
20
|
+
- File search
|
21
|
+
- Color schemes
|
22
|
+
- Mobile support
|
23
|
+
|
24
|
+
Some creative liberties were taken. For example, clicking on an image file will open a modal displaying it instead.
|
25
|
+
|
26
|
+
## Installation
|
27
|
+
|
28
|
+
Install the gem and add to the application's Gemfile by executing:
|
29
|
+
|
30
|
+
$ bundle add jekyll-obsidian
|
31
|
+
|
32
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
33
|
+
|
34
|
+
$ gem install jekyll-obsidian
|
35
|
+
|
36
|
+
## Setup
|
37
|
+
|
38
|
+
1. Add the following to your site's `_config.yml`:
|
39
|
+
```yml
|
40
|
+
plugins:
|
41
|
+
- jekyll-obsidian
|
42
|
+
```
|
43
|
+
2. Drop your Obsidian vault folder into your site, make sure to remove the .git folder and .gitignore file
|
44
|
+
3. Create a .markdown front matter file using the generated layout
|
45
|
+
```yml
|
46
|
+
---
|
47
|
+
layout: obsidian
|
48
|
+
title: Your Obsidian Vault
|
49
|
+
permalink: /your-obsidian-vault/
|
50
|
+
---
|
51
|
+
```
|
52
|
+
4. Add `gem 'jekyll-obsidian'` into your site's Gemfile, preferably within `group :jekyll_plugins`
|
53
|
+
```ruby
|
54
|
+
group :jekyll_plugins do
|
55
|
+
gem 'jekyll-obsidian'
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
5. In your `_config.yml`, set `obsidian_vault` to the root of the Obsidian vault
|
60
|
+
```ruby
|
61
|
+
obsidian_vault: "Your Obsidian Vault"
|
62
|
+
obsidian_vault: "vaults/Another Obsidian Vault"
|
63
|
+
```
|
64
|
+
6. Run `bundle install` or `bundle update jekyll-obsidian`, if you already installed it
|
65
|
+
|
66
|
+
7. Run `bundle exec jekyll build` to generate the necessary `.css` and `.json` files, and convert all your `.md` notes to `.mdnote`.
|
67
|
+
|
68
|
+
8. Run `bundle exec jekyll serve`, you should now see your Obsidian page at your given permalink
|
69
|
+
|
70
|
+
## Options
|
71
|
+
`obsidian_homepage`
|
72
|
+
Sets the homepage for your obsidian vault
|
73
|
+
```ruby
|
74
|
+
obsidian_homepage: "homepage.mdnote"
|
75
|
+
obsidian_homepage: "homecanvas.canvas"
|
76
|
+
```
|
77
|
+
|
78
|
+
`obsidian_backlinks`
|
79
|
+
Enables or disables backlinks, defaults to true
|
80
|
+
> obsidian_backlinks: false
|
81
|
+
|
82
|
+
`obsidian_embeds`
|
83
|
+
Enables or disables embeds, defaults to true
|
84
|
+
> obsidian_embeds: false
|
85
|
+
|
86
|
+
|
87
|
+
## Contributing
|
88
|
+
|
89
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/khiemgluong/jekyll-obsidian. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/jekyll-obsidian/blob/main/CODE_OF_CONDUCT.md).
|
90
|
+
|
91
|
+
## License
|
92
|
+
|
93
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
94
|
+
|
95
|
+
## Code of Conduct
|
96
|
+
|
97
|
+
Everyone interacting in the jekyll-obsidian project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/khiemgluong/jekyll-obsidian/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
#obsidian {
|
5
|
+
--bg: light-dark(white, #1e1e1e);
|
6
|
+
--color-border: light-dark(#e0e0e0, #404040);
|
7
|
+
--color-button: light-dark(#606060, #a0a0a0);
|
8
|
+
--bg-tinted: light-dark(#f6f6f6, #181818);
|
9
|
+
--color-accent: #5f6ce9;
|
10
|
+
--color-accent-hover: #7a85eb;
|
11
|
+
--color-text: light-dark(#363636, #dadada);
|
12
|
+
--linked-mention-color: light-dark(#5f5f5f, #b0b0b0);
|
13
|
+
--linked-mention-hover: light-dark(#eaeaea, #333);
|
14
|
+
--explorer-button-hover: light-dark(#e4e4e4, #262626);
|
15
|
+
height: calc(100vh - 62px);//adjust the subtractor based on your header height
|
16
|
+
display: inherit;
|
17
|
+
width: 100%;
|
18
|
+
color: var(--color-text);
|
19
|
+
|
20
|
+
table {
|
21
|
+
th {
|
22
|
+
background-color: light-dark(#f0f0f0, #121212);
|
23
|
+
color: var(--color-text);
|
24
|
+
}
|
25
|
+
|
26
|
+
tr {
|
27
|
+
&:nth-child(2n) {
|
28
|
+
background-color: light-dark(#f7f7f7, #161616);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
li {
|
34
|
+
&::before {
|
35
|
+
color: light-dark(#ababab, #656565);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
>* {
|
40
|
+
height: initial;
|
41
|
+
}
|
42
|
+
|
43
|
+
#sidebar {
|
44
|
+
display: flex;
|
45
|
+
width: 2rem;
|
46
|
+
flex-direction: column;
|
47
|
+
align-items: flex-start;
|
48
|
+
background-color: var(--bg-tinted);
|
49
|
+
border-right: 1px solid var(--color-border);
|
50
|
+
}
|
51
|
+
|
52
|
+
#explorer {
|
53
|
+
overflow-y: auto;
|
54
|
+
max-height: 100vh;
|
55
|
+
width: 18%;
|
56
|
+
background-color: var(--bg-tinted);
|
57
|
+
overscroll-behavior: none;
|
58
|
+
}
|
59
|
+
|
60
|
+
#divider {
|
61
|
+
width: 3px;
|
62
|
+
border-left: 1px solid var(--color-border);
|
63
|
+
cursor: ew-resize;
|
64
|
+
position: relative;
|
65
|
+
transition: background-color 0.4s ease;
|
66
|
+
background-color: var(--color-border);
|
67
|
+
|
68
|
+
&:hover {
|
69
|
+
background-color: var(--color-accent);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
#fileread {
|
74
|
+
flex: 1;
|
75
|
+
overflow-y: auto;
|
76
|
+
max-height: 100vh;
|
77
|
+
display: flex;
|
78
|
+
flex-direction: column;
|
79
|
+
align-items: center;
|
80
|
+
background-color: var(--bg);
|
81
|
+
position: relative;
|
82
|
+
}
|
83
|
+
|
84
|
+
&:has(input[name="color-scheme"][value="system"]:checked) {
|
85
|
+
color-scheme: light dark;
|
86
|
+
}
|
87
|
+
|
88
|
+
&:has(input[name="color-scheme"][value="light"]:checked) {
|
89
|
+
color-scheme: light;
|
90
|
+
}
|
91
|
+
|
92
|
+
&:has(input[name="color-scheme"][value="dark"]:checked) {
|
93
|
+
color-scheme: dark;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
@import "obsidian/loading";
|
98
|
+
@import "obsidian/modals";
|
99
|
+
@import "obsidian/canvas";
|
100
|
+
@import "obsidian/explorer";
|
101
|
+
@import "obsidian/fileread";
|
102
|
+
@import "obsidian/note";
|
103
|
+
@import "obsidian/sidebar";
|
@@ -0,0 +1,62 @@
|
|
1
|
+
#obsidian {
|
2
|
+
#fileread {
|
3
|
+
#canvas {
|
4
|
+
--canvas-backdrop: light-dark(rgba(200, 200, 200, 0.1),
|
5
|
+
rgba(100, 100, 100, 0.1));
|
6
|
+
position: absolute;
|
7
|
+
height: 10000px;
|
8
|
+
width: 10000px;
|
9
|
+
left: 0;
|
10
|
+
top: 0;
|
11
|
+
/* https://codepen.io/mapsandapps/pen/pbzooY */
|
12
|
+
background-color: var(--bg);
|
13
|
+
background-image: radial-gradient(rgb(108, 110, 112) 1%, transparent 0);
|
14
|
+
background-size: 15px 15px;
|
15
|
+
|
16
|
+
#canvas-content {
|
17
|
+
width: 100%;
|
18
|
+
height: 100%;
|
19
|
+
transform-origin: center center;
|
20
|
+
z-index: 5;
|
21
|
+
}
|
22
|
+
|
23
|
+
svg {
|
24
|
+
position: absolute;
|
25
|
+
z-index: 1;
|
26
|
+
}
|
27
|
+
|
28
|
+
.card {
|
29
|
+
box-sizing: border-box;
|
30
|
+
padding: .8rem;
|
31
|
+
padding-bottom: 0;
|
32
|
+
border-radius: .5rem;
|
33
|
+
border: 2px solid var(--color-border);
|
34
|
+
overflow: auto;
|
35
|
+
|
36
|
+
&.group {
|
37
|
+
background-color: var(--canvas-backdrop);
|
38
|
+
overflow: visible;
|
39
|
+
|
40
|
+
p {
|
41
|
+
position: relative;
|
42
|
+
top: -64px;
|
43
|
+
left: -16px;
|
44
|
+
font-size: x-large;
|
45
|
+
font-weight: bold;
|
46
|
+
width: max-content;
|
47
|
+
padding: 4px 12px;
|
48
|
+
color: var(--color-text);
|
49
|
+
background-color: var(--bg-tinted);
|
50
|
+
border-radius: 0.8rem;
|
51
|
+
border: 2px solid var(--color-border);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&.text,
|
56
|
+
&.file {
|
57
|
+
background-color: var(--bg);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
#obsidian {
|
2
|
+
.hide-scrollbar {
|
3
|
+
-ms-overflow-style: none;
|
4
|
+
scrollbar-width: none;
|
5
|
+
|
6
|
+
&::-webkit-scrollbar {
|
7
|
+
display: none;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
#vault-name {
|
12
|
+
margin-bottom: 3px;
|
13
|
+
padding: 2px 0;
|
14
|
+
font-weight: 500;
|
15
|
+
font-size: 1rem;
|
16
|
+
display: flex;
|
17
|
+
justify-content: space-between;
|
18
|
+
border-bottom: 1px solid var(--color-border);
|
19
|
+
position: sticky;
|
20
|
+
top: 0;
|
21
|
+
z-index: 5;
|
22
|
+
color: var(--color-text);
|
23
|
+
background-color: var(--bg-tinted);
|
24
|
+
|
25
|
+
#text {
|
26
|
+
padding-left: 4px;
|
27
|
+
white-space: nowrap;
|
28
|
+
overflow: hidden;
|
29
|
+
text-overflow: ellipsis;
|
30
|
+
}
|
31
|
+
|
32
|
+
#collapseExpand {
|
33
|
+
padding-right: 5px;
|
34
|
+
padding-top: 2px;
|
35
|
+
border: none;
|
36
|
+
background-color: transparent;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
#file-tree {
|
41
|
+
position: relative;
|
42
|
+
&::-webkit-scrollbar {
|
43
|
+
display: none;
|
44
|
+
}
|
45
|
+
|
46
|
+
ul {
|
47
|
+
list-style-type: none;
|
48
|
+
padding-left: 0;
|
49
|
+
margin-left: 0;
|
50
|
+
|
51
|
+
button {
|
52
|
+
padding-left: 0;
|
53
|
+
vertical-align: middle;
|
54
|
+
user-select: none;
|
55
|
+
background: none;
|
56
|
+
border: none;
|
57
|
+
padding: 2px 5px;
|
58
|
+
margin: 0;
|
59
|
+
outline: none;
|
60
|
+
box-shadow: none;
|
61
|
+
font: inherit;
|
62
|
+
font-size: 0.9rem;
|
63
|
+
color: var(--color-button);
|
64
|
+
gap: 4px;
|
65
|
+
white-space: nowrap;
|
66
|
+
overflow: hidden;
|
67
|
+
text-overflow: ellipsis;
|
68
|
+
max-width: 100%;
|
69
|
+
|
70
|
+
svg {
|
71
|
+
vertical-align: middle;
|
72
|
+
margin-right: 4px;
|
73
|
+
width: 100%;
|
74
|
+
height: 100%;
|
75
|
+
max-width: 16px;
|
76
|
+
max-height: 16px;
|
77
|
+
}
|
78
|
+
|
79
|
+
span {
|
80
|
+
vertical-align: middle;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
ul {
|
85
|
+
li {
|
86
|
+
&.file {
|
87
|
+
padding-left: 12px;
|
88
|
+
padding-top: 2px;
|
89
|
+
|
90
|
+
&:not(:last-child) {
|
91
|
+
border-left: 1px solid var(--color-border);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
li {
|
98
|
+
&.file {
|
99
|
+
margin-left: 12px;
|
100
|
+
padding-bottom: 2px;
|
101
|
+
|
102
|
+
&:hover {
|
103
|
+
background-color: var(--explorer-button-hover);
|
104
|
+
font-weight: bold;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
&.dir button:hover {
|
109
|
+
background-color: var(--explorer-button-hover);
|
110
|
+
font-weight: bold;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
>ul>li.file {
|
116
|
+
margin-left: 14px;
|
117
|
+
}
|
118
|
+
|
119
|
+
ul li,
|
120
|
+
ul ul li {
|
121
|
+
padding-bottom: 2px;
|
122
|
+
}
|
123
|
+
|
124
|
+
ul ul li {
|
125
|
+
padding-left: 12px;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
#obsidian {
|
2
|
+
#fileread {
|
3
|
+
button {
|
4
|
+
border: none;
|
5
|
+
background-color: transparent;
|
6
|
+
}
|
7
|
+
|
8
|
+
a:hover{
|
9
|
+
color: var(--color-text);
|
10
|
+
}
|
11
|
+
|
12
|
+
#breadcrumb {
|
13
|
+
list-style: none;
|
14
|
+
padding: 0;
|
15
|
+
z-index: 10;
|
16
|
+
color: var(--color-text);
|
17
|
+
}
|
18
|
+
|
19
|
+
ul#breadcrumb {
|
20
|
+
padding: 6px 0 3px 0;
|
21
|
+
margin: 0;
|
22
|
+
list-style: none;
|
23
|
+
position: sticky;
|
24
|
+
top: 0;
|
25
|
+
left: 0;
|
26
|
+
background-color: var(--bg);
|
27
|
+
width: 100%;
|
28
|
+
text-align: center;
|
29
|
+
|
30
|
+
li {
|
31
|
+
display: inline;
|
32
|
+
font-size: medium;
|
33
|
+
}
|
34
|
+
|
35
|
+
button {
|
36
|
+
display: inline;
|
37
|
+
font-size: medium;
|
38
|
+
color: var(--color-button);
|
39
|
+
|
40
|
+
&:hover {
|
41
|
+
color: var(--color-accent);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
li+li {
|
46
|
+
&:before {
|
47
|
+
padding: 5px;
|
48
|
+
color: var(--color-text);
|
49
|
+
content: "/\00a0";
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
#note-content {
|
55
|
+
.url-link {
|
56
|
+
display: flex;
|
57
|
+
font-size: large;
|
58
|
+
color: var(--color-button);
|
59
|
+
padding-bottom: 0.5rem;
|
60
|
+
}
|
61
|
+
|
62
|
+
blockquote {
|
63
|
+
svg {
|
64
|
+
vertical-align: text-bottom;
|
65
|
+
}
|
66
|
+
|
67
|
+
.svg_Warning,
|
68
|
+
.svg_Question {
|
69
|
+
color: #ed7908;
|
70
|
+
}
|
71
|
+
|
72
|
+
.svg_Info,
|
73
|
+
.svg_Todo,
|
74
|
+
.svg_Note {
|
75
|
+
color: #086ddd;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.backlink {
|
81
|
+
color: var(--color-accent);
|
82
|
+
font-size: inherit;
|
83
|
+
|
84
|
+
&:hover {
|
85
|
+
color: var(--color-accent-hover);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.embed {
|
90
|
+
width: 100%;
|
91
|
+
max-width: 100%;
|
92
|
+
height: auto;
|
93
|
+
display: flex;
|
94
|
+
flex-direction: column;
|
95
|
+
align-items: center;
|
96
|
+
|
97
|
+
audio {
|
98
|
+
width: 80%;
|
99
|
+
}
|
100
|
+
|
101
|
+
p {
|
102
|
+
font-size: small;
|
103
|
+
color: var(--color-button);
|
104
|
+
|
105
|
+
&:hover {
|
106
|
+
color: var(--color-text);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|