-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
96 lines (84 loc) · 1.4 KB
/
style.css
File metadata and controls
96 lines (84 loc) · 1.4 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
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #d16ba5, #86a8e7, #5ffbf1);
}
/* Container */
.container {
background: #1e3a8a; /* navy blue */
padding: 20px;
border-radius: 15px;
width: 400px;
text-align: center;
box-shadow: 0px 4px 20px rgba(0,0,0,0.2);
}
h1 {
color: #fff;
margin-bottom: 15px;
}
/* Input area */
.input-area {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
#taskInput {
flex: 1;
padding: 10px;
border-radius: 8px;
border: none;
outline: none;
}
#addTaskBtn {
padding: 10px 15px;
background: lightgreen;
border: none;
border-radius: 8px;
cursor: pointer;
transition: 0.3s;
}
#addTaskBtn:hover {
background: #32cd32;
}
/* Task list */
ul {
list-style: none;
max-height: 250px;
overflow-y: auto;
padding: 0;
}
.task-item {
background: #fff;
margin-bottom: 10px;
padding: 10px;
border-radius: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.task-left {
display: flex;
align-items: center;
gap: 8px;
}
.actions button {
margin-left: 5px;
border: none;
background: transparent;
cursor: pointer;
font-size: 16px;
}
/* Completed task style */
.completed {
text-decoration: line-through;
color: #aaa;
}