source: CookCraft-FrontEnd/CookCraft-FrontEnd-master/cookcraft-app/src/css/ShoppingCartCss/shopping-cart-style.module.css@ d7b7f00

Last change on this file since d7b7f00 was d7b7f00, checked in by Gorazd Biskoski <gorazdbiskoskii@…>, 4 weeks ago

Add project

  • Property mode set to 100644
File size: 4.7 KB
Line 
1.shoppingCart {
2 position: relative;
3}
4
5.cartIcon {
6 position: fixed;
7 top: 20px;
8 right: 20px;
9 cursor: pointer;
10 font-size: 20px;
11 background-color: #FFA550;
12 padding: 12px;
13 border-radius: 50%;
14 color: white;
15 display: flex;
16 align-items: center;
17 justify-content: center;
18 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
19 transition: all 0.3s ease;
20}
21
22.cartIcon:hover {
23 background-color: #FF8C00;
24 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
25 transform: scale(1.05);
26}
27
28.cartCount {
29 position: absolute;
30 top: -8px;
31 right: -8px;
32 background-color: red;
33 color: white;
34 font-size: 12px;
35 border-radius: 50%;
36 padding: 3px 6px;
37 font-weight: bold;
38 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
39}
40
41.cartPopup {
42 position: fixed;
43 top: 60px;
44 right: 20px;
45 width: 350px;
46 background-color: white;
47 border: 1px solid #ccc;
48 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
49 padding: 20px;
50 z-index: 1000;
51 border-radius: 10px;
52 overflow-y: auto;
53 max-height: 400px;
54}
55
56.cartPopup h4 {
57 margin-top: 0;
58 font-size: 1.5em;
59 color: #333;
60}
61
62.cartItems {
63 display: flex;
64 flex-direction: column;
65 gap: 8px;
66 margin-top: 10px;
67 max-height: 250px;
68 overflow-y: auto;
69 padding-right: 10px;
70}
71
72
73.cartItems::-webkit-scrollbar {
74 width: 8px;
75}
76
77.cartItems::-webkit-scrollbar-thumb {
78 background-color: rgba(0, 0, 0, 0.2);
79 border-radius: 4px;
80}
81
82.cartItems::-webkit-scrollbar-thumb:hover {
83 background-color: rgba(0, 0, 0, 0.3);
84}
85
86.cartItemCard {
87 background-color: #f9f9f9;
88 border: 1px solid #ddd;
89 border-radius: 6px;
90 padding: 8px;
91 display: flex;
92 justify-content: space-between;
93 align-items: center;
94 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
95 transition: box-shadow 0.2s ease;
96 font-size: 0.9em;
97 width: 100%;
98 height: 40px;
99 box-sizing: border-box;
100 position: relative;
101}
102
103.cartItemCard:hover {
104 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
105}
106
107.cartItemCard p {
108 margin: 0;
109 font-size: 0.95em;
110 color: #333;
111 white-space: nowrap;
112 overflow: hidden;
113 text-overflow: ellipsis;
114 max-width: 50%;
115}
116
117.cartItemCard span {
118 font-size: 0.85em;
119 color: #555;
120 white-space: nowrap;
121 overflow: hidden;
122 text-overflow: ellipsis;
123 max-width: 30%;
124 text-align: right;
125 margin-right: 40px;
126}
127
128.removeButton {
129 background: none;
130 border: none;
131 color: red;
132 font-size: 1.2em;
133 cursor: pointer;
134 position: absolute;
135 display: flex;
136 align-items: center;
137 justify-content: center;
138 right: 10px;
139 top: 50%;
140 transform: translateY(-50%);
141 transition: color 0.3s ease, transform 0.2s ease;
142 width: 20px;
143 height: 20px;
144}
145
146.removeButton:hover {
147 color: darkred;
148 transform: translateY(-50%) scale(1.3);
149}
150.checkoutButton {
151 background-color: #FFA550;
152 color: white;
153 border: none;
154 padding: 12px;
155 cursor: pointer;
156 width: 100%;
157 margin-top: 20px;
158 border-radius: 4px;
159 font-size: 1.1em;
160 transition: background-color 0.3s ease;
161}
162
163.checkoutButton:hover {
164 background-color: #FF8C00;
165}
166
167.ingredientList {
168 margin-top: 0;
169 padding-left: 0;
170}
171
172.ingredientList ul {
173 list-style: none;
174 padding-left: 0;
175}
176
177.ingredientList li {
178 position: relative;
179 margin-bottom: 10px;
180 display: flex;
181 align-items: center;
182 padding-left: 1.75em;
183 color: #555;
184 font-size: 1.15em;
185 line-height: 1.6;
186 transition: transform 0.3s ease;
187}
188
189.ingredientList li::before {
190 content: '';
191 position: absolute;
192 left: 0;
193 top: 50%;
194 transform: translateY(-50%);
195 width: 10px;
196 height: 10px;
197 background-color: #FFA550;
198 border-radius: 50%;
199 transition: transform 0.2s ease, background-color 0.2s ease;
200}
201
202.ingredientList li:hover::before {
203 transform: translateY(-50%) scale(1.2);
204 background-color: #FF8C00;
205}
206
207.ingredientList li:hover {
208 transform: translateX(7px);
209}
210
211.ingredientList input[type="checkbox"] {
212 margin-right: 10px;
213 accent-color: #FFA550;
214 transform: scale(1.2);
215 cursor: pointer;
216}
217
218.ingredientList input[type="checkbox"]:checked + label::before {
219 background-color: #FF8C00;
220}
221
222.toggleTitle {
223 cursor: pointer;
224 font-size: 1.85em;
225 font-weight: 600;
226 margin-bottom: 0.75em;
227 color: #333;
228 transition: color 0.3s ease;
229 display: inline-block;
230 position: relative;
231 padding-bottom: 10px;
232}
233
234.toggleTitle:hover {
235 color: #FFA550;
236}
237
238.ingredientList {
239 max-height: 0;
240 overflow: hidden;
241 transition: max-height 0.4s ease-in-out;
242}
243
244.show {
245 max-height: 500px;
246}
247
248.hide {
249 max-height: 0;
250}
251.gramsText {
252 font-size: 10px;
253 color: #333;
254 display: inline-block;
255 }
Note: See TracBrowser for help on using the repository browser.