Skip to main content

encre_css/plugins/sizing/width/
mod.rs

1#![doc = include_str!("README.md")]
2#![doc(alias("sizing", "size"))]
3use crate::{plugins::sizing::CSS_SIZE_VALUES_HORIZONTAL, prelude::build_plugin::*};
4
5pub(crate) const PLUGIN_SPACING: StaticPlugin = Plugin::Spacing(Spacing {
6    namespace: "w",
7    prop: SingleProp("width"),
8    has_auto: Some(true),
9    has_full: Some(true),
10    ..Spacing::default()
11});
12
13pub(crate) const PLUGIN_LIST: StaticPlugin = Plugin::ListValues(ListValues {
14    prop: SingleProp("width"),
15    values: CSS_SIZE_VALUES_HORIZONTAL,
16    namespace: Some("w"),
17    ..ListValues::default()
18});
19
20pub(crate) const PLUGIN_ARBITRARY: StaticPlugin = Plugin::Arbitrary(Arbitrary {
21    namespace: "w",
22    prop: SingleProp("width"),
23    ..Arbitrary::default()
24});