macro_rules! extend_style_from_css {
($style:expr, $css:expr $(, $arg:expr)*) => { ... };
}
Expand description
Extend Style
with css
, re-rendering if new_css
is not empty.
Returns error if missing access to: Head
, Window
, Document
.
Example Usage:
let mut style = named_style!(".my_class", "font-size: {}px;", 12)?;
extend_style_from_css!(
&mut style,
"
gap: 2rem;
display: flex;
"
)?;