-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
129 lines (114 loc) · 2.32 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
body{
font-family: 'Times New Roman', Times, serif;
margin:0;
padding:0;
}
header {
background-color:azure;
color:black;
padding: 5px;
text-align: center;
font-size: large;
}
nav{
background-color:beige;
color:blue;
padding: 10px;
text-align: center;
}
nav a {
text-decoration: none;
padding:10px;
margin: 50px;
}
nav a:hover {
color: green;
}
.search-bar{
margin: 20px auto;
padding: 5px;
border: 1px solid black;
border-radius: 5px;
width:200px;
display: block;
}
.main-content{
display:flex;
text-align: center;
justify-content: space-between;
padding:20px;
background-color: bisque;
border-radius: 10px;
margin-bottom: 60px;
}
.dish-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
grid-template-rows: repeat(2,1fr);
grid-gap: 10px;
width: 66%;
margin: 0 auto;
}
.dish{
border-radius: 5px;
overflow: hidden;
margin-bottom: 15px;
}
.dish img {
width: 60%;
height: 60%;
object-fit:cover;
}
.dish p {
padding: 10px;
margin:0;
}
.order-button {
background-color:grey;
color: blue;
border:saddlebrown;
padding: 15px 15px;
text-align: center;
text-decoration: none;
font-size: 20px;
cursor: pointer;
border-radius: 20px;
position: relative;
right:50%;
left: 50%;
margin-bottom: 20px;
}
footer {
background-color: black;
color: white;
padding: 10px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
/* Responsive Design*/
@media only screen and (max-width:1024px){
.dish-grid {
grid-template-columns:repeat(1,1fr); /*Change to a single column for smaller screens*/
width:80%; /* Adjust width for smaller screens*/
}
}
@media only screen and (max-width:600px) {
.dish-grid{
width: 100% /* Full width for the smallest screen size*/
}
}
footer{
position:static; /* Remove fixed position for the footer on smaller screens*/
}
nav {
flex-direction:column; /* Navigation menu should be stacked vertically for smaller screens*/
}
nav a {
margin: 5px 0; /* Adjust margin for navigation items on smaller screens*/
}
.order-button {
margin: 20px auto; /* Center order button on smaller screens*/
position:relative;
}