From b2a118abad161102e7b44e2bdf78ba30009f6dcb Mon Sep 17 00:00:00 2001 From: shwetha729 Date: Sun, 27 Aug 2023 17:53:13 -0400 Subject: [PATCH] Update css file --- src/site/styles/custom-style.scss | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/site/styles/custom-style.scss b/src/site/styles/custom-style.scss index a7291f3..a7cb45e 100644 --- a/src/site/styles/custom-style.scss +++ b/src/site/styles/custom-style.scss @@ -1,9 +1,6 @@ body { - --note-icon-1: url(/img/icons8-star-wars.svg); - --note-icon-2: url(/img/icons8-r2-d2.svg); - --note-icon-3: url(/img/icons8-jedi-order.svg); - --note-icon-fallback: url(/img/default-note-icon.svg); + /*** ADD YOUR CUSTOM STYLIING HERE. (INSIDE THE body {...} section.) IT WILL TAKE PRECEDENCE OVER THE STYLING IN THE STYLE.CSS FILE. @@ -16,5 +13,25 @@ body { // color: black; // } +body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon="r2"]::before, +body.filetree-note-icon .filename[data-note-icon="r2"]::before, +body.links-note-icon .internal-link[data-note-icon="r2"]::before, +body.backlinks-note-icon .backlink[data-note-icon="r2"]::before { + background-image: url(/img/icons8-r2-d2.svg); +} + +body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon="jedi"]::before, +body.filetree-note-icon .filename[data-note-icon="jedi"]::before, +body.links-note-icon .internal-link[data-note-icon="jedi"]::before, +body.backlinks-note-icon .backlink[data-note-icon="jedi"]::before { + background-image: url(/img/icons8-jedi-order.svg); +} + +body.title-note-icon .cm-s-obsidian > header > h1[data-note-icon="starwars"]::before, +body.filetree-note-icon .filename[data-note-icon="starwars"]::before, +body.links-note-icon .internal-link[data-note-icon="starwars"]::before, +body.backlinks-note-icon .backlink[data-note-icon="starwars"]::before { + background-image: url(/img/icons8-star-wars.svg); +} }