1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use super::*;
#[doc=include_str!("readme.md")]
#[derive(Clone, Debug)]
pub struct TailwindRight {
kind: UnitValue,
}
impl Display for TailwindRight {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
self.kind.write_negative(f)?;
self.kind.write_class(f, "right-")
}
}
impl TailwindInstance for TailwindRight {
fn attributes(&self, _: &TailwindBuilder) -> CssAttributes {
css_attributes! {
"right" => self.kind.get_properties_rem()
}
}
}
impl TailwindRight {
pub fn parse(pattern: &[&str], arbitrary: &TailwindArbitrary, negative: Negative) -> Result<Self> {
let kind = get_kind_px_full_auto_fact("right", pattern, arbitrary, negative)?;
Ok(Self { kind })
}
pub fn check_valid(mode: &str) -> bool {
check_valid_auto(mode)
}
}