-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
78 lines (64 loc) · 1.18 KB
/
test.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
<html>
<head>
<style>
* {
margin: 0;
padding: 0;
}
#grid-div {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 20px;
}
#grid-div > div {
height: 200px;
}
#element-1 {
background: #aaffaa;
grid-column: 1/3;
grid-row: 1;
opacity: 0.5;
}
#element-2 {
background: #aaaaff;
grid-column: 2/4;
grid-row: 1;
opacity: 0.5;
}
.icon-bike {
-webkit-mask: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/icon-bike-black.svg);
}
.icon-bell {
-webkit-mask: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/icon-bell-black.svg);
}
.icon-arrow {
-webkit-mask: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/icon-arrow-black.svg);
}
.icon {
display: inline-block;
width: 70px;
height: 70px;
background: black;
-webkit-mask-size: cover;
}
.icon:hover,
.icon:focus {
background: red;
}
body {
display: grid;
height: 100vh;
margin: 0;
place-items: center center;
}
</style>
</head>
<body>
<div>
<span class="icon icon-bike"></span>
<span class="icon icon-bell"></span>
<span class="icon icon-arrow"></span>
</div>
</body>
</html>