Skip to content

Commit

Permalink
chore(stylelint): fix errors
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>

[skip ci]
  • Loading branch information
ShGKme authored and backportbot[bot] committed Jan 22, 2025
1 parent a897988 commit ce61f71
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/NcRichText/richtext.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Styles are extracted to extract scss to dist folder, too.
*/

@import './highlight.scss';
@use './highlight.scss';

li.task-list-item > ul,
li.task-list-item > ol,
Expand Down Expand Up @@ -220,26 +220,28 @@ li.task-list-item > pre {
}

/**
* Highlight code syntax in code blocks
*/
* Highlight code syntax in code blocks
*/

/* stylelint-disable-next-line no-duplicate-selectors */
.rich-text--wrapper-markdown {
@include highlight-rules;
@include highlight.highlight-rules;
}

@media (prefers-color-scheme: light) {
.rich-text--wrapper-markdown {
@include highlight-light-colors;
@include highlight.highlight-light-colors;
}
[data-theme-dark] .rich-text--wrapper-markdown {
@include highlight-dark-colors;
@include highlight.highlight-dark-colors;
}
}

@media (prefers-color-scheme: dark) {
.rich-text--wrapper-markdown {
@include highlight-dark-colors;
@include highlight.highlight-dark-colors;
}
[data-theme-light] .rich-text--wrapper-markdown {
@include highlight-light-colors;
@include highlight.highlight-light-colors;
}
}

0 comments on commit ce61f71

Please sign in to comment.