-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
67 lines (67 loc) · 1.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
<html>
<head>
<meta charset="utf-8">
<title>Dragarea</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background: #fff;
font-family: sans-serif;
}
#app {
padding: 0;
width: 100%;
margin: auto;
text-align: center;
}
.wrapper {
padding: 50px;
background: yellow;
}
.droparea {
background: #028090;
padding: 40px 0;
border-radius: 10 px;
border: 5px solid transparent;
}
.droparea.is-active {
background: blue;
border: 5px solid red;
}
.droparea-item {
width: 300px;
height: 300px;
background: #00A896;
display: inline-block;
margin: 20px;
line-height: 40px;
vertical-align: top;
}
.droparea-item.active {
background: aqua;
}
.draggable {
width: 100px;
height: 100px;
background: red;
position: absolute;
z-index: 2;
top: 10px;
left: 10px;
}
.droparea-inner-item {
background: purple;
}
.droparea-inner-item.active {
background: green;
}
</style>
</head>
<body>
<section id="app"></section>
<script src="bundle.js"></script>
</body>
</html>