Skip to content

Commit 0b56617

Browse files
Update style.css
1 parent eda8071 commit 0b56617

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

project-2-recipe-book-app/style.css

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,76 @@ h1 {
3737
border-radius: 5px;
3838
overflow: hidden;
3939
}
40+
41+
.recipe-item img {
42+
width: 150px;
43+
height: 150px;
44+
object-fit: cover;
45+
}
46+
47+
.recipe-item h2 {
48+
margin: 0;
49+
font-size: 20px;
50+
padding: 10px;
51+
min-width: 200px;
52+
}
53+
54+
.recipe-item p {
55+
margin: 0;
56+
padding: 10px;
57+
color: #888;
58+
}
59+
60+
.recipe-item img {
61+
width: 300px;
62+
}
63+
64+
.recipe-item a {
65+
background: #0c2461;
66+
color: #fff;
67+
font-size: 14px;
68+
min-width: 120px;
69+
padding: 10px;
70+
text-decoration: none;
71+
text-transform: uppercase;
72+
transition: background 0.3s ease;
73+
}
74+
75+
.recipe-item a:hover {
76+
background: #1e3799;
77+
78+
}
79+
80+
@media screen and (max-width: 768px) {
81+
82+
.container {
83+
max-width: 90%;
84+
}
85+
86+
.recipe-item {
87+
flex-direction: column;
88+
/* flex-wrap: wrap; */
89+
}
90+
91+
.recipe-item img {
92+
width: 100%;
93+
height: auto;
94+
margin-bottom: 10px;
95+
}
96+
97+
.recipe-item h2 {
98+
font-size: 20px;
99+
padding: 0;
100+
margin-bottom: 10px;
101+
}
102+
103+
.recipe-item p {
104+
padding: 0;
105+
margin-bottom: 10px;
106+
}
107+
108+
.recipe-item a {
109+
width: 100%;
110+
text-align: center;
111+
}
112+
}

0 commit comments

Comments
 (0)