Skip to content

Commit d0ef03b

Browse files
committed
feat: add is-flat-flash style
1 parent 00e9170 commit d0ef03b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/BootstrapBlazor/Components/Light/Light.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public partial class Light
1616
protected string? ClassString => CssBuilder.Default("light")
1717
.AddClass("is-flat", IsFlat)
1818
.AddClass("flash", IsFlash && !IsFlat)
19+
.AddClass("is-flat-flash", IsFlash && IsFlat)
1920
.AddClass($"light-{Color.ToDescriptionString()}", Color != Color.None)
2021
.AddClassFromAttributes(AdditionalAttributes)
2122
.Build();

src/BootstrapBlazor/Components/Light/Light.razor.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
height: 100%;
7777
border-radius: 50%;
7878
border: 1px solid var(--bb-light-bg);
79+
}
80+
81+
&.is-flat-flash:after {
7982
animation: light-flat 1.2s infinite ease-in-out;
8083
}
8184
}
@@ -196,7 +199,7 @@
196199
@include animation(light-danger, #e17777, #892726);
197200
@include animation(light-success, #5cb85c, #116811);
198201
@include animation(light-info, #5bc0de, #1d7792);
199-
@include animation(light-light-warning, #ffc107, #cc9f18);
202+
@include animation(light-warning, #ffc107, #cc9f18);
200203
@include animation(light-primary, #007bff, #0f5fb5);
201204
@include animation(light-secondary, #6c757d, #4b5054);
202205
@include animation(light-dark, #6061e2, #3232a0);

0 commit comments

Comments
 (0)