-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
170 lines (143 loc) · 2.85 KB
/
app.css
File metadata and controls
170 lines (143 loc) · 2.85 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
body {
font-family: "Arial", sans-serif;
background: linear-gradient(145deg, #3d3d3d, #2e2e2e);
margin: 0;
padding: 0;
text-align: center;
}
h1 {
color: #004080;
margin-bottom: 30px;
font-size: 50px;
font-weight: bolder;
background-color: greenyellow;
}
.input-area {
margin-bottom: 30px;
}
input {
width: 300px;
padding: 12px;
margin: 10px 5px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 16px;
outline: none;
}
input:focus {
border-color: #0077cc;
}
/* Add Task Button */
#addBtn {
background-color: #28a745;
color: white;
padding: 12px 20px;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
}
#addBtn:hover {
background-color: black;
}
/* Task List Container */
#body {
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 30px;
align-items: center;
}
/* Each Task Card */
#body > div {
background-color: white;
width: 400px;
padding: 20px;
border-radius: 12px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
text-align: left;
}
/* Task Name */
#body h2 {
margin: 0;
color: #333;
}
/* Task Description (list) */
#body ul {
margin: 10px 0;
padding-left: 20px;
}
#body li {
font-size: 16px;
margin-bottom: 6px;
}
/* Action Buttons */
#body button {
margin-top: 10px;
margin-right: 10px;
padding: 8px 15px;
font-size: 14px;
border: none;
border-radius: 6px;
cursor: pointer;
}
/* Delete Button */
#body button:nth-child(3) {
background-color: #dc3545;
color: white;
}
#body button:nth-child(3):hover {
background-color: #c82333;
}
/* Update Button */
#body button:nth-child(4) {
background-color: #007bff;
color: white;
}
#body button:nth-child(4):hover {
background-color: #0069d9;
}
/* Media Query for smaller screens */
@media (max-width: 768px) {
h1 {
font-size: 40px; /* Adjust heading size */
}
.input-area {
display: flex;
flex-direction: column;
align-items: center;
}
input {
width: 80%; /* Make inputs take more width on smaller screens */
}
#addBtn {
width: 80%; /* Make the button take more width on smaller screens */
}
#body > div {
width: 90%; /* Adjust task card width */
}
/* Buttons within task cards */
#body button {
width: 100%; /* Make buttons take up full width in task cards */
margin: 5px 0; /* Adjust button spacing */
}
/* Adjust task list container alignment */
#body {
align-items: flex-start;
}
}
/* Media Query for even smaller screens (mobile devices) */
@media (max-width: 480px) {
h1 {
font-size: 30px; /* Further adjust heading size */
}
.input-area input {
width: 80%; /* Make inputs nearly full width on very small screens */
}
#addBtn {
width: 90%; /* Make the add button nearly full width on small screens */
}
#body > div {
width: 95%; /* Make task cards full width on very small screens */
}
}