Skip to content

Commit

Permalink
fix: speech bubble live preview - #42
Browse files Browse the repository at this point in the history
  • Loading branch information
AnubisNekhet committed Jan 19, 2023
1 parent 7448452 commit 471efc6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
11 changes: 8 additions & 3 deletions obsidian.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/modules/Base/file-preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
}
/* Font weights */
.markdown-preview-view {
font-weight: var(--anp-font-preview-wt, 400);
font-weight: var(--anp-font-preview-wt, normal);
}
.markdown-source-view {
font-weight: var(--anp-font-editor-wt, 400);
font-weight: var(--anp-font-editor-wt, normal);
}
.is-live-preview {
font-weight: var(--anp-font-live-preview-wt, 400);
font-weight: var(--anp-font-live-preview-wt, normal);
}
15 changes: 15 additions & 0 deletions src/modules/Features/custom-checkboxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,21 @@ Icons were taken from Font Awesome: https://fontawesome.com/
}
}
}
/* Dirty Speech Bubble Fix */
.anp-speech-bubble .HyperMD-task-line {
&[data-task="0"],
&[data-task="1"],
&[data-task="2"],
&[data-task="3"],
&[data-task="4"],
&[data-task="5"],
&[data-task="6"],
&[data-task="7"],
&[data-task="8"],
&[data-task="9"] {
text-indent: 0px !important;
}
}
.anp-speech-bubble [data-task="0"] { background-color: rgba(var(--ctp-red), var(--anp-speech-bubble-opacity)); }
.anp-speech-bubble [data-task="1"] { background-color: rgba(var(--ctp-peach), var(--anp-speech-bubble-opacity)); }
.anp-speech-bubble [data-task="2"] { background-color: rgba(var(--ctp-yellow), var(--anp-speech-bubble-opacity)); }
Expand Down
11 changes: 8 additions & 3 deletions theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 471efc6

Please sign in to comment.