Skip to content

Commit 1c31e4c

Browse files
authored
Merge pull request #18 from dev-five-git/add-shorthand
Add shorthand
2 parents 4a93c74 + e9d655f commit 1c31e4c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.changeset/clean-timers-applaud.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@devup-ui/react": patch
3+
"@devup-ui/wasm": patch
4+
---
5+
6+
Add shorthand

libs/css/src/lib.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,19 @@ static GLOBAL_STYLE_PROPERTY: Lazy<Mutex<HashMap<&str, PropertyType>>> = Lazy::n
3232

3333
for (key, value) in [
3434
("bg", "background"),
35+
("bgAttachment", "background-attachment"),
36+
("bgClip", "background-clip"),
3537
("bgColor", "background-color"),
36-
("color", "color"),
38+
("bgImage", "background-image"),
39+
("bgOrigin", "background-origin"),
40+
("bgPosition", "background-position"),
41+
("bgPositionX", "background-position-x"),
42+
("bgPositionY", "background-position-y"),
43+
("bgRepeat", "background-repeat"),
44+
("bgSize", "background-size"),
45+
("animationDir", "animation-direction"),
46+
("flexDir", "flex-direction"),
47+
("pos", "position"),
3748
("m", "margin"),
3849
("mt", "margin-top"),
3950
("mr", "margin-right"),

0 commit comments

Comments
 (0)