Skip to content

Commit

Permalink
πŸŽ¨πŸ› Fix style for codeblock vs. all
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Dec 4, 2023
1 parent 9c96a54 commit 9edc6a0
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/styles.scss
Expand Up @@ -92,31 +92,27 @@ body:not(.swcm6-nix-plugin-styles).swcm6-show-blockquote-markers {
}
}
}

body:not(.swcm6-nix-plugin-styles):not(.swcm6-show-all-whitespace).swcm6-show-codeblock-whitespace {
.markdown-source-view.mod-cm6 .cm-line.HyperMD-codeblock {
@include all-whitespace;

.cm-highlightSpace:not(.cm-indent .cm-highlightSpace):not(.cm-trailingSpace .cm-highlightSpace):before {
content: attr(data-display);
}
}
}

body:not(.swcm6-nix-plugin-styles).swcm6-show-all-whitespace {
.markdown-source-view.mod-cm6 .cm-line {
@include all-whitespace;
}
}

body:not(.swcm6-nix-plugin-styles):not(.swcm6-show-all-whitespace):not(.swcm6-show-codeblock-whitespace) {
body:not(.swcm6-nix-plugin-styles):not(.swcm6-show-all-whitespace) {
.markdown-source-view.mod-cm6 .cm-line {
.cm-highlightSpace:not(.cm-indent .cm-highlightSpace):not(.cm-trailingSpace .cm-highlightSpace):before {
content: '';
}
}
}
body:not(.swcm6-nix-plugin-styles):not(.swcm6-show-all-whitespace).swcm6-show-codeblock-whitespace {
.markdown-source-view.mod-cm6 .cm-line.HyperMD-codeblock {
@include all-whitespace;

.cm-highlightSpace:not(.cm-indent .cm-highlightSpace):not(.cm-trailingSpace .cm-highlightSpace):before {
content: attr(data-display);
}
}
}
body:not(.swcm6-nix-plugin-styles).swcm6-outline-list-markers {
.markdown-source-view.mod-cm6 {
.cm-line {
Expand Down

0 comments on commit 9edc6a0

Please sign in to comment.