-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
110 lines (97 loc) · 1.83 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
* {
box-sizing: border-box;
}
body {
font-family: 'Poppins';
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 30px 0;
min-height: 90vh;
background-color: rgb(255, 233, 207);
}
#searchInput, #searchMeal, #get_meal, .view-recipe-btn{
display: inline-block;
text-decoration: none;
font-size: 15px;
font-weight: bold;
cursor: pointer;
border-radius: 5px;
border: 1px solid black;
background-color: rgb(255, 255, 255);
transition: background-color 0.3s, color 0.3s;
}
#searchMeal:hover, #get_meal:hover, .view-recipe-btn:hover{
background-color: rgb(255, 200, 141);
}
#get_meal{
margin: 0;
position: relative;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding-left: 5%;
padding-right: 5%;
margin-top: 20px;
}
img {
max-width: 100%;
}
p {
margin-bottom: 5px;
}
h2 {
margin: 0;
}
h4 {
margin: 10px 0;
}
li {
margin-bottom: 0;
}
.meal {
margin: 20px 0;
}
.text-center {
text-align: center;
}
.videoWrapper {
position: relative;
padding-bottom: 56.25%;
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.meal-item {
margin-bottom: 20px;
width: calc(36% - 50px); /* Three items in a row with some margin */
display: inline-block;
vertical-align: top;
box-sizing: border-box;
}
.third-item {
/* Apply different styling for every third item */
margin-right: 0;
}
.meal-title, .view-recipe-btn{
margin: 5px;
}
.view-recipe-btn{
margin-bottom: 50px;
}
.meal-content{
text-align: center;
}
.meal-img{
max-width: 50%;
height: auto;
}