-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
70 lines (66 loc) · 1.29 KB
/
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
61
62
63
64
65
66
67
68
69
70
:root {
--primary-red: rgb(162, 50, 18);
}
* {
box-sizing: border-box;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body{
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: var(--primary-red);
}
.container {
width: 300px;
box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
padding: 10px 0;
display: flex;
justify-content: center;
align-items: center;
background: white;
border-radius: 5px;
}
.sortable-list {
width: 95%;
margin: 0;
padding: 0;
}
.item {
list-style-type: none;
display: flex;
align-items: center;
justify-content: space-between;
padding: 2px 5px;
margin-bottom: 5px;
border: 1px solid #aaa;
cursor: grab;
border-radius: 5px;
border-left: 2px solid var(--primary-red);
background: white;
}
.item:hover {
background: linear-gradient(to right,white ,rgba(162, 50, 18, 0.1),white);
}
.item-detail {
display: flex;
align-items: center;
max-width: 230px;
}
.item-name {
font-size: 16px;
margin-left: 10px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.item-pic {
height: 40px;
width: 40px;
border-radius: 50%;
}
.dragged :where(.item-detail, i){
opacity: 0;
}