Skip to content

Commit

Permalink
fix: remove LF in question mark rule
Browse files Browse the repository at this point in the history
  • Loading branch information
licl committed May 5, 2024
1 parent 9ae0762 commit 3bfd36b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rules/question-mark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ import type { Rule } from '@unocss/core'
/**
* Used for debugging, only avaliable in development mode.
*
* @param _
* @param root0
* @param root0.constructCSS
* @param root0.generator
* @example `?` / `where`
*/
export const questionMark: Rule[] = [
[
/^(where|\?)$/,
(_, { constructCSS, generator }) => {
if (generator.userConfig.envMode === 'dev')
return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}\n${constructCSS({ animation: '__un_qm 0.5s ease-in-out alternate infinite' })}`
return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${constructCSS({ animation: '__un_qm 0.5s ease-in-out alternate infinite' })}`
},
],
]

0 comments on commit 3bfd36b

Please sign in to comment.