#![doc = include_str!("README.md")]
#![doc(alias("spacing", "space"))]
use crate::prelude::build_plugin::*;
pub(crate) const PLUGIN_X_1: StaticPlugin = Plugin::ListValues(ListValues {
prop: SingleProp("--en-space-x-reverse"),
values: map! {
"space-x-reverse" => "1",
},
extra_class: Some(" > :not(:last-child)"),
..ListValues::default()
});
pub(crate) const PLUGIN_X_2: StaticPlugin = Plugin::Spacing(Spacing {
namespace: "space-x",
prop: MultipleProps(&["margin-inline-start", "margin-inline-end"]),
template: Some(MultipleProps(&[
"calc({} * var(--en-space-x-reverse))",
"calc({} * calc(1 - var(--en-space-x-reverse)))",
])),
extra_rule_css: Some(&["--en-space-x-reverse: 0;"]),
extra_class: Some(" > :not(:last-child)"),
..Spacing::default()
});
pub(crate) const PLUGIN_X_3: StaticPlugin = Plugin::Arbitrary(Arbitrary {
namespace: "space-x",
prop: MultipleProps(&["margin-inline-start", "margin-inline-end"]),
template: Some(MultipleProps(&[
"calc({} * var(--en-space-x-reverse))",
"calc({} * calc(1 - var(--en-space-x-reverse)))",
])),
extra_rule_css: Some(&["--en-space-x-reverse: 0;"]),
extra_class: Some(" > :not(:last-child)"),
..Arbitrary::default()
});
pub(crate) const PLUGIN_Y_1: StaticPlugin = Plugin::ListValues(ListValues {
prop: SingleProp("--en-space-y-reverse"),
values: map! {
"space-y-reverse" => "1",
},
extra_class: Some(" > :not(:last-child)"),
..ListValues::default()
});
pub(crate) const PLUGIN_Y_2: StaticPlugin = Plugin::Spacing(Spacing {
namespace: "space-y",
prop: MultipleProps(&["margin-block-start", "margin-block-end"]),
template: Some(MultipleProps(&[
"calc({} * var(--en-space-y-reverse))",
"calc({} * calc(1 - var(--en-space-y-reverse)))",
])),
extra_rule_css: Some(&["--en-space-y-reverse: 0;"]),
extra_class: Some(" > :not(:last-child)"),
..Spacing::default()
});
pub(crate) const PLUGIN_Y_3: StaticPlugin = Plugin::Arbitrary(Arbitrary {
namespace: "space-y",
prop: MultipleProps(&["margin-block-start", "margin-block-end"]),
template: Some(MultipleProps(&[
"calc({} * var(--en-space-y-reverse))",
"calc({} * calc(1 - var(--en-space-y-reverse)))",
])),
extra_rule_css: Some(&["--en-space-y-reverse: 0;"]),
extra_class: Some(" > :not(:last-child)"),
..Arbitrary::default()
});