Spaces:
Running
Running
Update styles.css
Browse files- styles.css +51 -1
styles.css
CHANGED
@@ -7,6 +7,29 @@ body {
|
|
7 |
padding: 0;
|
8 |
}
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
.container {
|
11 |
display: flex;
|
12 |
gap: 20px;
|
@@ -15,12 +38,18 @@ body {
|
|
15 |
margin: 0 auto;
|
16 |
}
|
17 |
|
18 |
-
|
|
|
19 |
flex: 1;
|
20 |
background-color: #f9f9f9;
|
21 |
padding: 20px;
|
22 |
border-radius: 10px;
|
23 |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
h2 {
|
@@ -225,4 +254,25 @@ tr:hover {
|
|
225 |
|
226 |
#cancelSaleBtn:hover {
|
227 |
background-color: #c82333;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
}
|
|
|
7 |
padding: 0;
|
8 |
}
|
9 |
|
10 |
+
/* Бургер-меню для мобильных устройств */
|
11 |
+
.menu-toggle {
|
12 |
+
display: none;
|
13 |
+
flex-direction: column;
|
14 |
+
cursor: pointer;
|
15 |
+
padding: 10px;
|
16 |
+
position: fixed;
|
17 |
+
top: 10px;
|
18 |
+
left: 10px;
|
19 |
+
z-index: 1000;
|
20 |
+
background-color: #28a745;
|
21 |
+
border-radius: 5px;
|
22 |
+
}
|
23 |
+
|
24 |
+
.menu-toggle span {
|
25 |
+
width: 25px;
|
26 |
+
height: 3px;
|
27 |
+
background-color: #fff;
|
28 |
+
margin: 4px 0;
|
29 |
+
transition: 0.4s;
|
30 |
+
}
|
31 |
+
|
32 |
+
/* Контейнер для разделов */
|
33 |
.container {
|
34 |
display: flex;
|
35 |
gap: 20px;
|
|
|
38 |
margin: 0 auto;
|
39 |
}
|
40 |
|
41 |
+
/* Стили для разделов */
|
42 |
+
.section {
|
43 |
flex: 1;
|
44 |
background-color: #f9f9f9;
|
45 |
padding: 20px;
|
46 |
border-radius: 10px;
|
47 |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
48 |
+
display: none;
|
49 |
+
}
|
50 |
+
|
51 |
+
.section.active {
|
52 |
+
display: block;
|
53 |
}
|
54 |
|
55 |
h2 {
|
|
|
254 |
|
255 |
#cancelSaleBtn:hover {
|
256 |
background-color: #c82333;
|
257 |
+
}
|
258 |
+
|
259 |
+
/* Адаптация для мобильных устройств */
|
260 |
+
@media (max-width: 768px) {
|
261 |
+
.menu-toggle {
|
262 |
+
display: flex;
|
263 |
+
}
|
264 |
+
|
265 |
+
.container {
|
266 |
+
flex-direction: column;
|
267 |
+
padding: 10px;
|
268 |
+
}
|
269 |
+
|
270 |
+
.section {
|
271 |
+
display: none;
|
272 |
+
margin-top: 60px; /* Отступ для бургер-меню */
|
273 |
+
}
|
274 |
+
|
275 |
+
.section.active {
|
276 |
+
display: block;
|
277 |
+
}
|
278 |
}
|