better element structure

This commit is contained in:
2024-11-30 21:00:02 +01:00
parent 71d10bc331
commit 1eef3d4306
6 changed files with 64 additions and 19 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ pub fn examples() -> Element {
pub fn styling() -> Css {
css! {
.btn {
"btn" {
x: Center,
y: Center,
color: Red,
}
.btn: clicked {
"btn": clicked {
color: Blue,
}
}