Skip to main content

encre_css/plugins/transform/transform_origin/
mod.rs

1#![doc = include_str!("README.md")]
2#![doc(alias = "transform")]
3use crate::prelude::build_plugin::*;
4
5pub(crate) const PLUGIN: StaticPlugin = Plugin::ListValues(ListValues {
6    prop: SingleProp("transform-origin"),
7    values: map! {
8        "origin-bottom" => "bottom",
9        "origin-center" => "center",
10        "origin-left" => "left",
11        "origin-bottom-left" => "bottom left",
12        "origin-top-left" => "top left",
13        "origin-right" => "right",
14        "origin-bottom-right" => "bottom right",
15        "origin-top-right" => "top right",
16        "origin-top" => "top",
17    },
18    ..ListValues::default()
19});
20
21pub(crate) const PLUGIN_ARBITRARY: StaticPlugin = Plugin::Arbitrary(Arbitrary {
22    namespace: "origin",
23    prop: SingleProp("transform-origin"),
24    ..Arbitrary::default()
25});