Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Sep 7, 2024
1 parent 4faeb6a commit fe7caa4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 30 deletions.
2 changes: 1 addition & 1 deletion ReactWithDotNet.WebSite/Components/HamburgerButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protected override Element render()
return new button(DisplayFlexRowCentered, OnClick(Click))
{
Border(Solid(1,Theme.grey_300)),
BackgroundTransparent,
Background(transparent),
BorderRadius(10),

When(IsOpen,Background(Theme.grey_50)),
Expand Down
2 changes: 1 addition & 1 deletion ReactWithDotNet.WebSite/Components/HighlightedText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static Element CreateAttractiveText(string text)
style =
{
PaddingLeftRight(3),
WebkitTextFillColor(Transparent),
WebkitTextFillColor(transparent),
Background(linear_gradientTo("right", Blue400, Blue600)),
BackgroundClipText,
WebkitBackgroundClipText
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected override Task constructor()

protected override Element render()
{
return new FlexColumn(AlignItemsFlexStart, AlignSelfStretch, BackgroundWhite, Border(1, solid, Gray200), BorderRadius(8), Gap(16), JustifyContentFlexStart, Padding(20))
return new FlexColumn(AlignItemsFlexStart, AlignSelfStretch, Background(White), Border(1, solid, Gray200), BorderRadius(8), Gap(16), JustifyContentFlexStart, Padding(20))
{
state.IsExpanded ? null : OnClick(ToggleCollapse),

Expand Down
2 changes: 1 addition & 1 deletion ReactWithDotNet.WebSite/Pages/PageMileStones.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MilestoneContainer : PureComponent
{
protected override Element render()
{
return new FlexColumn(Gap(4), Padding(32), BackgroundWhite, BorderRadius(8), Border(1, solid, Gray200), Hover(BorderColor(Gray300)))
return new FlexColumn(Gap(4), Padding(32), Background(White), BorderRadius(8), Border(1, solid, Gray200), Hover(BorderColor(Gray300)))
{
children
};
Expand Down
25 changes: 0 additions & 25 deletions ReactWithDotNet/Mixin.1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,6 @@ namespace ReactWithDotNet;

public static partial class Mixin
{
/// <summary>
/// style.backgroundColor = 'transparent'
/// </summary>
public static StyleModifier BackgroundColorTransparent =>
BackgroundColor("transparent");

/// <summary>
/// style.background = 'transparent'
/// </summary>
public static StyleModifier BackgroundTransparent =>
Background("transparent");

/// <summary>
/// style.background = 'white'
/// </summary>
public static StyleModifier BackgroundWhite=>
Background("white");



public static StyleModifier BoxSizingBorderBox => new(style => style.boxSizing = "border-box");

public static StyleModifier BoxSizingContentBox => new(style => style.boxSizing = "content-box");
Expand Down Expand Up @@ -366,11 +346,6 @@ public static StyleModifier BackdropFilterBlur(double valueAsPixel) =>
/// </summary>
public static StyleModifier BackgroundClipText=>BackgroundClip("text");

public static readonly string Transparent = "transparent";





/// <summary>
/// The background-image property sets one or more background images for an element.
Expand Down
2 changes: 1 addition & 1 deletion ReactWithDotNet/UIDesigner/StyleSearchInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override Element render()
onKeyDown = OnKeyDown,
style =
{
BackgroundWhite,
Background(White),
Border(Solid(0.1, "#bcc4e3")),
BorderRadius(3),
PaddingLeft(3),
Expand Down

0 comments on commit fe7caa4

Please sign in to comment.