-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
157 lines (141 loc) · 3.18 KB
/
styles.css
File metadata and controls
157 lines (141 loc) · 3.18 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
body {
background: linear-gradient(to bottom, #6b46c1, #f9a8b6);
background-repeat: no-repeat; /* Prevent background repetition */
background-attachment: fixed; /* Keep the background fixed */
background-size: cover; /* Cover the entire background */
font-family: Arial, sans-serif;
color: #333;
/* Center the container both horizontally and vertically */
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
min-height: 100vh; /* Ensure the container takes the full viewport height */
}
/* Container Styles */
.container {
width: 90%;
max-width: 450px;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow-x: hidden;
overflow-y: auto;
max-height: 100vh; /* Set a maximum height for the container */
}
/* Title Styles */
.title {
text-align: center;
font-size: 24px;
margin-bottom: 20px;
font-weight: bold;
cursor: pointer;
transition: color 0.3s, transform 0.4s;
font-family: "Montserrat", sans-serif;
}
.title:hover {
color: #6b46c1;
transform: scale(1.50);
}
/* Task Form Styles */
.task-form {
display: flex;
flex-direction: column;
align-items: center;
}
.task-input {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
font-size: 16px;
}
.add-task-btn {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
}
.add-task-btn:hover {
background-color: #0056b3;
}
/* Task List Styles */
.task-list {
list-style: none;
padding: 0;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0;
padding: 10px;
background-color: #f9f9f9;
border-radius: 5px;
margin-bottom: 10px;
font-size: 16px;
}
.completed {
text-decoration: line-through;
opacity: 0.5;
}
.delete-btn {
background-color: #ff3333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 5px;
padding: 5px 10px;
font-size: 14px;
}
.delete-btn:hover {
background-color: #cc0000;
}
/* Expected Completion Styles */
.expected-completion {
flex-grow: 1; /* Expand to fill available space */
margin-right: 10px; /* Add margin to separate from other buttons */
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 14px;
}
/* Completed Button Styles */
.complete-btn {
background-color: #33cc33;
color: #fff;
border: none;
border-radius: 5px;
padding: 5px 10px;
font-size: 14px;
cursor: pointer;
}
.complete-btn:hover {
background-color: #2ca02c;
}
/* Clear All Button Styles */
.clear-all-btn {
display: none; /* Hide the button by default */
background-color: #ff3333;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 14px;
cursor: pointer;
margin-top: 10px;
text-align: center;
}
.clear-all-btn:hover {
background-color: #cc0000;
}
p{
color: grey;
font-size: 13px;
margin-top: 20px;
}