-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
113 lines (96 loc) · 1.86 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
* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
.container {
max-width: 500px;
margin: 0 auto;
padding: 20px;
}
.title {
text-align: center;
margin-top: 0;
margin-bottom: 20px;
}
.form {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.form input[type="text"],
.form input[type="number"] {
flex: 1;
padding: 10px;
margin-right: 10px;
border-radius: 4px;
border: 1px solid #ddd;
font-size: 16px;
line-height: 1.5;
transition: border-color 0.2s;
}
.form input[type="text"]:focus,
.form input[type="number"]:focus {
outline: none;
border-color: #4CAF50;
}
.button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.button:hover {
background-color: #3e8e41;
}
.list {
list-style: none;
padding: 0;
margin: 0;
}
.list li {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
margin-bottom: 10px;
background-color: white;
border-radius: 4px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
.list li:last-child {
margin-bottom: 0;
}
.list li span {
flex: 1;
font-size: 16px;
line-height: 1.5;
}
.list li button {
padding: 5px 10px;
background-color: #e74c3c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
margin-left: 10px;
}
.list li button:hover {
background-color: #c0392b;
}
.error {
color: #e74c3c;
margin-top: 10px;
}
.remove-button {
margin-left: 10px;
}