-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
70 lines (61 loc) · 1.05 KB
/
styles.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
body {
font-family: 'Arial', sans-serif;
display: flex;
flex-direction: column; /* この行を追加 */
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
h1 {
margin-bottom: 1rem;
}
#task-form {
display: flex;
margin-bottom: 1rem;
}
#task-input {
flex: 1;
padding: 0.5rem;
outline: none;
border: 1px solid #ccc;
}
button {
padding: 0.5rem 1rem;
background-color: #007bff;
color: #fff;
border: none;
cursor: pointer;
}
ul {
padding: 0;
list-style-type: none;
}
li {
background-color: #fff;
padding: 0.5rem;
margin-bottom: 0.5rem;
display: flex;
justify-content: space-between;
align-items: center;
/* この行を追加 */
user-drag: element;
-webkit-user-drag: element;
cursor: move;
/* この行まで */
}
li.completed {
text-decoration: line-through;
color: #ccc;
}
.delete-btn {
background-color: #f44336;
color: #fff;
border: none;
cursor: pointer;
padding: 0.5rem;
}
button {
user-select: none; /* この行を追加 */
}