Update static/styles.css

#1
by geethareddy - opened
Files changed (1) hide show
  1. static/styles.css +48 -82
static/styles.css CHANGED
@@ -1,87 +1,53 @@
1
- /* Main Page Styling */
2
- body {
3
- font-family: Arial, sans-serif;
4
- background-color: #f9f9f9;
5
- }
6
-
7
- .menu-card {
8
- display: flex;
9
- justify-content: space-between;
10
- align-items: center;
11
- border: 1px solid #ddd;
12
- padding: 15px;
13
- margin-bottom: 10px;
14
- border-radius: 8px;
15
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
16
- background-color: white;
17
- }
18
-
19
- .menu-card-details {
20
- flex: 1;
21
- margin-right: 15px;
22
- }
23
-
24
- .menu-card-details h3 {
25
- margin: 0;
26
- font-size: 18px;
27
- }
28
-
29
- .menu-card-details p {
30
- margin: 5px 0;
31
- font-size: 14px;
32
- }
33
-
34
- .menu-card-actions {
35
- text-align: center;
36
- }
37
-
38
- .menu-card-image {
39
- width: 100px;
40
- height: 100px;
41
- object-fit: cover;
42
- border-radius: 8px;
43
- margin-bottom: 10px;
44
- }
45
-
46
- .add-button {
47
- background-color: #28a745;
48
- color: white;
49
- border: none;
50
- padding: 8px 15px;
51
- font-size: 14px;
52
- border-radius: 5px;
53
- cursor: pointer;
54
- }
55
-
56
- /* Modal Window Styling */
57
- .modal {
58
  display: none;
59
  position: fixed;
60
  top: 50%;
61
  left: 50%;
62
- transform: translate(-50%, -50%);
63
- z-index: 1000;
64
- width: 50%;
65
- background-color: white;
66
- border-radius: 8px;
67
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
68
  padding: 20px;
69
- }
70
-
71
- .modal-content {
72
- text-align: center;
73
- }
74
-
75
- .modal-image {
76
- max-width: 100%;
77
- height: auto;
78
- margin-bottom: 20px;
79
- }
80
-
81
- .close-button {
82
- position: absolute;
83
- top: 10px;
84
- right: 10px;
85
- font-size: 18px;
86
- cursor: pointer;
87
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="modal" style="
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  display: none;
3
  position: fixed;
4
  top: 50%;
5
  left: 50%;
6
+ transform: translate(-50%, -50%); /* Centers the modal on the page */
7
+ background: white;
 
 
 
 
8
  padding: 20px;
9
+ border-radius: 15px;
10
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
11
+ font-family: Arial, sans-serif;
12
+ z-index: 1000;
13
+ min-width: 350px; /* Minimum width of the modal */
14
+ min-height: 300px; /* Minimum height of the modal */
15
+ overflow-y: auto; /* Allow scrolling inside the modal if content is too tall */
16
+ ">
17
+ <div style="text-align: right;">
18
+ <button onclick="closeModal()" style="
19
+ background: none;
20
+ border: none;
21
+ font-size: 24px;
22
+ cursor: pointer;
23
+ color: #333;
24
+ ">&times;</button>
25
+ </div>
26
+ <img id="modal-image" style="
27
+ width: 100%;
28
+ height: auto;
29
+ border-radius: 12px;
30
+ margin-bottom: 15px;
31
+ " />
32
+ <h2 id="modal-name" style="margin-bottom: 10px; font-size: 22px; color: #333;"></h2>
33
+ <p id="modal-description" style="margin-bottom: 10px; color: #555; font-size: 16px;"></p>
34
+ <p id="modal-price" style="margin-bottom: 20px; font-size: 18px; font-weight: bold; color: #222;"></p>
35
+ <div style="display: flex; justify-content: space-between; align-items: center;">
36
+ <label for="quantity" style="font-weight: bold;">Quantity:</label>
37
+ <input type="number" id="quantity" value="1" min="1" style="
38
+ width: 60px;
39
+ padding: 5px;
40
+ border: 1px solid #ccc;
41
+ border-radius: 5px;
42
+ " />
43
+ <button style="
44
+ background-color: #28a745;
45
+ color: white;
46
+ border: none;
47
+ padding: 10px 20px;
48
+ font-size: 16px;
49
+ border-radius: 8px;
50
+ cursor: pointer;
51
+ " onclick="addToCart()">Add</button>
52
+ </div>
53
+ </div>