-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
88 lines (79 loc) · 1.55 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* Container for the to-do list */
.to-do-list {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #f7f7f7;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
/* Title styling */
.to-do-list h1 {
font-size: 2rem;
color: #333;
margin-bottom: 20px;
}
/* Input field styling */
.to-do-list input[type="text"] {
padding: 10px;
font-size: 1rem;
border: 2px solid #ccc;
border-radius: 5px;
width: 70%;
margin-right: 10px;
box-sizing: border-box;
}
/* Add button styling */
.add-button {
padding: 10px 15px;
font-size: 1rem;
color: #fff;
background-color: #28a745;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.add-button:hover {
background-color: #218838;
}
/* List styling */
.to-do-list ol {
list-style-type: decimal;
padding-left: 0;
margin-top: 20px;
}
/* List item styling */
.to-do-list li {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
margin-bottom: 10px;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Task text styling */
.to-do-list .text {
font-size: 1.1rem;
color: #333;
flex-grow: 1;
text-align: left;
}
/* Delete button styling */
.delete-button {
padding: 5px 10px;
font-size: 0.9rem;
color: #fff;
background-color: #dc3545;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 10px;
transition: background-color 0.3s ease;
}
.delete-button:hover {
background-color: #c82333;
}