-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipes.css
131 lines (110 loc) · 1.85 KB
/
recipes.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
header {
background-color: #fff;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
position: absolute;
width: 100%;
top: 0;
left: 0;
z-index: 999;
}
header nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: -60px;
}
header nav img {
height: 80px;
}
header nav ul {
display: flex;
}
header nav ul li {
list-style: none;
margin-right: 220px;
}
header nav ul li a {
text-decoration: none;
color: #333;
font-size: 22px;
font-weight: 700;
}
header nav form {
display: flex;
}
header nav form input[type="text"] {
border: none;
border-radius: 25px 0 0 25px;
padding: 10px 20px;
font-size: 16px;
width: 350px;
height: 50px;
}
header nav form button[type="submit"] {
background-color: #333;
color: #fff;
border: none;
border-radius: 0 25px 25px 0;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
body {
font-family: 'Roboto', Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
background-color: #f9f9f9;
}
}
h1 {
margin: 0;
color: #ffffff;
}
.recipe {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 40px 0;
background-color: #ffffff;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 30px;
}
.image-container {
flex-basis: 100%;
text-align: center;
margin-bottom: 20px;
}
.image-container img {
max-width: 100%;
height: auto;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.ingredients,
.instructions {
flex-basis: 48%;
margin: 0 10px;
}
.ingredients ul,
.instructions ol {
padding-left: 20px;
}
h2 {
border-bottom: 2px solid #1a1a1a;
padding-bottom: 5px;
margin-bottom: 15px;
font-weight: 500;
color: #1a1a1a;
}
li {
margin-bottom: 5px;
}
@media (max-width: 600px) {
.ingredients,
.instructions {
flex-basis: 100%;
}
}