-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
112 lines (97 loc) · 1.88 KB
/
styles.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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f7fa;
}
.container {
max-width: 800px;
margin: 50px auto;
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
p {
font-size: 24px;
font-weight: bold;
color: #2c3e50;
text-align: center;
margin-bottom: 20px;
}
.todo-input-grid {
display: grid;
grid-template-columns: 1fr 1fr auto;
column-gap: 10px;
row-gap: 10px;
align-items: center;
margin-bottom: 20px;
}
.todo-grid {
display: grid;
grid-template-columns: 1fr 1fr auto;
column-gap: 10px;
row-gap: 10px;
align-items: center;
}
.name-input,
.due-date-input {
font-size: 15px;
padding: 8px;
border: 1px solid #bdc3c7;
border-radius: 5px;
color: #2c3e50;
}
.add-todo-button {
background-color: #27ae60;
color: white;
border: none;
font-size: 15px;
cursor: pointer;
padding: 8px 12px;
border-radius: 5px;
transition: background-color 0.3s;
}
.add-todo-button:hover {
background-color: #2ecc71;
}
.delete-todo-button {
background-color: #e74c3c;
color: white;
border: none;
font-size: 15px;
cursor: pointer;
padding: 8px 12px;
border-radius: 5px;
transition: background-color 0.3s;
}
.delete-todo-button:hover {
background-color: #c0392b;
}
@media (max-width: 768px) {
.container {
padding: 20px;
}
.todo-input-grid,
.todo-grid {
grid-template-columns: 1fr;
}
.add-todo-button, .delete-todo-button {
width: 100%;
}
}
@media (max-width: 480px) {
p {
font-size: 20px;
}
.name-input,
.due-date-input,
.add-todo-button,
.delete-todo-button {
font-size: 14px;
padding: 6px;
}
.todo-input-grid {
row-gap: 10px;
}
}