Macro hobo_css::unit[][src]

macro_rules! unit {
    (0) => { ... };
    ($e : literal $(px) ?) => { ... };
    ($e : literal ms) => { ... };
    ($e : literal $frag : ident) => { ... };
    ($e : literal %) => { ... };
    ($e : ident $(px) ?) => { ... };
    ($e : ident ms) => { ... };
    ($e : ident $frag : ident) => { ... };
    ($e : ident %) => { ... };
    (($($e : tt) +) $(px) ?) => { ... };
    (($($e : tt) +) ms) => { ... };
    (($($e : tt) +) $frag : ident) => { ... };
    (($($e : tt) +) %) => { ... };
    ($e1 : literal $frag1 : tt + $e2 : literal $frag2 : tt) => { ... };
    ($e1 : ident $frag1 : tt + $e2 : literal $frag2 : tt) => { ... };
    ($e1 : literal $frag1 : tt + $e2 : ident $frag2 : tt) => { ... };
    ($e1 : ident $frag1 : tt + $e2 : ident $frag2 : tt) => { ... };
    ($e1 : literal $frag1 : tt - $e2 : literal $frag2 : tt) => { ... };
    ($e1 : ident $frag1 : tt - $e2 : literal $frag2 : tt) => { ... };
    ($e1 : literal $frag1 : tt - $e2 : ident $frag2 : tt) => { ... };
    ($e1 : ident $frag1 : tt - $e2 : ident $frag2 : tt) => { ... };
}
Expand description

As pixels is the most common unit type, specifying px is optional