Skip to content

Commit 015f1ce

Browse files
Create styles.css
1 parent d96c2f6 commit 015f1ce

File tree

1 file changed

+157
-0
lines changed

1 file changed

+157
-0
lines changed

ToDoList/sujitmahapatra/styles.css

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
body {
2+
background: linear-gradient(to bottom, #6b46c1, #f9a8b6);
3+
background-repeat: no-repeat; /* Prevent background repetition */
4+
background-attachment: fixed; /* Keep the background fixed */
5+
background-size: cover; /* Cover the entire background */
6+
font-family: Arial, sans-serif;
7+
color: #333;
8+
9+
/* Center the container both horizontally and vertically */
10+
display: flex;
11+
justify-content: center; /* Center horizontally */
12+
align-items: center; /* Center vertically */
13+
min-height: 100vh; /* Ensure the container takes the full viewport height */
14+
}
15+
16+
/* Container Styles */
17+
.container {
18+
width: 90%;
19+
max-width: 450px;
20+
padding: 20px;
21+
background-color: #fff;
22+
border-radius: 10px;
23+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
24+
overflow-x: hidden;
25+
overflow-y: auto;
26+
max-height: 100vh; /* Set a maximum height for the container */
27+
}
28+
29+
/* Title Styles */
30+
.title {
31+
text-align: center;
32+
font-size: 24px;
33+
margin-bottom: 20px;
34+
font-weight: bold;
35+
cursor: pointer;
36+
transition: color 0.3s, transform 0.4s;
37+
font-family: "Montserrat", sans-serif;
38+
}
39+
.title:hover {
40+
color: #6b46c1;
41+
transform: scale(1.50);
42+
}
43+
/* Task Form Styles */
44+
.task-form {
45+
display: flex;
46+
flex-direction: column;
47+
align-items: center;
48+
}
49+
50+
.task-input {
51+
width: 100%;
52+
padding: 10px;
53+
border: 1px solid #ccc;
54+
border-radius: 5px;
55+
margin-bottom: 10px;
56+
font-size: 16px;
57+
}
58+
59+
.add-task-btn {
60+
background-color: #007bff;
61+
color: #fff;
62+
border: none;
63+
border-radius: 5px;
64+
padding: 10px 20px;
65+
cursor: pointer;
66+
font-size: 16px;
67+
}
68+
69+
.add-task-btn:hover {
70+
background-color: #0056b3;
71+
}
72+
73+
/* Task List Styles */
74+
.task-list {
75+
list-style: none;
76+
padding: 0;
77+
}
78+
79+
li {
80+
display: flex;
81+
justify-content: space-between;
82+
align-items: center;
83+
margin: 0;
84+
padding: 10px;
85+
background-color: #f9f9f9;
86+
border-radius: 5px;
87+
margin-bottom: 10px;
88+
font-size: 16px;
89+
}
90+
91+
.completed {
92+
text-decoration: line-through;
93+
opacity: 0.5;
94+
}
95+
96+
.delete-btn {
97+
background-color: #ff3333;
98+
color: #fff;
99+
border: none;
100+
border-radius: 5px;
101+
cursor: pointer;
102+
margin-top: 5px;
103+
padding: 5px 10px;
104+
font-size: 14px;
105+
}
106+
107+
.delete-btn:hover {
108+
background-color: #cc0000;
109+
}
110+
111+
/* Expected Completion Styles */
112+
.expected-completion {
113+
flex-grow: 1; /* Expand to fill available space */
114+
margin-right: 10px; /* Add margin to separate from other buttons */
115+
padding: 5px;
116+
border: 1px solid #ccc;
117+
border-radius: 5px;
118+
font-size: 14px;
119+
}
120+
121+
/* Completed Button Styles */
122+
.complete-btn {
123+
background-color: #33cc33;
124+
color: #fff;
125+
border: none;
126+
border-radius: 5px;
127+
padding: 5px 10px;
128+
font-size: 14px;
129+
cursor: pointer;
130+
}
131+
132+
.complete-btn:hover {
133+
background-color: #2ca02c;
134+
}
135+
/* Clear All Button Styles */
136+
.clear-all-btn {
137+
display: none; /* Hide the button by default */
138+
background-color: #ff3333;
139+
color: #fff;
140+
border: none;
141+
border-radius: 5px;
142+
padding: 10px 20px;
143+
font-size: 14px;
144+
cursor: pointer;
145+
margin-top: 10px;
146+
text-align: center;
147+
}
148+
149+
.clear-all-btn:hover {
150+
background-color: #cc0000;
151+
}
152+
153+
p{
154+
color: grey;
155+
font-size: 13px;
156+
margin-top: 20px;
157+
}

0 commit comments

Comments
 (0)