-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
143 lines (121 loc) · 2.34 KB
/
style.css
File metadata and controls
143 lines (121 loc) · 2.34 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* Previous styles remain the same until li */
:root {
--primary: #4f46e5;
--success: #16a34a;
--danger: #dc2626;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
body {
font-family: system-ui, -apple-system, sans-serif;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
min-height: 100vh;
margin: 0;
padding: 20px;
}
.container {
max-width: 600px;
margin: 40px auto;
padding: 32px;
border-radius: 16px;
background: white;
box-shadow: var(--shadow);
}
h1 {
color: var(--primary);
font-size: 2rem;
margin-bottom: 1.5rem;
font-weight: 700;
}
input[type="text"] {
width: calc(100% - 120px);
padding: 12px 16px;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s;
}
input[type="text"]:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
button {
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s;
}
#addButton {
background: var(--primary);
color: white;
border: none;
}
#addButton:hover {
background: #4338ca;
transform: translateY(-1px);
}
ul {
margin-top: 2rem;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border-radius: 12px;
background: #f8fafc;
margin-bottom: 12px;
border: 1px solid #e2e8f0;
transition: all 0.3s;
}
li:hover {
transform: translateX(4px);
box-shadow: var(--shadow);
}
li.completed {
background: #f0fdf4;
border-color: #86efac;
}
.task-text {
font-size: 1.1rem;
color: #1e293b;
margin-right: 16px;
}
li.completed .task-text {
text-decoration: line-through;
color: #64748b;
}
.action-buttons {
display: flex;
gap: 8px;
}
.action-buttons button {
padding: 8px 16px;
font-size: 0.875rem;
margin: 0;
}
.complete-button {
background: var(--success);
color: white;
border: none;
}
.complete-button:hover {
background: #15803d;
}
.delete-button {
background: var(--danger);
color: white;
border: none;
}
.delete-button:hover {
background: #b91c1c;
}
@media (max-width: 480px) {
.container {
padding: 20px;
margin: 20px;
}
input[type="text"] {
width: calc(100% - 90px);
}
}