generated from imd1005-web-development-winter-2023/group-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipes-style.css
202 lines (179 loc) · 3.81 KB
/
recipes-style.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
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
body {
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
background-image: url('images/background-image.jpg');
background-repeat: no-repeat;
background-attachment: absolute;
background-size: 100%;
color: black;
}
/* Header */
.nav-bar {
display: flex;
font-size: 30px;
}
.nav-bar a {
text-decoration: none;
color: white;
}
.nav-links{
text-decoration: none;
display: flex;
justify-content: flex-end;
gap: 20px;
margin-right: 30px;
font-size: 20px;
margin-top: -20px;
}
.nav-links a{
text-decoration: none;
color: white;
display: flex;
justify-content: space-evenlys;
}
.nav-links a:hover {
text-decoration: underline;
}
/* Search prompt */
.search-prompt {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: black
}
.search-prompt h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 60px;
font-weight: 900;
margin-top: 50px;
text-shadow: 0px 3px 6px rgb(172, 172, 172);
}
.searchbar form {
display: flex;
width: 700px;
height: 60px;
margin-top: -10px;
}
.searchbar form input {
flex: 1;
border-top: 1px solid black;
border-bottom: 1px solid black;
border-left: 1px solid black;
border-right: none;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
outline: none;
box-shadow: 0px 3px 6px rgb(172, 172, 172);
box-shadow: inset 0px 1px 5px rgb(148, 148, 148);
}
.searchbar ::placeholder {
font-size: 20px;
}
.searchbar input[type=text]:focus {
background-color: rgb(236, 236, 236);
transition: all 0.3s ease;
}
.searchbar form button {
background: #C2DCB9;
padding: 10px 50px;
border-top: 1px solid black;
border-bottom: 1px solid black;
border-right: 1px solid black;
border-left: 1px solid black;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
box-shadow: 0px 3px 6px rgb(172, 172, 172);
box-shadow: inset 0px 1px 5px rgb(148, 148, 148);
outline: none;
font-size: 20px;
letter-spacing: 1px;
cursor: pointer;
transition: all 0.3s ease;
}
.searchbar form button:hover {
background: #98b48e;
}
.searchbar form i {
size: 100px;
}
/* Recipe names */
.recipe-names {
text-decoration: underline;
font-weight: 600;
font-size: 60px;
margin-left: 70px;
margin-top: 130px;
}
/* Recommended Recipes */
.recommended-recipes ul {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
align-items: center;
list-style: none;
margin-top: 50px;
}
/* Style for the recipe option boxes */
.recipebox {
position: relative;
left: -25px;
border: none;
border-radius: 40px;
background-color: #ffffff;
box-shadow: 0px 3px 12px rgb(172, 172, 172);
margin: 0px;
transition: all 0.3s ease;
}
.recipebox:hover {
background-color: #e2e2e2;
transform: scale(1.1);
}
/* Recipe title */
.recipebox h3 {
font-weight: 600;
font-style: normal;
font-size: 40px;
color: black;
margin: 0px;
padding: 8px;
transition: all 0.3s ease;
}
.recipebox h3:hover {
color: #63755d;
}
/* Calories */
.recipebox p {
font-weight: 500;
font-style: normal;
font-size: 24px;
color: #919191;
margin: 0px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
}
.recipebox i {
display: flex;
justify-content: flex-end;
cursor: pointer;
padding: 10px;
margin-top: -40px;
margin-right: 10px;
background: none;
font-size: 27px;
color: #aaa;
transition: 0.3s;
}
.recipebox i:hover, .recipebox i:focus {
color: rgb(218, 34, 34);
}
.recipebox img {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: center;
border-top-right-radius: 38px;
border-top-left-radius: 38px;
box-shadow: 0px 3px 12px rgb(172, 172, 172);
}