-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
135 lines (119 loc) · 2.06 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Global Reset & Body */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 40px 20px;
min-height: 100vh;
}
/* Container */
.container {
background: #ffffff;
width: 400px;
padding: 24px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
/* Headings */
h1 {
font-size: 1.8rem;
color: #333;
margin-bottom: 8px;
}
.subtitle {
font-size: 0.95rem;
color: #777;
margin-bottom: 20px;
}
/* Form */
#itemForm {
display: flex;
flex-direction: column;
gap: 16px;
margin-bottom: 16px;
}
.form-group {
text-align: left;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-weight: bold;
font-size: 0.9rem;
color: #555;
}
.form-group input {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Buttons */
.add-button {
background-color: #4caf50;
color: #ffffff;
padding: 12px 16px;
font-size: 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
width: 100%;
}
.add-button:hover {
background-color: #45a049;
}
/* Empty Message */
.empty-message {
margin: 20px 0;
color: #999;
font-size: 0.95rem;
display: none;
}
/* Item List */
.item-list {
list-style: none;
padding: 0;
text-align: left;
}
/* List Items */
.item-list li {
background: #fafafa;
padding: 12px 12px;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 10px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 6px;
}
.item-list li span {
font-size: 0.95rem;
color: #333;
}
/* Remove Button */
.item-list li button {
padding: 6px 12px;
font-size: 0.8rem;
background-color: #e74c3c;
color: #ffffff;
border: none;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
transition: background-color 0.3s ease;
}
.item-list li button:hover {
background-color: #c0392b;
}