forked from six-group/six-webcomponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (75 loc) · 2.58 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<script type="module" src="/build/ui-library.esm.js"></script>
<script nomodule src="/build/ui-library.js"></script>
<link rel="stylesheet" href="/build/ui-library.css" />
<title>Spinner</title>
</head>
<body>
<div class="container">
<p>Spinners are used to show the progress of an indeterminate operation.</p>
<section>
<six-spinner></six-spinner>
</section>
<h2>Examples</h2>
<h3>Size</h3>
<p>
Spinners are sized relative to the current font size. To change their size, set the
<code>font-size</code> property on the spinner itself or on a parent element as shown below.
</p>
<section>
<style>
.spinner-demo {
margin-bottom: 2.5rem;
}
six-spinner#medium::part(svg) {
margin-left: 0.5rem;
width: 3.5rem;
height: 3.5rem;
}
six-spinner#large::part(svg) {
margin-left: 2.5rem;
width: 5rem;
height: 5rem;
}
</style>
<div class="spinner-demo">
<six-spinner></six-spinner>
<six-spinner style="font-size: 2rem"></six-spinner>
<six-spinner style="font-size: 5rem"></six-spinner>
</div>
<div class="spinner-demo">
<six-spinner logo="six"></six-spinner>
<six-spinner id="medium" logo="six"></six-spinner>
<six-spinner id="large" logo="six"></six-spinner>
</div>
</section>
<h3>Stroke Width</h3>
<p>The width of the spinner can be changed by setting the <code>--stroke-width</code> custom property.</p>
<section>
<six-spinner style="font-size: 2rem; --stroke-width: 6px"></six-spinner>
</section>
<h3>Color</h3>
<p>
The spinner's colors can be changed by setting the <code>--indicator-color</code> and
<code>--track-color</code> custom properties.
</p>
<section>
<six-spinner style="font-size: 2rem; --indicator-color: green"></six-spinner>
</section>
<h3>SIX Logo</h3>
<p>Spinner can be configured as animated SIX logo.</p>
<section>
<six-spinner logo="six"></six-spinner>
</section>
<h3>BME Logo</h3>
<p>Spinner can be configured as animated BME logo.</p>
<section>
<six-spinner logo="bme"></six-spinner>
</section>
</div>
</body>
</html>