-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
142 lines (119 loc) · 2.3 KB
/
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
body{
background-color: #003049;
color: azure;
}
header nav{
background-color: black;
padding: 19px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1;
}
header nav h1{
font-size: 25px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
}
header nav form{
display: flex;
justify-content: center;
}
form input[type="text"]{
flex-grow: 1;
margin-right: 10px;
}
form input[type="text"], button[type="submit"]{
border: none;
font-size: 18px;
padding: 10px;
border-radius: 4px;
}
form button[type="submit"]{
background-color: green;
color: aliceblue;
cursor: pointer;
}
form button[type="submit"]:hover , .recipe button:hover{
background-color: lightgreen ;
}
.food-box{
text-align: center;
margin-top: 18px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px , 1fr ));
grid-gap: 38px;
width: 80%;
margin: 9px auto;
padding: 20px ;
place-items: center;
}
.foooood{
background-color: #fff;
display: flex;
flex-direction: column;
color:pink;
border-radius: 5px;
cursor: pointer;
max-width: 340px;
}
.foooood img{
height: 300px;
}
.foooood h3{
font-size: 25px;
}
.foooood p{
font-size: 20px;
color: purple;
margin: 5px 0;
}
.foooood button{
font-size: 20px;
font-weight: 550;
padding: 10px;
border-radius: 2px;
border: none;
cursor: pointer;
background-color: green;
color: #fff;
}
.foodInfo{
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50% , -50%);
border-radius: 12px;
background-color: burlywood;
width: 30%;
height: 70%;
font-size: 20px;
transition: all 0.5s ease-in;
overflow-y: scroll ;
}
.foodInfo-info{
margin: 10px;
}
.recipeName{
text-align: center;
text-transform: uppercase;
}
/* resposnive code */
/* took help from youtube for the responsive code */
@media screen and (max-width:600px) {
header nav{
flex-direction: column;
}
header nav form{
width: 80%;
margin-top: 20px;
}
}