Skip to content

Commit

Permalink
feat: add clip-path on fancy-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Apr 18, 2024
1 parent 01d5266 commit 3c59a27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/fancy-ui/src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ where
".hidden" : {
visibility: "hidden",
},

"button": {
white_space: "nowrap",
clip_path: "polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%)",
width: px(400),
height: px(40),
},
};

vec![main, Self::border_style(), Self::corner_style()]
Expand Down
3 changes: 2 additions & 1 deletion examples/fancy-ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ impl Application for App {
font_size: px(40),
padding: px(30),
margin: px(30),
}
},

}];

main
Expand Down

0 comments on commit 3c59a27

Please sign in to comment.