-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonday.css
More file actions
199 lines (178 loc) · 4.06 KB
/
monday.css
File metadata and controls
199 lines (178 loc) · 4.06 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/* Global Body Styles */
body {
margin: 0;
font-family: Arial, sans-serif;
background: url('canteen-bg.jpg') no-repeat center center/cover;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
/* Main Container for the Page */
.container {
background-color: rgba(255, 255, 255, 0.9);
margin-top: 135px;
padding: 30px;
border-radius: 20px;
width: 90%;
max-width: 500px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
/* Heading Styles */
h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
/* Meal Section Styles (Clickable headers) */
button {
width: 100%;
margin: 5px 0;
padding: 12px;
font-size: 16px;
border-radius: 30px;
border: none;
background-color: #a0b94f;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
/* Hover effect for meal buttons */
button:hover {
background-color: #8b9d3a;
}
/* Bottom Action Buttons (Calculate) */
.buttons {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
/* Done Button Style (Fixed Position at the bottom corner) */
.done-button {
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 20px;
border: none;
border-radius: 20px;
background-color: #a0b94f;
color: white;
font-weight: bold;
cursor: pointer;
width: 100px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Hover effect for done button */
.done-button:hover {
background-color: #8b9d3a;
}
/* Back Button Style */
.back-button {
position: fixed;
bottom: 20px;
left: 20px;
padding: 10px 20px;
border: none;
border-radius: 20px;
background-color: #a0b94f;
color: white;
font-weight: bold;
cursor: pointer;
width: 100px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Hover effect for back button */
.back-button:hover {
background-color: #8b9d3a;
}
/* Menu Items Text Styling */
.food-name {
font-size: 16px;
font-weight: 600;
color: #333;
}
/* Quantity Display */
.controls span {
font-size: 16px;
font-weight: 600;
}
/* Controls for Quantity Adjustments */
.controls {
display: flex;
align-items: center;
justify-content: center; /* Center-aligned */
gap: 10px; /* Reduced gap */
}
/* Small Size for + and - Buttons */
.controls button {
padding: 5px 10px;
font-size: 14px; /* Smaller text size */
border-radius: 5px; /* Smaller button radius */
border: 1px solid #a0b94f;
background-color: #a0b94f;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
/* Hover effect for the controls' buttons */
.controls button:hover {
background-color: #8b9d3a;
}
/* Center-align the menu items */
.menu-item {
display: flex;
flex-direction: column;
align-items: center; /* Center align food name, quantity and buttons */
justify-content: center;
margin: 15px 0;
width: 100%; /* Full width */
}
/* Responsive Styles for Mobile Devices */
@media (max-width: 600px) {
.container {
width: 95%;
padding: 20px;
}
.buttons button {
font-size: 14px;
padding: 8px 15px;
}
}
.total-box {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 25px;
background-color: rgba(160, 185, 79, 0.95); /* Green theme */
color: white;
border-radius: 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
text-align: center;
font-size: 18px;
width: 300px;
display: none; /* Will be changed via JS */
z-index: 9999; /* Make sure it stays on top */
}
.total-box p {
margin-bottom: 20px;
font-size: 18px;
font-weight: bold;
}
/* OK Button inside Total Box */
#okButton {
padding: 10px 20px;
background-color: #fff;
color: #a0b94f;
border: none;
border-radius: 20px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease, color 0.3s ease;
}
#okButton:hover {
background-color: #8b9d3a;
color: white;
}