tailwind_css/modules/sizing/
mod.rs

1mod 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(Copy, Clone, Debug)]
17enum SizingUnit {
18    Min,
19    Max,
20    Fit,
21    Auto,
22    Full,
23    Screen,
24    Fraction(usize, usize),
25    Length(LengthUnit),
26}
27
28#[doc = include_str!("sizing.md")]
29#[derive(Copy, Clone, Debug)]
30pub struct TailwindSizing {
31    kind: TailwindSizingKind,
32    size: SizingUnit,
33}