File tree Expand file tree Collapse file tree 4 files changed +47
-0
lines changed
tailwindcss-miniprogram-preset Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,20 @@ module.exports = {
4141}
4242```
4343
44+ ## Tips
45+
46+ 1 . Use ` -dv- ` instead of ` / ` to generate percentage
47+ 2 . Use ` - ` instead of ` . `
48+
49+ For example:
50+ ``` html
51+ <!-- w-1/2 = w-1-dv-2 -->
52+ <div class =" w-1/2 w-1-dv-2" >hello, world.</div >
53+
54+ <!-- w-1.5 = w-1-5 -->
55+ <div class =" w-1.5 w-1-5" >hello, world.</div >
56+ ```
57+
4458## License
4559
4660[ MIT] ( https://github.com/leedomjs/tailwindcss-preset/blob/main/LICENSE ) License © 2024-present [ Leedom] ( https://github.com/leedom92 )
Original file line number Diff line number Diff line change 138138 width : 8rpx
139139}
140140
141+ .w-3-5 {
142+ width : 28rpx
143+ }
144+
141145.max-w-20 {
142146 max-width : 160rpx
143147}
Original file line number Diff line number Diff line change 33[ ![ npm] ( https://img.shields.io/npm/v/@leedomjs/tailwindcss-miniprogram-preset?color=333&label= )] ( https://www.npmjs.com/package/@leedomjs/tailwindcss-miniprogram-preset )
44
55This package is designed for miniprogram, and transforms ` px ` to ` rpx ` .
6+ ` 0.25rem ` = ` 4px ` = ` 8rpx `
67
78## Usage
89
@@ -40,6 +41,20 @@ module.exports = {
4041}
4142```
4243
44+ ## Tips
45+
46+ 1 . Use ` -dv- ` instead of ` / ` to generate percentage
47+ 2 . Use ` - ` instead of ` . `
48+
49+ For example:
50+ ``` html
51+ <!-- w-1/2 = w-1-dv-2 -->
52+ <div class =" w-1/2 w-1-dv-2" >hello, world.</div >
53+
54+ <!-- w-1.5 = w-1-5 -->
55+ <div class =" w-1.5 w-1-5" >hello, world.</div >
56+ ```
57+
4358## License
4459
4560[ MIT] ( https://github.com/leedomjs/tailwindcss-preset/blob/main/LICENSE ) License © 2024-present [ Leedom] ( https://github.com/leedom92 )
Original file line number Diff line number Diff line change @@ -41,6 +41,20 @@ module.exports = {
4141}
4242```
4343
44+ ## Tips
45+
46+ 1 . Use ` -dv- ` instead of ` / ` to generate percentage
47+ 2 . Use ` - ` instead of ` . `
48+
49+ For example:
50+ ``` html
51+ <!-- w-1/2 = w-1-dv-2 -->
52+ <div class =" w-1/2 w-1-dv-2" >hello, world.</div >
53+
54+ <!-- w-1.5 = w-1-5 -->
55+ <div class =" w-1.5 w-1-5" >hello, world.</div >
56+ ```
57+
4458## License
4559
4660[ MIT] ( https://github.com/leedomjs/tailwindcss-preset/blob/main/LICENSE ) License © 2024-present [ Leedom] ( https://github.com/leedom92 )
You can’t perform that action at this time.
0 commit comments