This is a document collecting or different `Obsidian` snippets, how to write, how to use and how to expand
This is a document collecting or different Obsidian
snippets, how to write, how to use and how to expand
obsidian vault
directoryYOUR OBSIDIAN VAULT/.obsidian/
folderYOUR OBSIDIAN VAULT/.obsidian/snippets/
foldercss
files thereSettings
Appearance
Here we have a sequence of snippets for coloring, labeling and make icons. Any way, they help you to mark up differences and organzie your vaults.
Here is the discussion over coloring the navigation bar: https://forum.obsidian.md/t/adding-color-to-obsidian-a-rainbow-of-possibility/12805/11
css code
is here: https://github.com/ZizhengYang/Collection-Obsidian-Snippets/blob/main/Color%20and%20Icon/colored-folders.css
<!-- we can insert a new rule of coloring as below -->
.nav-folder.mod-root>.nav-folder-children>.nav-folder>.nav-folder-title[data-path^="YOUR-FOLDER-STARTING-LETTERS"],
.nav-folder.mod-root>.nav-folder-children>.nav-folder>.nav-folder-title[data-path^="YOUR-FOLDER-STARTING-LETTERS"] + .nav-folder-children{
background-color: var(--FoldF);}
.nav-folder.mod-root>.nav-folder-children>.nav-folder>.nav-folder-title[data-path^="YOUR-FOLDER-NAME"],
.nav-folder.mod-root>.nav-folder-children>.nav-folder>.nav-folder-title[data-path^="YOUR-FOLDER-NAME"] + .nav-folder-children{
background-color: var(--FoldF);}
css code
is here: https://github.com/ZizhengYang/Collection-Obsidian-Snippets/blob/main/Image%20relative/img-centering.css
very simple ~ just look up the code
css code
is here: https://github.com/ZizhengYang/Collection-Obsidian-Snippets/blob/main/Image%20relative/img-shadow-roundedBorder.css
.markdown-preview-view img {
max-width: 100%;
outline: none;
-webkit-filter: drop-shadow(10px 10px 10px rgba(8, 8, 8, 0.5)); /* the setting for the shadow effect */
background-clip: content-box,padding-box;
border-radius: 20px 20px 20px; /* the setting for the border rounding */
}