Spaces:
Running
Running
Update styles.css
Browse files- styles.css +42 -100
styles.css
CHANGED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
/* Основные стили */
|
| 2 |
body {
|
| 3 |
font-family: 'Arial', sans-serif;
|
| 4 |
-
background-color: #
|
| 5 |
-
color: #
|
| 6 |
margin: 0;
|
| 7 |
padding: 0;
|
| 8 |
line-height: 1.6;
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
.container {
|
|
@@ -15,6 +16,7 @@ body {
|
|
| 15 |
padding: 20px;
|
| 16 |
max-width: 1200px;
|
| 17 |
margin: 0 auto;
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
.column {
|
|
@@ -34,7 +36,7 @@ body {
|
|
| 34 |
/* Разделитель для заголовков */
|
| 35 |
.column h2 {
|
| 36 |
margin-top: 0;
|
| 37 |
-
color: #
|
| 38 |
font-size: 24px;
|
| 39 |
font-weight: 600;
|
| 40 |
padding-bottom: 10px;
|
|
@@ -54,7 +56,7 @@ body {
|
|
| 54 |
.burger-icon {
|
| 55 |
font-size: 28px;
|
| 56 |
cursor: pointer;
|
| 57 |
-
background-color: #
|
| 58 |
color: #ffffff;
|
| 59 |
padding: 12px;
|
| 60 |
border-radius: 50%;
|
|
@@ -63,7 +65,7 @@ body {
|
|
| 63 |
}
|
| 64 |
|
| 65 |
.burger-icon:hover {
|
| 66 |
-
background-color: #
|
| 67 |
}
|
| 68 |
|
| 69 |
.menu-items {
|
|
@@ -79,7 +81,7 @@ body {
|
|
| 79 |
padding: 12px;
|
| 80 |
cursor: pointer;
|
| 81 |
border-bottom: 1px solid #e0e0e0;
|
| 82 |
-
color: #
|
| 83 |
font-size: 16px;
|
| 84 |
transition: background-color 0.3s ease;
|
| 85 |
}
|
|
@@ -101,24 +103,24 @@ form {
|
|
| 101 |
}
|
| 102 |
|
| 103 |
input {
|
| 104 |
-
padding:
|
| 105 |
font-size: 16px;
|
| 106 |
border: 1px solid #e0e0e0;
|
| 107 |
border-radius: 8px;
|
| 108 |
background-color: #ffffff;
|
| 109 |
-
color: #
|
| 110 |
transition: border-color 0.3s ease;
|
| 111 |
}
|
| 112 |
|
| 113 |
input:focus {
|
| 114 |
-
border-color: #
|
| 115 |
outline: none;
|
| 116 |
}
|
| 117 |
|
| 118 |
button {
|
| 119 |
-
padding:
|
| 120 |
font-size: 16px;
|
| 121 |
-
background-color: #
|
| 122 |
color: #ffffff;
|
| 123 |
border: none;
|
| 124 |
border-radius: 8px;
|
|
@@ -127,19 +129,14 @@ button {
|
|
| 127 |
}
|
| 128 |
|
| 129 |
button:hover {
|
| 130 |
-
background-color: #
|
| 131 |
}
|
| 132 |
|
| 133 |
/* Таблицы */
|
| 134 |
-
.table-wrapper {
|
| 135 |
-
overflow-x: auto;
|
| 136 |
-
margin-top: 20px;
|
| 137 |
-
}
|
| 138 |
-
|
| 139 |
table {
|
| 140 |
width: 100%;
|
| 141 |
border-collapse: collapse;
|
| 142 |
-
|
| 143 |
}
|
| 144 |
|
| 145 |
th, td {
|
|
@@ -149,7 +146,7 @@ th, td {
|
|
| 149 |
}
|
| 150 |
|
| 151 |
th {
|
| 152 |
-
background-color: #
|
| 153 |
color: #ffffff;
|
| 154 |
font-weight: 600;
|
| 155 |
}
|
|
@@ -173,12 +170,12 @@ tr:hover {
|
|
| 173 |
}
|
| 174 |
|
| 175 |
.add-to-cart-btn {
|
| 176 |
-
background-color: #
|
| 177 |
color: #ffffff;
|
| 178 |
}
|
| 179 |
|
| 180 |
.add-to-cart-btn:hover {
|
| 181 |
-
background-color: #
|
| 182 |
}
|
| 183 |
|
| 184 |
.add-stock-btn {
|
|
@@ -191,119 +188,64 @@ tr:hover {
|
|
| 191 |
}
|
| 192 |
|
| 193 |
.delete-btn {
|
| 194 |
-
background-color: #ffcc00;
|
| 195 |
-
color: #333;
|
| 196 |
-
}
|
| 197 |
-
|
| 198 |
-
.delete-btn:hover {
|
| 199 |
-
background-color: #e6b800;
|
| 200 |
-
}
|
| 201 |
-
|
| 202 |
-
/* Корзина */
|
| 203 |
-
.cart {
|
| 204 |
-
background-color: #ffffff;
|
| 205 |
-
}
|
| 206 |
-
|
| 207 |
-
#sellCartBtn {
|
| 208 |
-
margin-top: 10px;
|
| 209 |
-
background-color: #ff6f61;
|
| 210 |
-
}
|
| 211 |
-
|
| 212 |
-
#sellCartBtn:hover {
|
| 213 |
background-color: #ff3b30;
|
|
|
|
| 214 |
}
|
| 215 |
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
margin-top: 20px;
|
| 219 |
-
display: flex;
|
| 220 |
-
align-items: center;
|
| 221 |
-
gap: 10px;
|
| 222 |
-
padding-bottom: 20px;
|
| 223 |
-
border-bottom: 1px solid #e0e0e0;
|
| 224 |
-
}
|
| 225 |
-
|
| 226 |
-
.discount-container label {
|
| 227 |
-
font-weight: bold;
|
| 228 |
-
color: #333;
|
| 229 |
-
}
|
| 230 |
-
|
| 231 |
-
.discount-container input {
|
| 232 |
-
padding: 12px;
|
| 233 |
-
font-size: 16px;
|
| 234 |
-
border: 1px solid #e0e0e0;
|
| 235 |
-
border-radius: 8px;
|
| 236 |
-
background-color: #ffffff;
|
| 237 |
-
color: #333;
|
| 238 |
-
width: 100px;
|
| 239 |
-
transition: border-color 0.3s ease;
|
| 240 |
-
}
|
| 241 |
-
|
| 242 |
-
.discount-container input:focus {
|
| 243 |
-
border-color: #ff6f61;
|
| 244 |
-
outline: none;
|
| 245 |
}
|
| 246 |
|
| 247 |
/* Адаптация для мобильных устройств */
|
| 248 |
@media (max-width: 768px) {
|
| 249 |
.container {
|
| 250 |
padding: 10px;
|
|
|
|
| 251 |
}
|
| 252 |
|
| 253 |
.column {
|
| 254 |
-
display: none;
|
| 255 |
padding: 15px;
|
| 256 |
-
width: 100%;
|
| 257 |
-
box-sizing: border-box;
|
| 258 |
}
|
| 259 |
|
| 260 |
.column.active {
|
| 261 |
-
display: block;
|
| 262 |
}
|
| 263 |
|
| 264 |
h2 {
|
| 265 |
font-size: 20px;
|
| 266 |
}
|
| 267 |
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
|
|
|
| 270 |
}
|
| 271 |
|
| 272 |
-
|
| 273 |
-
width:
|
| 274 |
-
box-sizing: border-box;
|
| 275 |
}
|
| 276 |
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
gap:
|
| 280 |
}
|
| 281 |
|
| 282 |
-
|
| 283 |
-
width: 100%;
|
|
|
|
| 284 |
}
|
| 285 |
|
|
|
|
| 286 |
.burger-menu {
|
| 287 |
display: block;
|
| 288 |
}
|
| 289 |
|
| 290 |
.menu-items {
|
| 291 |
-
width: 100%;
|
| 292 |
-
box-sizing: border-box;
|
| 293 |
-
}
|
| 294 |
-
|
| 295 |
-
.modal-content {
|
| 296 |
-
width: 95%;
|
| 297 |
-
max-width: none;
|
| 298 |
-
}
|
| 299 |
-
|
| 300 |
-
.filter-container {
|
| 301 |
-
flex-direction: column;
|
| 302 |
-
gap: 10px;
|
| 303 |
-
}
|
| 304 |
-
|
| 305 |
-
.filter-container input[type="date"], .filter-container button {
|
| 306 |
-
width: 100%;
|
| 307 |
-
box-sizing: border-box;
|
| 308 |
}
|
| 309 |
}
|
|
|
|
| 1 |
/* Основные стили */
|
| 2 |
body {
|
| 3 |
font-family: 'Arial', sans-serif;
|
| 4 |
+
background-color: #f5f5f7;
|
| 5 |
+
color: #1d1d1f;
|
| 6 |
margin: 0;
|
| 7 |
padding: 0;
|
| 8 |
line-height: 1.6;
|
| 9 |
+
transition: background-color 0.3s ease;
|
| 10 |
}
|
| 11 |
|
| 12 |
.container {
|
|
|
|
| 16 |
padding: 20px;
|
| 17 |
max-width: 1200px;
|
| 18 |
margin: 0 auto;
|
| 19 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 20 |
}
|
| 21 |
|
| 22 |
.column {
|
|
|
|
| 36 |
/* Разделитель для заголовков */
|
| 37 |
.column h2 {
|
| 38 |
margin-top: 0;
|
| 39 |
+
color: #1d1d1f;
|
| 40 |
font-size: 24px;
|
| 41 |
font-weight: 600;
|
| 42 |
padding-bottom: 10px;
|
|
|
|
| 56 |
.burger-icon {
|
| 57 |
font-size: 28px;
|
| 58 |
cursor: pointer;
|
| 59 |
+
background-color: #007aff;
|
| 60 |
color: #ffffff;
|
| 61 |
padding: 12px;
|
| 62 |
border-radius: 50%;
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
.burger-icon:hover {
|
| 68 |
+
background-color: #005bb5;
|
| 69 |
}
|
| 70 |
|
| 71 |
.menu-items {
|
|
|
|
| 81 |
padding: 12px;
|
| 82 |
cursor: pointer;
|
| 83 |
border-bottom: 1px solid #e0e0e0;
|
| 84 |
+
color: #1d1d1f;
|
| 85 |
font-size: 16px;
|
| 86 |
transition: background-color 0.3s ease;
|
| 87 |
}
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
input {
|
| 106 |
+
padding: 12px;
|
| 107 |
font-size: 16px;
|
| 108 |
border: 1px solid #e0e0e0;
|
| 109 |
border-radius: 8px;
|
| 110 |
background-color: #ffffff;
|
| 111 |
+
color: #1d1d1f;
|
| 112 |
transition: border-color 0.3s ease;
|
| 113 |
}
|
| 114 |
|
| 115 |
input:focus {
|
| 116 |
+
border-color: #007aff;
|
| 117 |
outline: none;
|
| 118 |
}
|
| 119 |
|
| 120 |
button {
|
| 121 |
+
padding: 12px;
|
| 122 |
font-size: 16px;
|
| 123 |
+
background-color: #007aff;
|
| 124 |
color: #ffffff;
|
| 125 |
border: none;
|
| 126 |
border-radius: 8px;
|
|
|
|
| 129 |
}
|
| 130 |
|
| 131 |
button:hover {
|
| 132 |
+
background-color: #005bb5;
|
| 133 |
}
|
| 134 |
|
| 135 |
/* Таблицы */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
table {
|
| 137 |
width: 100%;
|
| 138 |
border-collapse: collapse;
|
| 139 |
+
margin-top: 20px;
|
| 140 |
}
|
| 141 |
|
| 142 |
th, td {
|
|
|
|
| 146 |
}
|
| 147 |
|
| 148 |
th {
|
| 149 |
+
background-color: #007aff;
|
| 150 |
color: #ffffff;
|
| 151 |
font-weight: 600;
|
| 152 |
}
|
|
|
|
| 170 |
}
|
| 171 |
|
| 172 |
.add-to-cart-btn {
|
| 173 |
+
background-color: #007aff;
|
| 174 |
color: #ffffff;
|
| 175 |
}
|
| 176 |
|
| 177 |
.add-to-cart-btn:hover {
|
| 178 |
+
background-color: #005bb5;
|
| 179 |
}
|
| 180 |
|
| 181 |
.add-stock-btn {
|
|
|
|
| 188 |
}
|
| 189 |
|
| 190 |
.delete-btn {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
background-color: #ff3b30;
|
| 192 |
+
color: #ffffff;
|
| 193 |
}
|
| 194 |
|
| 195 |
+
.delete-btn:hover {
|
| 196 |
+
background-color: #d70015;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
}
|
| 198 |
|
| 199 |
/* Адаптация для мобильных устройств */
|
| 200 |
@media (max-width: 768px) {
|
| 201 |
.container {
|
| 202 |
padding: 10px;
|
| 203 |
+
overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
|
| 204 |
}
|
| 205 |
|
| 206 |
.column {
|
| 207 |
+
display: none; /* Скрываем все колонки по умолчанию */
|
| 208 |
padding: 15px;
|
| 209 |
+
width: 100%; /* Занимаем всю ширину экрана */
|
| 210 |
+
box-sizing: border-box; /* Учитываем padding в ширине */
|
| 211 |
}
|
| 212 |
|
| 213 |
.column.active {
|
| 214 |
+
display: block; /* Показываем активную колонку */
|
| 215 |
}
|
| 216 |
|
| 217 |
h2 {
|
| 218 |
font-size: 20px;
|
| 219 |
}
|
| 220 |
|
| 221 |
+
/* Улучшаем отображение таблиц на мобильных устройствах */
|
| 222 |
+
table {
|
| 223 |
+
display: block;
|
| 224 |
+
overflow-x: auto; /* Добавляем горизонтальную прокрутку для таблиц */
|
| 225 |
+
white-space: nowrap; /* Предотвращаем перенос строк */
|
| 226 |
}
|
| 227 |
|
| 228 |
+
th, td {
|
| 229 |
+
min-width: 100px; /* Минимальная ширина ячеек */
|
|
|
|
| 230 |
}
|
| 231 |
|
| 232 |
+
/* Улучшаем отображение форм на мобильных устройств */
|
| 233 |
+
form {
|
| 234 |
+
gap: 10px;
|
| 235 |
}
|
| 236 |
|
| 237 |
+
input, button {
|
| 238 |
+
width: 100%; /* Занимаем всю ширину экрана */
|
| 239 |
+
box-sizing: border-box; /* Учитываем padding в ширине */
|
| 240 |
}
|
| 241 |
|
| 242 |
+
/* Улучшаем отображение бургер-меню */
|
| 243 |
.burger-menu {
|
| 244 |
display: block;
|
| 245 |
}
|
| 246 |
|
| 247 |
.menu-items {
|
| 248 |
+
width: 100%; /* Занимаем всю ширину экрана */
|
| 249 |
+
box-sizing: border-box; /* Учитываем padding в ширине */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
}
|
| 251 |
}
|