nagasurendra commited on
Commit
7ce3f65
·
verified ·
1 Parent(s): e34973c

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +22 -32
templates/cart.html CHANGED
@@ -46,52 +46,42 @@
46
  border-radius: 8px; /* Optional: rounded corners */
47
  transition: transform 0.3s;
48
  }
49
- /* Ensure the dropdown only takes 30% of the width */
50
- #couponDropdown {
51
- width: 30%; /* Set the dropdown width to 30% */
52
- display: none; /* Hidden by default */
53
- background-color: #fff; /* White background for the dropdown */
54
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to dropdown */
55
- z-index: 10; /* Ensure it stays above other content */
56
- margin-top: 10px; /* Space between the link and the dropdown */
57
- }
58
-
59
- /* Ensure the dropdown takes up 30% of the page width */
60
- #couponDropdown {
61
- width: 30%; /* Set the dropdown width to 30% */
62
- position: absolute; /* Position it absolutely */
63
- right: 0; /* Align it to the right of the page */
64
- top: 50px; /* Position it below the Apply Coupon link */
65
- display: none; /* Hidden by default */
66
- background-color: #fff; /* White background for the dropdown */
67
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for dropdown */
68
- z-index: 10; /* Ensure it stays above other content */
69
- }
70
-
71
- /* Coupon section styles for Apply Coupon and dropdown link */
72
  .coupon-selection {
73
- display: flex;
74
- justify-content: space-between;
 
75
  align-items: center;
76
- font-size: 1rem;
77
  }
78
 
79
- /* Make the Apply Coupon text bold and black */
80
  .coupon-selection label {
81
- font-weight: bold;
 
82
  color: black;
83
  }
84
 
85
- /* Apply Coupon link styles */
86
  .coupon-selection a {
87
- color: #007bff; /* Blue color for the + Apply Coupon link */
88
  font-size: 1rem;
 
89
  text-decoration: none;
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
91
 
92
- /* Show the dropdown when active */
93
  #couponDropdown.show {
94
- display: block; /* Show the dropdown when active */
95
  }
96
 
97
 
 
46
  border-radius: 8px; /* Optional: rounded corners */
47
  transition: transform 0.3s;
48
  }
49
+ /* Adjust coupon section to use grid layout */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  .coupon-selection {
51
+ display: grid;
52
+ grid-template-columns: 1fr 1fr; /* Two columns for label and link */
53
+ grid-gap: 10px; /* Space between label and link */
54
  align-items: center;
55
+ margin-bottom: 10px;
56
  }
57
 
 
58
  .coupon-selection label {
59
+ font-weight: 600;
60
+ font-size: 1rem;
61
  color: black;
62
  }
63
 
 
64
  .coupon-selection a {
 
65
  font-size: 1rem;
66
+ color: #007bff;
67
  text-decoration: none;
68
+ text-align: right;
69
+ }
70
+
71
+ #couponDropdown {
72
+ width: 30%; /* Set the dropdown width to 30% */
73
+ display: none; /* Hidden by default */
74
+ background-color: #fff;
75
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for dropdown */
76
+ position: absolute; /* Position it absolutely */
77
+ top: 100%; /* Position it just below the coupon section */
78
+ right: 0; /* Align it to the right side */
79
+ z-index: 10; /* Make sure it stays above other content */
80
  }
81
 
82
+ /* Show the dropdown when it's active */
83
  #couponDropdown.show {
84
+ display: block;
85
  }
86
 
87