forked from aaryan359/projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
106 lines (91 loc) · 1.88 KB
/
style.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/* style.css */
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, lavender, rgb(158, 32, 158));
}
.todo-app {
background-color: #a3dac9;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 300px;
text-align: center;
}
.todo-app h2 {
margin: 0;
font-size: 24px;
color: #333;
display: flex;
justify-content: center;
align-items: center;
}
.todo-app img {
width: 30px;
vertical-align: middle;
margin-left: 10px;
}
.row {
margin: 20px 0;
display: flex;
justify-content: space-between;
border-radius: 10px;
}
#input-box {
width: calc(100% - 60px);
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 8px 12px;
background-color: #28a745;
margin-left: 2px;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #218838;
}
#list-container {
list-style-type: none;
padding: 0;
margin: 0;
text-align: left;
border-radius: 10px;
}
#list-container li {
background-color: #f9f9f9;
padding: 10px;
border: 1px solid #ddd;
margin-top: -1px;
/* Prevent double borders */
border-radius: 5px;
}
#list-container li.checked {
text-decoration: line-through;
color: #999;
background-color: #e9e9e9;
}
#list-container li:not(.checked):hover {
background-color: #f1f1f1;
}
#list-container li span {
color: #ff0000;
cursor: pointer;
font-size: 20px;
margin-left: 220px;
}
#list-container li span:hover {
color: #cc0000;
}