-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (111 loc) · 2.02 KB
/
style.css
File metadata and controls
129 lines (111 loc) · 2.02 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
* {
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: linear-gradient(135deg, #74ABE2, #5563DE);
color: #fff;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
background: rgba(255, 255, 255, 0.1);
padding: 30px;
border-radius: 20px;
width: 350px;
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
h1 {
text-align: center;
margin-bottom: 20px;
}
.input-group {
display: flex;
margin-bottom: 20px;
}
#taskInput {
flex: 1;
padding: 10px;
border: none;
outline: none;
border-radius: 10px 0 0 10px;
}
#addBtn {
padding: 10px 15px;
border: none;
cursor: pointer;
background: #00bfa6;
color: white;
border-radius: 0 10px 10px 0;
transition: 0.3s;
}
#addBtn:hover {
background: #00a18b;
}
ul {
list-style-type: none;
padding: 0;
}
li {
background: rgba(255, 255, 255, 0.15);
margin: 8px 0;
padding: 10px;
border-radius: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
li.completed {
text-decoration: line-through;
opacity: 0.6;
}
button.delete {
background: #ff5e5e;
border: none;
color: white;
padding: 5px 10px;
border-radius: 6px;
cursor: pointer;
}
button.delete:hover {
background: #e14b4b;
}
:root {
--bg-color: linear-gradient(135deg, #1e1f29, #2a2b38);
--text-color: #ffffff;
--card-color: rgba(255, 255, 255, 0.1);
--accent: #00bfa6;
}
.light-mode {
--bg-color: linear-gradient(135deg, #f1f3f6, #e0e5ec);
--text-color: #222;
--card-color: rgba(0, 0, 0, 0.05);
--accent: #007bff;
}
body {
background: var(--bg-color);
color: var(--text-color);
transition: all 0.4s ease;
}
#themeToggle {
position: absolute;
top: 20px;
right: 20px;
background: var(--accent);
border: none;
border-radius: 50%;
padding: 10px;
color: white;
cursor: pointer;
font-size: 18px;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#themeToggle:hover {
opacity: 0.9;
}
.container {
background: var(--card-color);
backdrop-filter: blur(12px);
}