/
drndsv
/
Internet-Auction
Обзор
Документация
Войти
/
drndsv
/
Internet-Auction
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/webapp/userStyle.css
226 строк
4 KB
drndsv
загружаю рабочий проект
30 май 2025, 19:55
30 май 2025, 19:55
c1532e9
Код
Авторство
О чём код?
/* Общие стили */ body { font-family: "Montserrat", sans-serif; background-color: #f5f5f5; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .text-cont{ font-family: "Montserrat", sans-serif; margin-left: 50px; margin-right: 200px; display: flex; justify-content: center; align-items: center; } /* Шапка страницы */ .header { width: 100%; background-color: rgba(166,150,243,0.92); padding: 10px 20px; display: flex; justify-content: flex-end; align-items: center; position: fixed; top: 0; z-index: 1000; } .user-menu { position: relative; color: #ecf0f1; cursor: pointer; font-weight: 500; } .user-menu:hover { color: #ffffff; } .dropdown-content { display: none; position: absolute; right: 0; background-color: rgba(166,150,243,0.92); min-width: 200px; box-shadow: 0px 8px 16px rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden; margin-top: 10px; } .dropdown-content a { color: #ffffff; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover { background-color: rgba(166,150,243,0.92); } .dropdown-content.show { display: block; } /* Контейнер для боковой панели и основного контента */ .container { display: flex; margin-top: 60px; /* Высота шапки */ height: calc(100vh - 60px); } /* Боковая панель */ .sidebar { width: 800px; background-color: rgba(166,150,243,0.92); padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; } /* Контейнер для кнопки и описания */ .sidebar-item { display: flex; align-items: center; margin-bottom: 15px; } .sidebar-button { background-color: rgba(129, 113, 194, 0.92); color: #ecf0f1; border: none; padding: 15px; margin-bottom: 10px; text-align: left; font-size: 16px; cursor: pointer; border-radius: 4px; transition: background-color 0.3s; margin-right: 20px; } .sidebar-button:hover { background-color: rgba(117, 101, 183, 0.92); } /* Стили для описаний кнопок */ .sidebar-description { color: #eaf1f3; font-size: 16px; margin-bottom: 30px; } /* Основной контент */ .main-content { flex: 1; padding: 40px; box-sizing: border-box; } .user-info { background-color: #ffffff; padding: 20px; border-radius: 8px; box-shadow: 0px 0px 10px rgba(0,0,0,0.1); max-width: 400px; } .hidden { display: none; } .user-info h3 { margin-top: 0; margin-bottom: 20px; color: #2c3e50; } .user-info p { margin: 10px 0; font-size: 16px; color: #34495e; } /* Медиа-запросы для адаптивности */ @media (max-width: 768px) { .container { flex-direction: column; } .sidebar { width: 100%; flex-direction: row; overflow-x: auto; } .sidebar-item { flex: 1; margin: 5px; text-align: center; } .sidebar-description { display: none; /* Скрыть описания, когда экран маленький для экономии места */ } .sidebar-item:hover .sidebar-description { display: block; /* Показывать при наведении */ } .sidebar-button { flex: 1; margin: 5px; text-align: center; } .main-content { padding: 20px; } } /* Стили для таблицы */ .l-table { width: 100%; border-collapse: collapse; margin-top: 20px; } .l-table th, .l-table td { border: 1px solid #ccc; padding: 10px; text-align: center; } .l-table th { background-color: #f2f2f2; } /* Стили для кнопок */ .button-group { margin-top: 20px; display: flex; gap: 10px; } .action-button { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background-color 0.3s; } .action-button:hover { background-color: #45a049; }