File tree Expand file tree Collapse file tree 3 files changed +83
-5
lines changed
src/BootstrapBlazor/Components/SweetAlert Expand file tree Collapse file tree 3 files changed +83
-5
lines changed Original file line number Diff line number Diff line change 44 z-index : var (--bb-swal-zindex );
55}
66
7+ .swal2-header {
8+ display : flex ;
9+ flex-direction : column ;
10+ align-items : center ;
11+ }
12+
13+ .swal2-icon {
14+ position : relative ;
15+ box-sizing : content-box ;
16+ justify-content : center ;
17+ width : 5em ;
18+ height : 5em ;
19+ margin : 1.25em auto 1.875em ;
20+ zoom : normal ;
21+ border : .25em solid transparent ;
22+ border-radius : 50% ;
23+ line-height : 5em ;
24+ cursor : default ;
25+ user-select : none ;
26+ }
27+
28+ .swal2-title {
29+ position : relative ;
30+ max-width : 100% ;
31+ margin : 0 0 .4em ;
32+ padding : 0 ;
33+ color : #595959 ;
34+ font-size : 1.875em ;
35+ font-weight : 600 ;
36+ text-align : center ;
37+ text-transform : none ;
38+ word-wrap : break-word ;
39+ }
40+
41+ .swal2-content {
42+ z-index : 1 ;
43+ justify-content : center ;
44+ margin : 0 ;
45+ padding : 0 ;
46+ color : #545454 ;
47+ font-size : 1.125em ;
48+ font-weight : 300 ;
49+ line-height : normal ;
50+ word-wrap : break-word ;
51+ }
52+
53+ .swal2-actions {
54+ z-index : 1 ;
55+ flex-wrap : wrap ;
56+ align-items : center ;
57+ justify-content : center ;
58+ width : 100% ;
59+ margin : 1.25em auto 0 ;
60+ }
61+
62+ .swal2-footer {
63+ justify-content : center ;
64+ margin : 1.25em 0 0 ;
65+ padding : 1em 0 0 ;
66+ border-top : 1px solid #eee ;
67+ color : #545454 ;
68+ font-size : 1em ;
69+ }
70+
771.swal2-icon ,
872.swal2-actions {
973 display : flex ;
Original file line number Diff line number Diff line change 2020 </span >
2121 </div >
2222 }
23- else
23+ else if ( Category == SwalCategory . Warning )
2424 {
25- <div class =" @IconClassString" ></div >
25+ <div class =" @IconClassString" >
26+ <div class =" swal2-icon-content" >! </div >
27+ </div >
28+ }
29+ else if (Category == SwalCategory .Question )
30+ {
31+ <div class =" @IconClassString" >
32+ <div class =" swal2-icon-content" >? </div >
33+ </div >
34+ }
35+ else if (Category == SwalCategory .Information )
36+ {
37+ <div class =" @IconClassString" >
38+ <div class =" swal2-icon-content" >i </div >
39+ </div >
2640 }
2741 @if (! string .IsNullOrEmpty (Title ))
2842 {
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ public partial class SweetAlertBody
126126 [ NotNull ]
127127 private IIconTheme ? IconTheme { get ; set ; }
128128
129- private string ? IconClassString => CssBuilder . Default ( "swal2-icon" )
130- . AddClass ( "swal2-success swal2-animate-success-icon " , Category == SwalCategory . Success )
131- . AddClass ( "swal2-error swal2-animate-error-icon " , Category == SwalCategory . Error )
129+ private string ? IconClassString => CssBuilder . Default ( "swal2-icon swal2-icon-show " )
130+ . AddClass ( "swal2-success" , Category == SwalCategory . Success )
131+ . AddClass ( "swal2-error" , Category == SwalCategory . Error )
132132 . AddClass ( "swal2-info" , Category == SwalCategory . Information )
133133 . AddClass ( "swal2-question" , Category == SwalCategory . Question )
134134 . AddClass ( "swal2-warning" , Category == SwalCategory . Warning )
You can’t perform that action at this time.
0 commit comments