- Исправлено выпадающее меню профиля (hover-баг с margin-top) - Исправлена авторизация: правильные пути к API (api/auth.php) - Исправлены ссылки на админку (admin/index.php вместо admin_panel.php) - Исправлены пути API корзины в catalog.php и checkout.php - Добавлена форма добавления/редактирования товаров в админке - Исправлены кнопки +/- в корзине (улучшена обработка AJAX) - Исправлена регистрация: правильные пути и обработка boolean в PostgreSQL - Добавлена миграция для назначения прав админа пользователю admin@mail.ru - Удален тестовый блок 'Быстрый вход' для неавторизованных пользователей - Улучшена обработка ошибок во всех API-эндпоинтах
142 lines
2.5 KiB
Plaintext
142 lines
2.5 KiB
Plaintext
.error-message {
|
|
color: #ff0000;
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
display: none;
|
|
}
|
|
|
|
.form__input.error {
|
|
border-color: #ff0000;
|
|
}
|
|
|
|
.form__group {
|
|
position: relative;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Стили для сообщений внизу страницы */
|
|
.page-messages {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 1000;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.message {
|
|
padding: 15px;
|
|
margin: 10px 0;
|
|
border-radius: 5px;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
display: none;
|
|
}
|
|
|
|
.message.error {
|
|
background-color: #ffebee;
|
|
color: #c62828;
|
|
border: 1px solid #ffcdd2;
|
|
}
|
|
|
|
.message.success {
|
|
background-color: #e8f5e9;
|
|
color: #453227;
|
|
border: 1px solid #c8e6c9;
|
|
}
|
|
|
|
.message.warning {
|
|
background-color: #fff3e0;
|
|
color: #ef6c00;
|
|
border: 1px solid #ffe0b2;
|
|
}
|
|
|
|
.privacy-error {
|
|
color: #ff0000;
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
display: none;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Дополнительные стили для формы регистрации */
|
|
.input-group {
|
|
position: relative;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.profile-form input.error {
|
|
border-color: #ff0000;
|
|
background-color: #fff5f5;
|
|
}
|
|
|
|
.privacy-checkbox {
|
|
margin: 20px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.privacy-checkbox label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.privacy-checkbox input[type="checkbox"] {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Исправление отступов для страницы регистрации */
|
|
.profile-page-main {
|
|
padding: 40px 0;
|
|
min-height: calc(100vh - 200px);
|
|
}
|
|
|
|
/* Убедимся, что контейнер не перекрывает шапку и футер */
|
|
.profile-container {
|
|
margin: 0 auto;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.input-hint {
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* Стили для страницы входа */
|
|
.form-options {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.remember-me {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
color: #453227;
|
|
}
|
|
|
|
.remember-me input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.forgot-password {
|
|
font-size: 14px;
|
|
color: #453227;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.forgot-password:hover {
|
|
color: #617365;
|
|
text-decoration: none;
|
|
} |