Skip to content

Commit

Permalink
fix: close #157
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Sep 9, 2024
1 parent 7fe6ec0 commit c5304d4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/rules/constant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const varEmpty = 'var(--un-empty,/*!*/ /*!*/)'
2 changes: 1 addition & 1 deletion src/rules/filters.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CSSValues, Rule, RuleContext } from '@unocss/core'
import { varEmpty } from '../rules'
import { colorableShadows, colorResolver, globalKeywords, h } from '../utils'
import { varEmpty } from './constant'
import type { Theme } from '../theme'

export const filterBase = {
Expand Down
2 changes: 1 addition & 1 deletion src/rules/ring.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CSSObject, Rule, RuleContext } from '@unocss/core'
import { colorResolver, handler as h, isCSSMathFn } from '../utils'
import { varEmpty } from './static'
import { varEmpty } from './constant'
import type { Theme } from '../theme'

export const ringBase = {
Expand Down
2 changes: 1 addition & 1 deletion src/rules/shadow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cacheRestoreSelector } from 'unplugin-transform-class/utils'
import type { Rule } from '@unocss/core'
import { colorableShadows, colorResolver, handler as h, hasParseableColor } from '../utils'
import { varEmpty } from './static'
import { varEmpty } from './constant'
import type { Theme } from '../theme'

export const boxShadowsBase = {
Expand Down
2 changes: 0 additions & 2 deletions src/rules/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import type { Theme } from '../theme'
const cursorValues = ['auto', 'default', 'none', 'context-menu', 'help', 'pointer', 'progress', 'wait', 'cell', 'crosshair', 'text', 'vertical-text', 'alias', 'copy', 'move', 'no-drop', 'not-allowed', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out']
const containValues = ['none', 'strict', 'content', 'size', 'inline-size', 'layout', 'style', 'paint']

export const varEmpty = 'var(--un-empty,/*!*/ /*!*/)'

// display table included on table.ts
export const displays: Rule[] = [
['inline', { display: 'inline' }],
Expand Down

0 comments on commit c5304d4

Please sign in to comment.