A CSS-in-Rust styling solution for WebAssembly Applications
MIT License
Published by futursolo over 1 year ago
Published by futursolo almost 2 years ago
Style
and StyleManager
.StyleManager::new()
to create a style manager with default configuration.Published by futursolo almost 2 years ago
YieldStyle
. This API can be easily reproduced in user code, if need be,function_component
+ use_style!
/styled_component
.StyleSource
does not take a lifetime argumentparser
: StyleSource
now eagerly parses its input.parser
: The conversion from str
have been changed to TryFrom
From
. If you're using yew
, the IntoPropValue<StyleSource>
parser
: This feature is now disabled by default. Use the css!
, otherStyle::new_*
API is more open for accepted types of the Css
parameter.function_component
.Published by futursolo over 2 years ago
IntoPropValue<Classes>
for Style
and StyleSource
whenyew_integration
feature is active.Published by futursolo almost 3 years ago
random
features is now provided with fastrand
.Published by futursolo about 3 years ago
docs.rs
.Published by futursolo about 3 years ago
Published by futursolo about 3 years ago
Style
and GlobalStyle
no longer implements FromStr
.Style
and GlobalStyle
now takes any type that implementsInto<StyleSource>
as a source for a stylesheet.style_str
method in YieldStyle
renamed to style_from
StyleSource<'static>
.@keyframes
, @supports
and@media
.nom
to v7
.parser
will make the bundle{}
(std::fmt::Display
)@supports
and @media
can now appear in a Block
.Published by futursolo about 3 years ago
Style::new()
and Style::create()
now takes a new trait IntoSheet
forstylist::ast::Sheet
and everything that implements AsRef<str>
.yew
has been renamed back to yew_integration
.Style
is now !Send
and !Sync
.:hover
) like emotionGlobalStyle
struct to register global styles.<Global />
Component for global styling for yew applications.@supports
CSS at-rule.random
is disabled.StyleManager
type to manage the behaviour of styles.stylist_core
.stylist::ast
.Published by futursolo about 3 years ago
Style::new()
now takes an Into<Cow<'static, str>>
instead ofInto<String>
and returns stylist::Error
instead of String
whenStyle::create()
now takes Into<Cow<'static, str>>
for class prefixstylist::Error
instead of String
whenStyle
no longer implements ToString
.YieldStyle
..a-class-name
is after @media
would cause parserPublished by futursolo about 3 years ago
style.get_class_name()
no longer consumes the style and returns a &str
Style::new
which does not require a component name.lazy_static
with once_cell
.v6
.v0.18
.