Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Jan 14, 2024
1 parent 504ecc5 commit a0c3186
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ReactWithDotNet/Mixin.1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,9 @@ void apply(Style instance)
public static StyleModifier MarginLeftTop(double leftTopPixel) => new(style => style.marginLeftTop = leftTopPixel.AsPixel());
public static StyleModifier MarginLeftBottom(double leftBottomPixel) => new(style => style.marginLeftBottom = leftBottomPixel.AsPixel());
public static StyleModifier MarginTopRight(double topRightPixel) => new(style => style.marginTopRight = topRightPixel.AsPixel());

public static StyleModifier MarginX(double leftRightPixel)=>MarginLeftRight(leftRightPixel);
public static StyleModifier MarginY(double topBottomPixel)=>MarginTopBottom(topBottomPixel);
#endregion

#region Padding
Expand Down Expand Up @@ -897,6 +900,9 @@ public static StyleModifier Padding(double topPixel, double rightPixel, double b
public static StyleModifier PaddingLeftTop(double leftTopPixel) => new(style => style.paddingLeftTop = leftTopPixel.AsPixel());
public static StyleModifier PaddingLeftBottom(double leftBottomPixel) => new(style => style.paddingLeftBottom = leftBottomPixel.AsPixel());
public static StyleModifier PaddingTopRight(double topRightPixel) => new(style => style.paddingTopRight = topRightPixel.AsPixel());

public static StyleModifier PaddingX(double leftRightPixel)=>PaddingLeftRight(leftRightPixel);
public static StyleModifier PaddingY(double topBottomPixel)=>PaddingTopBottom(topBottomPixel);
#endregion

#region short
Expand Down
2 changes: 2 additions & 0 deletions ReactWithDotNet/Mixin.8.Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public static string cubic_bezier(double x1, double y1, double x2, double y2)


public const string inherit = "inherit";
public const string none = "none";
public const string auto = "auto";
}

public sealed class CssUnit
Expand Down

0 comments on commit a0c3186

Please sign in to comment.