Skip to content

Commit

Permalink
feat: content-none
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed May 27, 2023
1 parent b985052 commit 121664c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/rules/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const contentVisibility: Rule<Theme>[] = [
export const contents: Rule[] = [
[/^content-(.+)$/, ([, v]) => ({ content: h.bracket.cssvar(v) })],
['content-empty', { content: '""' }],
['content-none', { content: '""' }],
['content-none', { content: 'none' }],
]

export const breaks: Rule[] = [
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/preset-mini.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ unocss .scope-\\\\[unocss\\\\]\\\\:block{display:block;}
.content-\\\\[string\\\\:attr\\\\(dashed-attr\\\\)\\\\]{content:attr(dashed-attr);}
.content-\\\\[string\\\\:attr\\\\(underlined\\\\\\\\_attr\\\\)\\\\]{content:attr(underlined_attr);}
.content-\\\\$unocss-var{content:var(--unocss-var);}
.content-empty,
.content-none{content:\\"\\";}
.content-empty{content:\\"\\";}
.content-none{content:none;}
.contain-\\\\[size_layout_paint\\\\]{contain:size layout paint;}
.contain-\\\\[size_layout\\\\]{contain:size layout;}
.contain-layout{contain:layout;}
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/preset-weapp-rules.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.content-_lfl11_quoted_cl11__el11__lfr11_{content:\\"!\\";}
.content-_lfl11_string_cl11_attr_lbl11_dashed-attr_lbr11__lfr11_{content:attr(dashed-attr);}
.content-_lfl11_string_cl11_attr_lbl11_underlined\\\\\\\\_attr_lbr11__lfr11_{content:attr(underlined_attr);}
.content-empty,
.content-none{content:\\"\\";}
.content-empty{content:\\"\\";}
.content-none{content:none;}
.contain-_lfl11_size_layout_lfr11_{contain:size layout;}
.contain-_lfl11_size_layout_paint_lfr11_{contain:size layout paint;}
.contain-layout{contain:layout;}
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/preset-weapp.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ unocss .scope-_lfl_unocss_lfr__cl_block{display:block;}
.content-_lfl_quoted_cl__el__lfr_{content:\\"!\\";}
.content-_lfl_string_cl_attr_lbl_dashed-attr_lbr__lfr_{content:attr(dashed-attr);}
.content-_lfl_string_cl_attr_lbl_underlined\\\\\\\\_attr_lbr__lfr_{content:attr(underlined_attr);}
.content-empty,
.content-none{content:\\"\\";}
.content-empty{content:\\"\\";}
.content-none{content:none;}
.contain-_lfl_size_layout_lfr_{contain:size layout;}
.contain-_lfl_size_layout_paint_lfr_{contain:size layout paint;}
.contain-layout{contain:layout;}
Expand Down

0 comments on commit 121664c

Please sign in to comment.