-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
105 lines (89 loc) · 1.68 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
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
header {
background: #0c2461;
color: #fff;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
font-size: 36px;
}
.container {
margin: 0 auto;
max-width: 1200px;
padding: 20px;
}
.recipe-list {
list-style: none;
margin: 0;
padding: 0;
}
.recipe-item {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
border-radius: 5px;
overflow: hidden;
}
.recipe-item img {
width: 150px;
height: 150px;
object-fit: cover;
}
.recipe-item h2 {
margin: 0;
font-size: 20px;
padding: 10px;
min-width: 200px;
}
.recipe-item p {
margin: 0;
padding: 10px;
color: #777;
}
.recipe-item a {
background: #0c2461;
color: #fff;
min-width: 150px;
padding: 10px;
text-decoration: none;
text-transform: uppercase;
font-size: 14px;
transition: background0.3s ease;
}
.recipe-item a:hover {
background: #1e3799;
}
@media screen and (max-width: 768px) {
.container {
max-width: 90%;
}
.recipe-item {
flex-direction: column;
}
.recipe-item img {
width: 100%;
height: auto;
margin-bottom: 10px;
}
.recipe-item h2 {
font-size: 20px;
padding: 0;
margin-bottom: 10px;
}
.recipe-item p {
font-size: 14px;
margin-bottom: 10px;
}
.recipe-item a {
width: 100%;
text-align: center;
}
}