-
-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (92 loc) · 1.52 KB
/
style.css
File metadata and controls
107 lines (92 loc) · 1.52 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
body {
background-color: #f4f4f4;
padding: 40px;
}
.todo-container {
max-width: 500px;
margin: 0 auto;
background: white;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
margin-bottom: 20px;
}
.todo-input {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.todo-input input {
flex: 1;
padding: 10px;
font-size: 16px;
border-radius: 6px;
border: 1px solid #ccc;
}
.todo-input button {
padding: 10px;
font-size: 16px;
background-color: #4caf50;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
.todo-input button:hover {
background-color: #45a049;
}
.todo-list {
list-style-type: none;
padding-left: 0;
}
.todo-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 6px;
background-color: #fff;
}
.description {
flex: 1;
margin-right: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.actions {
display: flex;
gap: 10px;
}
.actions button {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
}
.complete-btn i {
color: green;
}
.delete-btn i {
color: red;
}
.todo-item.completed .description {
text-decoration: line-through;
color: gray;
}