ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.62k stars 2.39k forks source link

feat(card): css variables for border and padding #6583

Closed guoyunhe closed 4 months ago

guoyunhe commented 6 months ago

CSS 变量

属性 说明 默认值 全局变量
--border-radius 圆角大小 8px --adm-card-border-radius
--padding-inline 水平内边距 12px --adm-card-padding-inline
--header-border-width header 分割线宽度 0.5px --adm-card-header-border-width
--header-border-color header 分割线颜色 var(--adm-color-border) --adm-card-header-border-color
--header-padding-block header 垂直内边距 12px --adm-card-header-padding-block
--body-padding-block body 垂直内边距 12px --adm-card-body-padding-block
github-actions[bot] commented 6 months ago

Size Change: +113 B (+0.03%)

Total Size: 352 kB

Filename Size Change
./lib/bundle/antd-mobile.compatible.umd.js 189 kB +58 B (+0.03%)
./lib/bundle/style.css 18 kB +55 B (+0.31%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./lib/bundle/antd-mobile.umd.js` | 144 kB | | `./lib/bundle/css-vars-patch.css` | 1.43 kB |

compressed-size-action

github-actions[bot] commented 6 months ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
./lib/bundle/antd-mobile.es.js 102 KB 2.1 s (0%) 1.1 s (+4.19% 🔺) 3.2 s
github-actions[bot] commented 6 months ago

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6583.surge.sh

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.28%. Comparing base (cf550e4) to head (073def4). Report is 14 commits behind head on master.

:exclamation: Current head 073def4 differs from pull request most recent head 16a3f5b

Please upload reports for the commit 16a3f5b to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6583 +/- ## ========================================== - Coverage 92.34% 92.28% -0.06% ========================================== Files 318 318 Lines 6910 6962 +52 Branches 1729 1754 +25 ========================================== + Hits 6381 6425 +44 - Misses 493 499 +6 - Partials 36 38 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

zombieJ commented 4 months ago

哦,等等。css var 可能还要一个 card.patch.less