-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
83 lines (71 loc) · 1.24 KB
/
styles.css
File metadata and controls
83 lines (71 loc) · 1.24 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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #ddc4fb;
}
header {
background-color: #6f03f2;
color: white;
text-align: center;
padding: 1rem 0;
}
main {
max-width: 800px;
margin: 20px auto;
padding: 2rem;
background:white;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.task-form {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
padding-bottom: 20px;
border-bottom: 2px solid #ddd;
}
.task-form label {
min-width: 75px;
}
.task-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Creates a grid layout that adapts to the width of the tasks */
gap: 10px;
padding: 10px;
}
.task {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
background: #fff;
}
.task p {
margin: 5px 0;
}
.task button {
background-color: #28a745;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
padding: 5px;
}
.task .edit-task {
background-color: #ffc107;
}
.task .delete-task {
background-color: #dc3545;
}
/* Responsive adjustments */
@media (max-width: 600px) {
.task-form {
flex-direction: column;
}
.task-form label {
min-width: 100%;
}
}