From e9d655fedb9889e3e903ffe7b0364137e0a768b9 Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Thu, 16 Jan 2025 15:52:11 +0900 Subject: [PATCH] Add shorthand --- .changeset/clean-timers-applaud.md | 6 ++++++ libs/css/src/lib.rs | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .changeset/clean-timers-applaud.md diff --git a/.changeset/clean-timers-applaud.md b/.changeset/clean-timers-applaud.md new file mode 100644 index 00000000..5f7213b7 --- /dev/null +++ b/.changeset/clean-timers-applaud.md @@ -0,0 +1,6 @@ +--- +"@devup-ui/react": patch +"@devup-ui/wasm": patch +--- + +Add shorthand diff --git a/libs/css/src/lib.rs b/libs/css/src/lib.rs index ca27fcc1..b529347c 100644 --- a/libs/css/src/lib.rs +++ b/libs/css/src/lib.rs @@ -32,8 +32,19 @@ static GLOBAL_STYLE_PROPERTY: Lazy>> = Lazy::n for (key, value) in [ ("bg", "background"), + ("bgAttachment", "background-attachment"), + ("bgClip", "background-clip"), ("bgColor", "background-color"), - ("color", "color"), + ("bgImage", "background-image"), + ("bgOrigin", "background-origin"), + ("bgPosition", "background-position"), + ("bgPositionX", "background-position-x"), + ("bgPositionY", "background-position-y"), + ("bgRepeat", "background-repeat"), + ("bgSize", "background-size"), + ("animationDir", "animation-direction"), + ("flexDir", "flex-direction"), + ("pos", "position"), ("m", "margin"), ("mt", "margin-top"), ("mr", "margin-right"),