forked from emersonmellado/nodebc_exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
91 lines (83 loc) · 2.72 KB
/
test.html
File metadata and controls
91 lines (83 loc) · 2.72 KB
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
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<body>
<style>
.product-card {
display: block;
flex-grow: 0;
flex-shrink: 0;
margin: 0 10px 20px 10px;
background: #fff;
width: 242px;
padding: 10px 0 25px 0;
box-sizing: border-box;
box-shadow: 0px 0px 1px rgba(0, 0, 0, .1), 1px 1px 2px rgba(0, 0, 0, .1);
border-radius: 4px;
text-align: center;
}
.star {
display: inline-block;
width: 10px;
height: 10px;
background-image: url("https://raw.githubusercontent.com/Rosey/pxu-product-card/master/src/star.svg");
background-repeat: no-repeat;
margin-right: 3px;
}
.star-rating-summary[data-star-rating="0"] .star {
opacity: .3;
}
.star-rating-summary[data-star-rating="1"] .star:nth-child(n+2) {
opacity: .3;
}
.star-rating-summary[data-star-rating="2"] .star:nth-child(n+3) {
opacity: .3;
}
.star-rating-summary[data-star-rating="3"] .star:nth-child(n+4) {
opacity: .3;
}
.star-rating-summary[data-star-rating="4"] .star:nth-child(n+5) {
opacity: .3;
}
</style>
<div class="product-card">
Music:
<div class="star-rating-summary" data-star-rating=3>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
</div>
Acting:
<div class="star-rating-summary" data-star-rating=2>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
</div>
Photography:
<div class="star-rating-summary" data-star-rating=3>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
</div>
<div class="star-rating-summary" data-star-rating=4>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
</div>
<div class="star-rating-summary" data-star-rating=5>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
</div>
</div>
</body>
</html>