-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
143 lines (128 loc) · 2.28 KB
/
menu.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
* {
box-sizing: border-box;
}
body {
background-color: #f1f5f8;
}
/* top menu styling */
.menu-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 3em;
}
.menu-container h1 {
font-size: 50px;
border-bottom: 4px solid goldenrod;
}
.menu-options ul {
display: flex;
}
.btn {
list-style: none;
margin: 8px;
border: 0.5px solid goldenrod;
padding: 0.4em 1.3em;
border-radius: 0.5em;
color: rgb(155, 116, 18);
cursor: pointer;
transition: all 0.2s ease-in-out;
font-size: 16px;
box-shadow: 0.5px 0.5px 2px rgb(27, 23, 12);
}
.btn:hover {
color: white;
transition: all 0.2s ease-in-out;
border-color: rgb(194, 147, 27);
background-color: rgb(194, 147, 27);
}
/* end top menu styling */
/* menu styling */
@media screen and (min-width: 1200px) {
.menu {
width: 95vw;
grid-template-columns: 1fr 1fr;
}
}
.menu {
display: grid;
max-width: 1170px;
margin: 0 auto;
width: 80vw;
grid-template-columns: 1fr 1fr;
gap: 3em 2em;
margin-bottom: 5em;
}
.menu-item {
display: grid;
max-width: 35em;
grid-template-columns: 1fr 2fr;
column-gap: 1em;
position: relative;
}
/* Image style */
.food-image {
border: 3px solid rgb(218, 137, 32);
border-radius: 1em;
object-fit: cover;
}
/* Menu name, price, information */
.menu-item-name {
border-bottom: 2px dashed rgb(218, 75, 32);
letter-spacing: 3px;
word-spacing: 5px;
}
.price {
position: absolute;
right: 0;
color: rgb(189, 163, 50);
}
.item-details {
color: #797474;
text-align: justify;
}
/* media queries */
/* 768 to 1350 pixels */
@media screen and (max-width: 1350px) {
.menu {
width: 36em;
grid-template-columns: 1fr;
}
}
@media screen and (max-width: 1350px) {
body {
font-size: 1rem;
}
}
@media screen and (max-width: 768px) {
body {
font-size: 12px;
}
.menu-container ul li {
font-size: small;
}
.menu {
width: 90%;
}
.menu-item-name {
word-spacing: normal;
letter-spacing: 1px;
}
}
@media screen and (max-width: 767px) {
body {
font-size: 10px;
}
.menu-container li {
font-size: x-small;
}
.menu-item-name {
word-spacing: normal;
letter-spacing: normal;
}
.price {
display: block;
color: rgb(189, 163, 50);
}
}