Aleksmorshen commited on
Commit
7b81688
·
verified ·
1 Parent(s): feae588

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +77 -39
styles.css CHANGED
@@ -161,43 +161,81 @@ tr:hover {
161
  margin: 10px 0;
162
  }
163
 
164
- /* Адаптация для мобильных устройств */
165
- @media (max-width: 600px) {
166
- .container {
167
- padding: 10px;
168
- }
169
-
170
- h1 {
171
- font-size: 24px;
172
- }
173
-
174
- h2 {
175
- font-size: 20px;
176
- }
177
-
178
- input, button {
179
- font-size: 14px;
180
- }
181
-
182
- table {
183
- font-size: 14px;
184
- }
185
-
186
- th, td {
187
- padding: 8px;
188
- }
189
-
190
- .actions {
191
- flex-direction: column;
192
- gap: 3px;
193
- }
194
-
195
- .add-to-cart-btn, .add-stock-btn, .delete-btn {
196
- font-size: 12px;
197
- padding: 3px 6px;
198
- }
199
-
200
- .cart, .stats {
201
- padding: 10px;
202
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  }
 
161
  margin: 10px 0;
162
  }
163
 
164
+ /* Стили для модального окна */
165
+ .modal {
166
+ display: none;
167
+ position: fixed;
168
+ z-index: 1000;
169
+ left: 0;
170
+ top: 0;
171
+ width: 100%;
172
+ height: 100%;
173
+ background-color: rgba(0, 0, 0, 0.5);
174
+ justify-content: center;
175
+ align-items: center;
176
+ }
177
+
178
+ .modal-content {
179
+ background-color: #222;
180
+ padding: 20px;
181
+ border-radius: 10px;
182
+ width: 400px;
183
+ max-width: 90%;
184
+ color: #fff;
185
+ position: relative;
186
+ }
187
+
188
+ .modal-content .close {
189
+ position: absolute;
190
+ top: 10px;
191
+ right: 10px;
192
+ font-size: 24px;
193
+ cursor: pointer;
194
+ }
195
+
196
+ .modal-content h2 {
197
+ margin-top: 0;
198
+ }
199
+
200
+ #receiptTable {
201
+ width: 100%;
202
+ border-collapse: collapse;
203
+ margin: 10px 0;
204
+ }
205
+
206
+ #receiptTable th, #receiptTable td {
207
+ padding: 8px;
208
+ border-bottom: 1px solid #444;
209
+ text-align: left;
210
+ }
211
+
212
+ #receiptTable th {
213
+ background-color: #333;
214
+ }
215
+
216
+ #confirmSaleBtn, #cancelSaleBtn {
217
+ padding: 10px;
218
+ margin: 5px;
219
+ border: none;
220
+ border-radius: 5px;
221
+ cursor: pointer;
222
+ font-size: 16px;
223
+ }
224
+
225
+ #confirmSaleBtn {
226
+ background-color: #28a745;
227
+ color: #fff;
228
+ }
229
+
230
+ #confirmSaleBtn:hover {
231
+ background-color: #218838;
232
+ }
233
+
234
+ #cancelSaleBtn {
235
+ background-color: #dc3545;
236
+ color: #fff;
237
+ }
238
+
239
+ #cancelSaleBtn:hover {
240
+ background-color: #c82333;
241
  }