-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
73 lines (64 loc) · 1.7 KB
/
index.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
html, body {
margin: 0;
padding: 0;
font-family: 'Rubik', sans-serif;
background-color: #F4F4F2;
color: #432000;
user-select: none; /* this controls whether the user can select text */
}
.container {
display: flex;
flex-direction: column;
max-width: 320px;
margin: 30px auto;
}
input {
border: 0;
color: #432000;
background-color: #DCE1EB;
padding: 15px;
border-radius: 8px;
font-size: 20px;
text-align: center;
font-family: 'Rubik', sans-serif;
margin: 10px 0;
}
button {
color: #FDFDFD;
background-color: #0F485D;
border: 0;
padding: 15px;
border-radius: 8px;
font-size: 20px;
text-align: center;
font-family: 'Rubik', sans-serif;
}
button:hover {
background-color: #118ABF;
cursor: pointer;
}
img {
background-image: cover;
width: 200px;
margin: 0 auto;
}
ul {
list-style-type: none; /* I used this property to create a visually appealing list that enhances the user's experience. But I did not include any here. */
padding: 0;
display: flex;
flex-wrap: wrap; /* I used the flex-wrap property to wrap the items onto multiple lines. This is more user friendly */
gap: 10px; /* gap shorthand property that sets the gaps between the shopping items */
}
ul li {
font-size: 20px;
background-color: #F63F8C;
padding: 15px;
border-radius: 8px;
flex-grow: 1; /* This defines how much an element in a flexbox container can grow to fill available space. */
text-align: center;
box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.2); /* This adds shadow effects around on my shopping list items */
}
ul li:hover {
background-color: #F15E9D;
cursor: pointer;
}