Skip to content

Commit a80e446

Browse files
committed
Clean up code style
1 parent d378b04 commit a80e446

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ module.exports = (opts = {}) => {
139139
selectors: processSelectors(node.selectors, fixedSelector)
140140
})
141141
if (!removeMedia) {
142-
node.selectors = processSelectors(node.selectors, nodeSelector)
142+
node.selectors = processSelectors(
143+
node.selectors,
144+
nodeSelector
145+
)
143146
}
144147
}
145148
} else if (node.type === 'comment') {

index.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ test('transforms complex nested light-dark()', () => {
707707
`.light-dark-function-mix-a {
708708
color: light-dark(color-mix(in oklch, red, light-dark(cyan, rgb(0, 0, 0))), blue);
709709
}`,
710-
`@media (prefers-color-scheme:dark) {
710+
`@media (prefers-color-scheme:dark) {
711711
:where(html:not(.is-light)) .light-dark-function-mix-a {
712712
color: blue
713713
}
@@ -731,7 +731,7 @@ test('removes media using transforms complex nested light-dark()', () => {
731731
`.light-dark-function-mix-a {
732732
color: light-dark(color-mix(in oklch, red, light-dark(cyan, rgb(0, 0, 0))), blue);
733733
}`,
734-
`:where(html.is-dark) .light-dark-function-mix-a {
734+
`:where(html.is-dark) .light-dark-function-mix-a {
735735
color: blue
736736
}
737737
:where(html.is-light) .light-dark-function-mix-a {
@@ -749,8 +749,8 @@ test('removes media with combined queries in the middle - dark scheme', () => {
749749
`@media (width > 0) and (width > 0) {
750750
:where(html.is-dark) a { color: white }
751751
}`,
752-
{ removeMedia: true }
753-
)
752+
{ removeMedia: true }
753+
)
754754
})
755755

756756
test('removes media with combined queries in the middle - light scheme', () => {

0 commit comments

Comments
 (0)