SathvikGanta commited on
Commit
f4968fd
·
verified ·
1 Parent(s): 1929c11

Update components/styles.py

Browse files
Files changed (1) hide show
  1. components/styles.py +13 -16
components/styles.py CHANGED
@@ -22,28 +22,25 @@ button:hover {
22
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
23
  }
24
 
25
- /* Styling for the popup */
26
- #popup-card {
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
  position: fixed;
31
  top: 0;
32
  left: 0;
33
  width: 100vw;
34
  height: 100vh;
35
  background-color: rgba(0, 0, 0, 0.5);
36
- visibility: hidden;
37
- opacity: 0;
38
- transition: visibility 0s, opacity 0.3s;
39
  }
40
 
41
- #popup-card.visible {
42
- visibility: visible;
43
- opacity: 1;
44
  }
45
 
46
- .food-card {
47
  width: 400px;
48
  max-width: 90%;
49
  background-color: #fff;
@@ -54,25 +51,25 @@ button:hover {
54
  position: relative;
55
  }
56
 
57
- .food-card img {
58
  width: 100%;
59
  max-height: 200px;
60
  object-fit: cover;
61
  border-radius: 12px 12px 0 0;
62
  }
63
 
64
- .food-card h3 {
65
  margin-top: 20px;
66
  font-size: 24px;
67
  }
68
 
69
- .food-card table {
70
  width: 100%;
71
  margin-top: 10px;
72
  border-collapse: collapse;
73
  }
74
 
75
- .food-card table td {
76
  padding: 10px;
77
  border: 1px solid #ddd;
78
  }
 
22
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
23
  }
24
 
25
+ /* Popup container styling */
26
+ #popup-container {
27
+ display: none;
 
 
28
  position: fixed;
29
  top: 0;
30
  left: 0;
31
  width: 100vw;
32
  height: 100vh;
33
  background-color: rgba(0, 0, 0, 0.5);
34
+ justify-content: center;
35
+ align-items: center;
36
+ z-index: 1000;
37
  }
38
 
39
+ #popup-container.active {
40
+ display: flex;
 
41
  }
42
 
43
+ #popup-content {
44
  width: 400px;
45
  max-width: 90%;
46
  background-color: #fff;
 
51
  position: relative;
52
  }
53
 
54
+ #popup-content img {
55
  width: 100%;
56
  max-height: 200px;
57
  object-fit: cover;
58
  border-radius: 12px 12px 0 0;
59
  }
60
 
61
+ #popup-content h3 {
62
  margin-top: 20px;
63
  font-size: 24px;
64
  }
65
 
66
+ #popup-content table {
67
  width: 100%;
68
  margin-top: 10px;
69
  border-collapse: collapse;
70
  }
71
 
72
+ #popup-content table td {
73
  padding: 10px;
74
  border: 1px solid #ddd;
75
  }