Skip to content

Commit

Permalink
Merge pull request #6418 from nextcloud-libraries/chore/stylelint
Browse files Browse the repository at this point in the history
chore(stylelint): fix scripts to be unix-compatible
  • Loading branch information
susnux authored Jan 22, 2025
2 parents 469e0e8 + 10b5286 commit 81aaec2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"lint:fix": "eslint --ext .js,.vue src --fix",
"test": "TZ=UTC jest --verbose --color",
"test:coverage": "TZ=UTC jest --verbose --coverage --no-cache",
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css",
"stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix",
"stylelint": "stylelint \"src/**/*.vue\" \"src/**/*.scss\" \"src/**/*.css\"",
"stylelint:fix": "stylelint \"src/**/*.vue\" \"src/**/*.scss\" \"src/**/*.css\" --fix",
"styleguide": "vue-styleguidist server",
"styleguide:build": "vue-styleguidist build",
"cypress": "TZ=UTC cypress run --component",
Expand Down
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 81aaec2

Please sign in to comment.