Skip to content

Commit

Permalink
chore: Update shadow.rs to use the spacing attribute instead of sized…
Browse files Browse the repository at this point in the history
… rects
  • Loading branch information
marc2332 committed Oct 6, 2024
1 parent 1c2d852 commit 44d1ee8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,28 @@ fn app() -> Element {
width: "100%",
padding: "60",
background: "rgb(224, 224, 224)",
spacing: "40",
rect {
direction: "horizontal",
spacing: "40",
rect {
shadow: "inset 0 0 8 red",
height: "80",
width: "80",
background: "black",
}
rect { width: "40" }
rect {
shadow: "24 24 8 0 rgb(0, 0, 0, 128), -24 -24 8 0 rgb(0, 255, 0, 128)",
height: "80",
width: "80",
background: "black",
}
rect { width: "40" }
rect {
shadow: "0 0 60 3 red, 0 0 50 3 orange, 0 0 40 3 yellow, 0 0 30 3 green, 0 0 20 3 blue, 0 0 10 3 rgb(255,0,255)",
height: "80",
width: "80",
background: "black",
}
rect { width: "40" }
rect {
shadow: "5 5 10 rgb(190, 190, 190), -5 -5 10 rgb(255, 255, 255)",
height: "80",
Expand All @@ -48,7 +47,6 @@ fn app() -> Element {
background: "rgb(224, 224, 224)",
}
}
rect { height: "40" }
label {
text_shadow: "0 18 12 rgb(0, 0, 0), 0 0 20 orange",
font_size: "80",
Expand Down

0 comments on commit 44d1ee8

Please sign in to comment.