tailwind_css_fixes/modules/sizing/
mod.rs1mod builder;
2mod display;
3
4use super::*;
5
6#[derive(Copy, Clone, Debug)]
7enum TailwindSizingKind {
8 Width,
9 MinWidth,
10 MaxWidth,
11 Height,
12 MinHeight,
13 MaxHeight,
14}
15
16#[derive(Clone, Debug)]
17enum SizingUnit {
18 None,
19 Min,
20 Max,
21 Fit,
22 Auto,
23 Full,
24 Screen,
25 Fraction(usize, usize),
26 Length(LengthUnit),
27 Arbitrary(TailwindArbitrary),
28}
29
30#[doc = include_str!("sizing.md")]
31#[derive(Clone, Debug)]
32pub struct TailwindSizing {
33 kind: TailwindSizingKind,
34 size: SizingUnit,
35}