-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyle.css
More file actions
115 lines (101 loc) · 2.17 KB
/
style.css
File metadata and controls
115 lines (101 loc) · 2.17 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
/* Basic Reset and Body Styling */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f0f2f5;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding-top: 50px;
margin: 0;
}
/* Main Container */
.container {
background: #ffffff;
padding: 40px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
width: 90%;
max-width: 450px;
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 1.8em;
}
/* Input Area */
.input-area {
display: flex;
margin-bottom: 25px;
}
#task-input {
flex-grow: 1;
padding: 12px;
border: 2px solid #ddd;
border-radius: 8px 0 0 8px;
font-size: 16px;
transition: border-color 0.3s;
}
#task-input:focus {
border-color: #4CAF50;
outline: none;
}
#add-button {
padding: 12px 20px;
border: none;
background-color: #4CAF50; /* Primary Green */
color: white;
cursor: pointer;
border-radius: 0 8px 8px 0;
font-size: 16px;
font-weight: bold;
transition: background-color 0.3s;
}
#add-button:hover {
background-color: #45a049;
}
/* Task List Styling */
#task-list {
list-style: none;
padding: 0;
}
#task-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
margin-bottom: 10px;
background: #f9f9f9;
border-left: 5px solid #ccc;
border-radius: 8px;
transition: background 0.3s, border-left-color 0.3s;
cursor: pointer;
}
/* Styling for Completed Tasks */
#task-list li.completed {
background: #e6ffe6; /* Light green background */
border-left-color: #4CAF50; /* Green checkmark color */
color: #888;
}
#task-list li.completed .task-text {
text-decoration: line-through;
}
/* Delete Button within the li */
.delete-btn {
background: none;
border: none;
color: #e74c3c; /* Red color */
font-size: 1.2em;
cursor: pointer;
margin-left: 15px;
transition: color 0.3s, transform 0.2s;
}
.delete-btn:hover {
color: #c0392b;
transform: scale(1.1);
}
.task-text {
flex-grow: 1;
word-wrap: break-word;
}