-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
176 lines (152 loc) · 3.32 KB
/
Copy pathstyle.css
File metadata and controls
176 lines (152 loc) · 3.32 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Segoe UI", sans-serif;
}
body {
background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
min-height: 100vh;
padding: 2rem;
display: flex;
flex-direction: column;
align-items: center;
color: #eee;
}
/* Input & Button */
#taskInput {
padding: 0.8rem 1rem;
font-size: 1rem;
width: 250px;
border: none;
border-radius: 8px;
margin-right: 10px;
margin-bottom: 10px;
background-color: #2d3748;
color: #f0f0f0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
transition: box-shadow 0.3s ease;
}
#taskInput::placeholder {
color: #aaa;
}
#taskInput:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
#addTaskBtn {
padding: 0.8rem 1.2rem;
font-size: 1rem;
border: none;
border-radius: 8px;
background: linear-gradient(to right, #8800ff, #5100ff);
color: white;
cursor: pointer;
transition: background 0.5s ease, transform 0.2s ease;
}
#addTaskBtn:hover {
background: linear-gradient(to right, #2c0083, #460083);
transform: scale(1.05);
}
/* Task List */
#taskContainer {
margin-top: 2rem;
width: 100%;
max-width: 500px;
display: flex;
flex-direction: column;
gap: 1rem;
}
/* Task Item */
#taskContainer > div {
background: #1e293b;
padding: 1rem;
border-radius: 10px;
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: transform 0.2s ease, box-shadow 0.3s ease;
}
/* Completed task override */
#taskContainer > div:has(button) {
font-weight: 500;
}
#taskContainer > div:has(button):has(:not(:hover)) {
transition: color 0.3s ease;
}
/* This JS output format includes ✅ or ❌, so we'll use that */
#taskContainer > div:contains("✅") {
color: #4ade80; /* green for completed */
}
#taskContainer > div:active {
cursor: grabbing;
transform: scale(1.02);
box-shadow: 0 8px 14px rgba(0, 0, 0, 0.5);
}
/* Delete Button */
#taskContainer button {
border: none;
background: none;
font-size: 1.2rem;
cursor: pointer;
transition: transform 0.2s ease;
color: #f43f5e;
}
#taskContainer button:hover {
transform: scale(1.3);
color: #f87171;
}
header {
text-align: center;
margin-bottom: 2rem;
}
h1 {
font-size: 2.5rem;
color: #f9fafb;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}
.subtitle {
font-size: 1.1rem;
color: #cbd5e1;
margin-top: 0.5rem;
letter-spacing: 1px;
}
footer {
margin-top: 3rem;
text-align: center;
}
.instruction {
color: #94a3b8;
font-size: 0.9rem;
font-style: italic;
margin-top: 1rem;
}
/* Status Label */
.status {
font-size: 0.85rem;
font-style: italic;
padding-left: 10px;
opacity: 0.85;
}
.status.completed {
color: #4ade80; /* Green */
}
.status.pending {
color: #f87171; /* Red */
}
/* Ensure task div still has correct layout */
#taskContainer > div {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap; /* Ensures responsiveness if text is long */
}
.task {
color: #f87171; /* red for pending by default */
}
.task.completed {
color: #4ade80; /* green for completed */
}