-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (104 loc) · 2.04 KB
/
Copy pathstyle.css
File metadata and controls
119 lines (104 loc) · 2.04 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
108
109
110
111
112
113
114
115
116
117
118
119
/* Base Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f4f7f6;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding-top: 5rem;
}
/* Container Styling */
.todo-container {
background: #ffffff;
width: 100%;
max-width: 400px;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 1.5rem;
}
/* Input Section */
.input-group {
display: flex;
gap: 10px;
margin-bottom: 1.5rem;
}
#task-input {
flex: 1;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 1rem;
outline: none;
transition: border-color 0.3s;
}
#task-input:focus {
border-color: #5c6bc0;
}
#add-btn {
padding: 10px 20px;
background-color: #5c6bc0;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s;
}
#add-btn:hover {
background-color: #3f51b5;
}
/* List Styling */
#todo-list {
list-style: none;
}
#todo-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
background-color: #f9f9f9;
margin-bottom: 8px;
border-radius: 6px;
border-left: 4px solid #5c6bc0;
transition: all 0.3s ease;
}
.task-text {
flex: 1;
cursor: pointer;
font-size: 1rem;
color: #333;
}
/* Completed State */
#todo-list li.completed {
border-left-color: #4caf50;
background-color: #f1f8f1;
}
#todo-list li.completed .task-text {
text-decoration: line-through;
color: #888;
}
/* Delete Button */
.delete-btn {
background-color: #ff5252;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 0.85rem;
transition: background-color 0.3s;
}
.delete-btn:hover {
background-color: #e53935;
}