Skip to content

Commit

Permalink
feat: ringWidth default changed to 3px
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Apr 5, 2024
1 parent 3357fd7 commit fd0e327
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/theme/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const easing = {
}

export const ringWidth = {
DEFAULT: '1px',
DEFAULT: '3px',
none: '0',
}

Expand Down
4 changes: 2 additions & 2 deletions test/assets/output/preset-mini/targets.css
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,10 @@ unocss .scope-\[unocss\]\:block{display:block;}
.shadow-op-\$opacity-variable{--licl-shadow-opacity:var(--opacity-variable);}
.shadow-op-50{--licl-shadow-opacity:0.5;}
.shadow-inset{--licl-shadow-inset:inset;}
.ring,
.ring-px{--licl-ring-width:1px;--licl-ring-offset-shadow:var(--licl-ring-inset) 0 0 0 var(--licl-ring-offset-width) var(--licl-ring-offset-color);--licl-ring-shadow:var(--licl-ring-inset) 0 0 0 calc(var(--licl-ring-width) + var(--licl-ring-offset-width)) var(--licl-ring-color);box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.ring{--licl-ring-width:3px;--licl-ring-offset-shadow:var(--licl-ring-inset) 0 0 0 var(--licl-ring-offset-width) var(--licl-ring-offset-color);--licl-ring-shadow:var(--licl-ring-inset) 0 0 0 calc(var(--licl-ring-width) + var(--licl-ring-offset-width)) var(--licl-ring-color);box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.ring-10{--licl-ring-width:10px;--licl-ring-offset-shadow:var(--licl-ring-inset) 0 0 0 var(--licl-ring-offset-width) var(--licl-ring-offset-color);--licl-ring-shadow:var(--licl-ring-inset) 0 0 0 calc(var(--licl-ring-width) + var(--licl-ring-offset-width)) var(--licl-ring-color);box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.ring-none{--licl-ring-width:0;--licl-ring-offset-shadow:var(--licl-ring-inset) 0 0 0 var(--licl-ring-offset-width) var(--licl-ring-offset-color);--licl-ring-shadow:var(--licl-ring-inset) 0 0 0 calc(var(--licl-ring-width) + var(--licl-ring-offset-width)) var(--licl-ring-color);box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.ring-px{--licl-ring-width:1px;--licl-ring-offset-shadow:var(--licl-ring-inset) 0 0 0 var(--licl-ring-offset-width) var(--licl-ring-offset-color);--licl-ring-shadow:var(--licl-ring-inset) 0 0 0 calc(var(--licl-ring-width) + var(--licl-ring-offset-width)) var(--licl-ring-color);box-shadow:var(--licl-ring-offset-shadow), var(--licl-ring-shadow), var(--licl-shadow);}
.ring-size-px,
.ring-width-px{--licl-ring-width:1px;}
.ring-offset{--licl-ring-offset-width:1px;}
Expand Down
4 changes: 2 additions & 2 deletions test/assets/output/preset-weapp/targets-custom-rules.css
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ unocss .scope-_lfl11_unocss_lfr11__cl11_block{display:block;}
.shadow-op-_do11_opacity-variable{--un-shadow-opacity:var(--opacity-variable);}
.shadow-op-50{--un-shadow-opacity:0.5;}
.shadow-inset{--un-shadow-inset:inset;}
.ring,
.ring-px{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring{--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-10{--un-ring-width:10px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-none{--un-ring-width:0;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-px{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-size-px,
.ring-width-px{--un-ring-width:1px;}
.ring-offset{--un-ring-offset-width:1px;}
Expand Down
4 changes: 2 additions & 2 deletions test/assets/output/preset-weapp/targets.css
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,10 @@ unocss .scope-_lfl_unocss_lfr__cl_block{display:block;}
.shadow-op-_do_opacity-variable{--un-shadow-opacity:var(--opacity-variable);}
.shadow-op-50{--un-shadow-opacity:0.5;}
.shadow-inset{--un-shadow-inset:inset;}
.ring,
.ring-px{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring{--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-10{--un-ring-width:10px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-none{--un-ring-width:0;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-px{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
.ring-size-px,
.ring-width-px{--un-ring-width:1px;}
.ring-offset{--un-ring-offset-width:1px;}
Expand Down

3 comments on commit fd0e327

@qinains
Copy link

@qinains qinains commented on fd0e327 Apr 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“ringWidth default changed to 3px”这个是为何呢?你改了这个之后,我原本的显示是好好的,现在都缩小了

@MellowCo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“ringWidth default changed to 3px”这个是为何呢?你改了这个之后,我原本的显示是好好的,现在都缩小了

unocss/unocss#3672
unocss/unocss#3673

@qinains
Copy link

@qinains qinains commented on fd0e327 Apr 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好吧,跟unocss同步就好 :-D

Please sign in to comment.