Skip to content

Commit

Permalink
feat: add style & font
Browse files Browse the repository at this point in the history
  • Loading branch information
k4a-l committed Oct 31, 2022
1 parent d8013cc commit 76f250f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default class Dirtreeist extends Plugin {
(source, el, ctx) => {
const result = dirtreeist(source, this.settings);
const div = el.createEl("div");
div.style.whiteSpace = "pre";

div.innerText = result.reduce((prev, dirtree, index) => {
return prev + (index !== 0 ? "\n\n" : "") + dirtree;
Expand Down
17 changes: 9 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.block-language-dirtree {
font-family: "MS ゴシック", Osaka-等幅, monospace;
word-spacing: normal;
white-space: pre;
color: var(--code-normal);
background-color: var(--code-background);
padding: var(--size-4-4);
font-size: var(--code-size);
}

0 comments on commit 76f250f

Please sign in to comment.