-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
237 lines (199 loc) · 3.94 KB
/
Copy pathstyles.css
File metadata and controls
237 lines (199 loc) · 3.94 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
body {
font-family: Arial, sans-serif;
margin: 0;
background-color: #f4f4f4;
overflow-y: scroll;
font-family: "Outfit", sans-serif;
font-optical-sizing: auto;
font-weight: 300;
font-style: normal;
}
h1 {
font-weight: bold;
}
h2 {
margin: 0;
}
li{
text-indent: 2px
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #D70F64;
padding: 10px 20px;
color: white;
}
.logo img {
height: 50px; /* Adjust as needed */
}
.nav {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
.nav li {
margin-left: 20px; /* Space between nav items */
}
.nav a {
color: white;
text-decoration: none;
}
.nav a:hover {
text-decoration: underline;
font-weight: bold;
}
.nav-container {
margin-left: auto;
margin-top: 0;
margin-bottom: 0;
}
.container {
max-width: 92vw; /* Increased width for larger screens */
margin: 0 auto;
padding: 20px;
text-align: center;
}
.meals-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
width: 100%;
gap: 2rem;
justify-content: center;
align-self: center;
justify-self: center;
}
.meal {
background-color: white;
border: 1px solid #ccc;
border-radius: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
margin-top: 4rem;
transition: transform 0.3s ease; /* Smooth scaling transition */
}
/* Media query for smaller screens */
@media (max-width: 720px) {
.meals-container {
grid-template-columns: 1fr;
}
}
/* Media query for medium screens */
@media (min-width: 720px) and (max-width: 920px){
.meals-container {
grid-template-columns: repeat(2, 1fr);
}
.meal, .card {
max-width: 100%; /* Make it full width */
transform: scale(1); /* Slightly increase size */
margin: 2rem 0; /* Adjust top and bottom margin */
}
}
.meal-content {
padding: 1rem;
text-align: center;
}
.meal-content > p {
margin-top: 0.75rem;
}
.meal-img {
max-height: 20rem;
width: 100%;
height: auto;
object-fit: cover;
}
.select-btn {
padding: 10px 15px;
border: none;
color: white;
border-radius: 5px;
cursor: pointer;
margin-top: 10px; /* Add space between search bar and button */
font-size: 16px;
}
.back-btn {
background-color: #D70F64;
border-color: #D70F64;
padding: 10px 15px;
border: none;
color: white;
border-radius: 5px;
cursor: pointer;
margin-top: 10px; /* Add space between search bar and button */
font-size: 16px;
}
.fixed-size {
width: 100%;
height: 300px;
object-fit: cover;
}
button {
background-color: #D70F64;
border-color: transparent;
color: white;
padding: 0.4rem 2rem;
border-radius: 0.5rem;
box-shadow: none;
}
button:hover{
background-color: #c71861;
border-color: transparent;
}
.center {
text-align: center;
}
.jumbotron-img {
position: relative;
/* Centers the image */
}
.jumbotron-img::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('https://dansons-site-images.s3.us-west-2.amazonaws.com/pb/recipes/Autumn_Spiced_Chicken_Wings.jpg'); /* Replace with your image URL */
background-size: cover; /* Ensures the image covers the entire jumbotron */
background-position: center;
opacity: 0.8;
z-index: 1;
}
.jumbotron .content {
background-color: rgba(255, 255, 255, 0.75);
position: relative; /* Ensures the text appears above the overlay */
z-index: 2; /* Places the text above the overlay */
}
.content {
padding: 20px;
}
.website-color {
color: #D70F64;
}
.browse-button {
position: relative; /* Ensures the button remains on top */
z-index: 3; /* Places the button above the content */
opacity: 1; /* Ensures the button is fully opaque */
}
.ingredientfilter{
margin-left:10%;
}
.contactpage{
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
font-size:50px;
}
.recipe-content {
padding: 4.5rem;
background-color: #e77ca9a0;
border-radius: 1rem;
font-size: 25px;
}
#reccomendations-text {
margin-top: 6rem;
margin-bottom: -3rem;
}