forked from bvaughn/react-virtualized
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhover.html
43 lines (42 loc) · 942 Bytes
/
hover.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>foo</title>
<style type="text/css">
body, html, #mount {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 12px;
}
* {
box-sizing: border-box;
}
.item {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #eee;
}
.item:hover {
background-color: rgba(0, 0, 0, .2);
}
.hoveredItem {
background-color: rgba(0, 0, 0, .1);
}
</style>
</head>
<body>
<div id="mount"></div>
<script src="utils.js"></script>
<script src="helper.js"></script>
<script>
loadReact();
loadScriptsAndStyles('hover.js');
</script>
</body>
</html>