-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathstyle.css
60 lines (51 loc) · 831 Bytes
/
style.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
}
.container {
display: flex;
gap: 20px;
}
.list {
background-color: #fff;
border-radius: 8px;
padding: 20px;
width: 200px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h2 {
text-align: center;
margin-bottom: 20px;
}
ul {
list-style-type: none;
}
li {
padding: 10px;
margin: 5px 0;
background-color: #4caf50;
color: white;
border-radius: 4px;
cursor: grab;
transition: background-color 0.3s ease;
}
li:hover {
background-color: #45a049;
}
/* When dragging an item */
li.dragging {
opacity: 0.5;
}
.list.over {
border: 2px dashed #4caf50;
background-color: #f9f9f9;
}