-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
149 lines (127 loc) · 2.48 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
143
144
145
146
147
148
149
/* Set margin and padding to 0 for all elements */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
/* background-color: lightgray */
}
/* Style for header */
header{
display: flex;
margin: 20px;
}
/* Style for logo image */
#logo{
height: 40px;
}
/* Style for header links */
header a{
text-decoration: none;
font-size: 30px;
margin: 10px;
}
/* Style for header links on hover */
header a:hover{
text-decoration: underline;
}
/* Style for container */
.container {
display: flex;
align-items: center;
justify-content: space-between;
background: #edeef0;
border-radius: 30px;
padding-left: 20px;
margin-bottom: 25px;
max-width: 500px;
width: 100%;
margin-left: auto;
margin-right: auto;
}
/* Style for input field */
input{
flex: 1;
border: none;
outline: none;
background: none;
padding: 10px;
}
/* Style for button */
button{
border: none;
outline: none;
padding: 16px 50px;
background: #ff5945;
color: white;
font-size: 16px;
cursor: pointer;
border-radius: 40px;
}
/* Style for meal containers */
.meal {
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
margin-bottom: 10px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
/* Set background color */
/* background-color: lightgray */
}
/* Style for meal images */
.meal img {
width: 50%;
max-height: 250px;
object-fit: cover;
border-radius: 15px;
}
/* Style for meal headings */
.meal h2 {
margin: 10px 0;
font-size: 24px;
text-align: center;
color: red;
}
.meal ul {
list-style: none;
margin: 0;
padding: 0;
/* ?margin-left: 20px; */
}
.meal li {
margin-bottom: 5px;
}
.meal button {
background-color: #fff;
border: none;
color: #ff5945;
padding: 10px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.meal button:hover {
background-color: #ddd;
}
.description {
display: none;
}
.show {
display: block;
}
p{
font-size: 20px;
margin-left: 10px;
word-spacing: 3px;
line-height: 35px;
text-align: justify;
color: blue;
background-color: orange;
border-radius: 20px;
padding: 5px;
}