pub struct Css {
pub groups: Vec<CssGroup>,
}
Expand description
CSS styles definition for usable in DOM.
Consists of a vector of css chunks which can be extended.
use vertigo::{Css, CssGroup, dom};
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 = dom! { <div css={my_styles} /> };
Fields§
§groups: Vec<CssGroup>
Implementations§
Trait Implementations§
impl Eq for Css
impl StructuralPartialEq for Css
Auto Trait Implementations§
impl Freeze for Css
impl RefUnwindSafe for Css
impl Send for Css
impl Sync for Css
impl Unpin for Css
impl UnwindSafe for Css
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more