|
268 | 268 | //// some access to underlying and internals, open an issue with your use case,
|
269 | 269 | //// I'd more than happy to help on that point and reduce side-effects.
|
270 | 270 |
|
| 271 | +import gleam/float |
271 | 272 | import gleam/int
|
272 | 273 | import gleam/list
|
273 | 274 | import gleam/string
|
@@ -544,8 +545,8 @@ pub fn object_position(object_position: String) {
|
544 | 545 | Property("object-position", object_position, False)
|
545 | 546 | }
|
546 | 547 |
|
547 |
| -pub fn opacity(opacity: String) { |
548 |
| - Property("opacity", opacity, False) |
| 548 | +pub fn opacity(opacity: Float) { |
| 549 | + Property("opacity", float.to_string(opacity), False) |
549 | 550 | }
|
550 | 551 |
|
551 | 552 | pub fn pointer_events(pointer_events: String) {
|
@@ -876,19 +877,39 @@ pub fn border_radius_(border_radius: String) {
|
876 | 877 | Property("border-radius", border_radius, False)
|
877 | 878 | }
|
878 | 879 |
|
879 |
| -pub fn border_top_right_radius(border_top_right_radius: String) { |
| 880 | +pub fn border_top_right_radius(border_top_right_radius: Size) { |
| 881 | + size.to_string(border_top_right_radius) |
| 882 | + |> Property("border-top-right-radius", _, False) |
| 883 | +} |
| 884 | + |
| 885 | +pub fn border_top_left_radius(border_top_left_radius: Size) { |
| 886 | + size.to_string(border_top_left_radius) |
| 887 | + |> Property("border-top-left-radius", _, False) |
| 888 | +} |
| 889 | + |
| 890 | +pub fn border_bottom_right_radius(border_bottom_right_radius: Size) { |
| 891 | + size.to_string(border_bottom_right_radius) |
| 892 | + |> Property("border-bottom-right-radius", _, False) |
| 893 | +} |
| 894 | + |
| 895 | +pub fn border_bottom_left_radius(border_bottom_left_radius: Size) { |
| 896 | + size.to_string(border_bottom_left_radius) |
| 897 | + |> Property("border-bottom-left-radius", _, False) |
| 898 | +} |
| 899 | + |
| 900 | +pub fn border_top_right_radius_(border_top_right_radius: String) { |
880 | 901 | Property("border-top-right-radius", border_top_right_radius, False)
|
881 | 902 | }
|
882 | 903 |
|
883 |
| -pub fn border_top_left_radius(border_top_left_radius: String) { |
| 904 | +pub fn border_top_left_radius_(border_top_left_radius: String) { |
884 | 905 | Property("border-top-left-radius", border_top_left_radius, False)
|
885 | 906 | }
|
886 | 907 |
|
887 |
| -pub fn border_bottom_right_radius(border_bottom_right_radius: String) { |
| 908 | +pub fn border_bottom_right_radius_(border_bottom_right_radius: String) { |
888 | 909 | Property("border-bottom-right-radius", border_bottom_right_radius, False)
|
889 | 910 | }
|
890 | 911 |
|
891 |
| -pub fn border_bottom_left_radius(border_bottom_left_radius: String) { |
| 912 | +pub fn border_bottom_left_radius_(border_bottom_left_radius: String) { |
892 | 913 | Property("border-bottom-left-radius", border_bottom_left_radius, False)
|
893 | 914 | }
|
894 | 915 |
|
|
0 commit comments