Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/util/cssFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const generateClassnamesListSync = (patterns) => {
const data = fs.readFileSync(file, 'utf-8');
const root = postcss.parse(data);
root.walkRules((rule) => {
const regexp = /\.([^\.\,\s\n]*)/gim;
const regexp = /\.([^\.\,\s\n\:\)]*)/gim;
const matches = [...rule.selector.matchAll(regexp)];
const classnames = matches.map((arr) => arr[1]);
detectedClassnames.push(...classnames);
Expand Down
39 changes: 36 additions & 3 deletions tests/lib/rules/another.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,37 @@
/* Only used for running tests */
.another {
display: block;
/* .custom-carousel li:first-child {
padding-left: 20vw;
} */

:global(.slide:not(.selected)) {
opacity: 0.2;
}

.gallery-snackbar {
@apply w-full;
}

.custom-slide {
height: 70vh;
}

@media (min-width: 768px) {
.custom-carousel li:not(:first-child) {
@apply pl-16;
}

.custom-carousel li:not(:last-child) {
@apply pr-16;
}

.custom-carousel :global(.carousel-root) {
padding: 0 calc(10vw + 16px);
}

.gallery-snackbar {
width: calc(80vw - 32px);
}

.indicator {
margin-left: calc(10vw + 16px);
}
}