forked from cmartinezv/star-rating
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
59 lines (53 loc) · 1.58 KB
/
demo.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
<!doctype html>
<html>
<head>
<title>Star rating Demo</title>
<script src="../webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="star-rating.html">
<!-- Importing a different icon pack for custom icons -->
<link rel="import" href="../iron-icons/social-icons.html">
<style>
body {
background: #fafafa;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #333;
}
.custom-wrapper{
background: #333;
margin: -10px;
}
.custom-class .star-rating-wrapper > span{
padding: 2px;
padding-top: 5px;
padding-bottom: 5px;
font-size: 2em;
}
.gold .star-rating-wrapper > span{
color : gold;
}
.pink .star-rating-wrapper > span{
color : pink;
}
</style>
</head>
<body unresolved>
<h3>Default behaviour:</h3>
<star-rating></star-rating>
<star-rating icon="face"></star-rating>
<star-rating icon="heart"></star-rating>
<h3>Using customcharicon:</h3>
<star-rating customcharicon="thumb-up"></star-rating>
<star-rating customcharicon="social:person"></star-rating>
<h3>Custom number of stars:</h3>
<star-rating stars="10"></star-rating>
<h3>Default rate selected:</h3>
<star-rating stars="10" rate="2"></star-rating>
<h3>Custom styles:</h3>
<div class="custom-wrapper gold">
<star-rating showtotals="true" stars="12" rate="7" class="custom-class"></star-rating>
</div>
<div class="custom-wrapper pink">
<star-rating showtotals="true" icon="heart" stars="12" rate="4" class="custom-class"></star-rating>
</div>
</body>
</html>