SathvikGanta commited on
Commit
7c5fe7e
·
verified ·
1 Parent(s): a206125

Update components/styles.py

Browse files
Files changed (1) hide show
  1. components/styles.py +35 -32
components/styles.py CHANGED
@@ -22,58 +22,61 @@ button:hover {
22
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
23
  }
24
 
25
- /* Modal popup styling */
26
- #popup {
27
- display: none;
28
- position: fixed;
29
- top: 50%;
30
- left: 50%;
31
- transform: translate(-50%, -50%);
32
  background-color: #fff;
33
  border-radius: 12px;
34
- padding: 20px;
35
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
36
- z-index: 1000;
37
- width: 400px;
38
- max-width: 90%;
39
  text-align: center;
40
  }
41
 
42
- #popup img {
43
  width: 100%;
44
- max-height: 200px;
45
  object-fit: cover;
46
- border-radius: 12px 12px 0 0;
47
  }
48
 
49
- #popup h3 {
50
- margin-top: 20px;
51
- font-size: 24px;
52
  }
53
 
54
- #popup table {
55
- width: 100%;
56
- margin-top: 10px;
57
- border-collapse: collapse;
58
  }
59
 
60
- #popup table td {
61
- padding: 10px;
62
- border: 1px solid #ddd;
 
63
  }
64
 
65
- /* Button to close the popup */
66
- #close-popup {
67
- margin-top: 20px;
68
- background-color: #ff3333;
69
  color: white;
70
  border: none;
 
71
  border-radius: 8px;
72
- padding: 10px;
73
  cursor: pointer;
74
- transition: background-color 0.3s ease;
 
 
 
 
 
 
 
 
 
 
75
  }
76
 
77
- #close-popup:hover {
78
- background-color: #cc0000;
 
 
79
  }
 
22
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
23
  }
24
 
25
+ /* Popup card styling */
26
+ .popup-card {
27
+ width: 400px;
28
+ max-width: 90%;
 
 
 
29
  background-color: #fff;
30
  border-radius: 12px;
 
31
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
32
+ overflow: hidden;
 
 
33
  text-align: center;
34
  }
35
 
36
+ .popup-image {
37
  width: 100%;
38
+ height: auto;
39
  object-fit: cover;
 
40
  }
41
 
42
+ .popup-content {
43
+ padding: 20px;
44
+ font-family: Arial, sans-serif;
45
  }
46
 
47
+ .popup-content h3 {
48
+ font-size: 20px;
49
+ font-weight: bold;
 
50
  }
51
 
52
+ .popup-content .price {
53
+ font-size: 18px;
54
+ color: #4CAF50;
55
+ font-weight: bold;
56
  }
57
 
58
+ .add-btn {
59
+ background-color: #4CAF50;
 
 
60
  color: white;
61
  border: none;
62
+ padding: 10px 20px;
63
  border-radius: 8px;
 
64
  cursor: pointer;
65
+ font-size: 14px;
66
+ margin: 10px 0;
67
+ }
68
+
69
+ .add-btn:hover {
70
+ background-color: #45a049;
71
+ }
72
+
73
+ .customizable {
74
+ font-size: 12px;
75
+ color: #999;
76
  }
77
 
78
+ .description {
79
+ font-size: 14px;
80
+ margin-top: 10px;
81
+ color: #555;
82
  }