-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
199 lines (173 loc) · 3.77 KB
/
main.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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
:root {
--background-color: #111827; /* Dark background */
--text-color: #ffffff; /* White text */
--input-background: #374151; /* Dark input background */
--done-color: green; /* Green for Done button */
--delete-color: crimson; /* Red for Delete button */
--gradient-color-start: #ec4899; /* Pink for Add/Edit buttons */
--gradient-color-end: #8b5cf6; /* Purple for Add/Edit buttons */
}
.light-theme {
--background-color: #7b87c4; /* Light background */
--text-color: #eaeaea; /* Dark text */
--input-background: #ffffff; /* Light input background */
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Fira Sans", sans-serif;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: var(--background-color); /* Dynamic background */
color: var(--text-color); /* Dynamic text color */
}
header {
padding: 2rem 1rem;
max-width: 800px;
width: 100%;
margin: 0 auto;
}
header h1 {
font-size: 2.5rem;
font-weight: 300;
margin-bottom: 1rem;
color: var(--text-color); /* Dynamic text color */
}
#new-task-form {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
input,
button {
appearance: none;
border: none;
outline: none;
background: none;
}
#new-task-input,
#new-task-date {
flex: 1;
padding: 1rem;
border-radius: 1rem;
color: var(--text-color); /* Dynamic text color */
font-size: 1.25rem;
background-color: var(--input-background); /* Dynamic input background */
border: 1px solid var(--input-background);
}
#new-task-input::placeholder,
#new-task-date::placeholder {
color: var(--text-color); /* Dynamic text color */
padding-right: 1rem;
}
#new-task-priority {
padding-left: 0.5rem;
}
#new-task-submit {
background-image: linear-gradient(
to right,
var(--gradient-color-start),
var(--gradient-color-end)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 1.25rem;
font-weight: 700;
cursor: pointer;
text-transform: uppercase; /* All caps */
transition: 0.4s;
}
#new-task-submit:hover {
opacity: 0.8;
}
#theme-selector {
margin-top: 10px;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
background-color: var(
--input-background
); /* Button background changes dynamically */
color: var(--text-color); /* Button text color */
border: 1px solid var(--input-background);
cursor: pointer;
}
main {
flex: 1;
padding: 2rem 1rem;
max-width: 800px;
width: 100%;
margin: 0 auto;
}
.task-list {
padding: 1rem;
}
.task {
display: flex;
justify-content: space-between;
background-color: #1f2937; /* Dark task background */
padding: 1rem;
border-radius: 1rem;
margin-bottom: 1rem;
border: 1px solid #374151;
}
.text {
color: var(--text-color); /* Dynamic text color */
}
.date {
color: var(--text-color); /* Dynamic text color */
}
.actions {
display: flex;
align-items: center;
}
.done {
color: var(--done-color); /* Green Done button */
font-size: 1.125rem;
font-weight: 700;
text-transform: uppercase; /* All caps */
margin-right: 0.5rem;
cursor: pointer;
transition: 0.4s;
}
.done:hover {
opacity: 0.8;
}
.done:active {
opacity: 0.6;
}
.delete {
color: var(--delete-color); /* Red Delete button */
font-size: 1.125rem;
font-weight: 700;
text-transform: uppercase; /* All caps */
cursor: pointer;
transition: 0.4s;
}
.delete:hover {
opacity: 0.8;
}
.edit {
background-image: linear-gradient(
to right,
var(--gradient-color-start),
var(--gradient-color-end)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
cursor: pointer;
font-size: 1.125rem;
font-weight: 700;
margin-right: 0.5rem;
text-transform: uppercase; /* All caps */
transition: 0.4s;
}
.edit:hover {
opacity: 0.8;
}
.edit:active {
opacity: 0.6;
}