-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
114 lines (97 loc) · 1.76 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
113
114
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f4f4f4;
color: #333;
font-size: 16px;
line-height: 1.6;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 2px solid #eee;
}
.header h2 {
color: #333;
}
.task-input {
margin-bottom: 20px;
display: flex;
gap: 10px;
}
.task-input input[type=text] {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.task-input button {
padding: 10px 20px;
background-color: #5cb85c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.task-input button:hover {
background-color: #449d44;
}
.task-list {
list-style: none;
}
.task {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
background: #f9f9f9;
margin-bottom: 10px;
border-radius: 4px;
}
.task > p {
margin: 0;
}
.delete-task {
background-color: #d9534f;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
padding: 5px 10px;
}
.delete-task:hover {
background-color: #c9302c;
}
@media (max-width: 768px) {
.container {
width: 95%;
margin: 10px auto;
}
.header h2 {
text-align: center;
}
.task-input {
flex-direction: column;
}
.task-input button {
width: 100%;
margin-top: 10px;
}
}