Struct vertigo::Css [−][src]
Expand description
CSS styles definition for Virtual DOM.
Consists of a vector of css chunks which can be extended.
use vertigo::{Css, CssGroup, html};
let blue_text = Css::str("color: blue");
let black_background = Css::str("background: black");
let my_styles = Css::str("
font-family: courier;
font-size: 160%
")
.extend(blue_text)
.extend(black_background);
let element = html! { <div css={my_styles} /> };
Fields
groups: Vec<CssGroup>