File tree 3 files changed +71
-38
lines changed
3 files changed +71
-38
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const metadata = {
39
39
* @defaultvalue "Large"
40
40
* @public
41
41
*/
42
- size : { type : BusyIndicatorSize , defaultValue : BusyIndicatorSize . Large } ,
42
+ size : { type : BusyIndicatorSize , defaultValue : BusyIndicatorSize . Medium } ,
43
43
44
44
/**
45
45
* Defines if the busy indicator is visible on the screen. By default it is not.
Original file line number Diff line number Diff line change 12
12
}
13
13
14
14
: host ([size = "Small" ]) .ui5-busyindicator-root {
15
- min-width : 3 rem ;
16
- min-height : 1 rem ;
15
+ min-width : 1.5 em ;
16
+ min-height : .5 rem ;
17
17
}
18
18
19
19
: host ([size = "Small" ]) .ui5-busyindicator-circle {
20
- width : 0.125rem ;
21
- height : 0.125rem ;
22
- margin : 0 0.2rem ;
20
+ width : .5rem ;
21
+ height : .5rem ;
23
22
}
24
23
24
+ : host (: not ([size ])) .ui5-busyindicator-root ,
25
25
: host ([size = "Medium" ]) .ui5-busyindicator-root {
26
- min-width : 5 rem ;
27
- min-height : 2 rem ;
26
+ min-width : 3 rem ;
27
+ min-height : 1 rem ;
28
28
}
29
29
30
+ : host (: not ([size ])) .ui5-busyindicator-circle ,
30
31
: host ([size = "Medium" ]) .ui5-busyindicator-circle {
31
- width : 0.5rem ;
32
- height : 0.5rem ;
33
- margin : 0 0.4rem ;
32
+ width : 1rem ;
33
+ height : 1rem ;
34
34
}
35
35
36
36
: host ([size = "Large" ]) .ui5-busyindicator-root {
37
- min-width : 8 rem ;
38
- min-height : 3 rem ;
37
+ min-width : 6 rem ;
38
+ min-height : 2 rem ;
39
39
}
40
40
41
41
: host ([size = "Large" ]) .ui5-busyindicator-circle {
42
- width : 1rem ;
43
- height : 1rem ;
44
- margin : 0 .75rem ;
42
+ width : 2rem ;
43
+ height : 2rem ;
45
44
}
46
45
47
46
.ui5-busyindicator-root {
97
96
98
97
@keyframes grow {
99
98
0% , 50% , 100% {
100
- -webkit-transform : scale (1.0 );
101
- -moz-transform : scale (1.0 );
102
- -ms-transform : scale (1.0 );
103
- transform : scale (1.0 );
99
+ -webkit-transform : scale (0.5 );
100
+ -moz-transform : scale (0.5 );
101
+ -ms-transform : scale (0.5 );
102
+ transform : scale (0.5 );
104
103
}
105
104
25% {
106
- -webkit-transform : scale (2.5 );
107
- -moz-transform : scale (2.5 );
108
- -ms-transform : scale (2.5 );
109
- transform : scale (2.5 );
105
+ -webkit-transform : scale (1 );
106
+ -moz-transform : scale (1 );
107
+ -ms-transform : scale (1 );
108
+ transform : scale (1 );
110
109
}
111
110
}
Original file line number Diff line number Diff line change 31
31
< ui5-title > Medium ui5-busyindicator</ ui5-title >
32
32
< ui5-busyindicator size ="Medium " active id ="indicator1 "> </ ui5-busyindicator >
33
33
34
- < br />
35
- < br />
34
+ < br />
35
+ < br />
36
36
< ui5-busyindicator size ="Medium " active id ="indicator2 "> </ ui5-busyindicator >
37
37
38
- < br />
39
- < br />
38
+ < br />
39
+ < br />
40
40
41
41
< ui5-busyindicator size ="Medium " active >
42
42
< ui5-button > Hello World</ ui5-button >
43
43
</ ui5-busyindicator >
44
44
45
- < br />
46
- < br />
45
+ < br />
46
+ < br />
47
47
< ui5-busyindicator size ="Medium " active >
48
48
< ui5-checkbox text ="Hello World "> </ ui5-checkbox >
49
49
</ ui5-busyindicator >
50
50
51
- < br />
52
- < br />
51
+ < br />
52
+ < br />
53
53
54
54
< ui5-button id ="fetch-btn " style ="width: 120px; "> Fetch List Data</ ui5-button >
55
55
< br >
65
65
< br >
66
66
67
67
< ui5-busyindicator size ="Medium " active style ="width: 500px; margin-left: 100px ">
68
- < ui5-list style ="width: 100%; border: 1px solid black; ">
69
- < ui5-li > Item 1</ ui5-li >
70
- < ui5-li > Item 2</ ui5-li >
71
- < ui5-li > Item 3</ ui5-li >
72
- </ ui5-list >
73
- </ ui5-busyindicator >
68
+ < ui5-list style ="width: 100%; border: 1px solid black; ">
69
+ < ui5-li > Item 1</ ui5-li >
70
+ < ui5-li > Item 2</ ui5-li >
71
+ < ui5-li > Item 3</ ui5-li >
72
+ </ ui5-list >
73
+ </ ui5-busyindicator >
74
+
75
+ < br >
76
+ < br >
77
+ < br >
78
+
79
+ < span > Medium (default) </ span >
80
+ < br >
81
+ < br >
82
+
83
+ < ui5-busyindicator active > </ ui5-busyindicator >
84
+ < br >
85
+ < br >
86
+ < span > Small </ span >
87
+
88
+ < br >
89
+ < br >
90
+ < ui5-busyindicator size ="Small " active > </ ui5-busyindicator >
91
+ < br >
92
+ < br >
93
+ < span > Medium </ span >
94
+
95
+ < br >
96
+ < br >
97
+ < ui5-busyindicator size ="Medium " active > </ ui5-busyindicator >
98
+ < br >
99
+ < br >
100
+ < span > Large </ span >
101
+
102
+ < br >
103
+ < br >
104
+ < ui5-busyindicator size ="Large " active > </ ui5-busyindicator >
105
+ < br >
106
+ < br >
107
+
74
108
75
109
< script >
76
110
const busyIndocator = document . getElementById ( "busy-container" ) ;
You can’t perform that action at this time.
0 commit comments