/
kkkuceravin
/
Homework_PHP
Обзор
Документация
Войти
/
kkkuceravin
/
Homework_PHP
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
styles/styles.css
331 строка
5 KB
kuceravink
final commit
01 дек 2025, 17:43
01 дек 2025, 17:43
c1ce758
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; } .navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 20px rgba(0,0,0,0.1); } .nav-brand h1 { color: #667eea; font-size: 1.5rem; } .nav-menu { display: flex; align-items: center; gap: 1.5rem; } .nav-menu a { color: #333; text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; font-weight: 500; } .nav-menu a:hover { background-color: #667eea; color: white; } .user-info { color: #666; font-style: italic; } .logout-btn { background-color: #e74c3c; color: white !important; } .logout-btn:hover { background-color: #c0392b !important; } .container { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; } .alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 500; } .alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Формы */ .form-container { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 500px; margin: 2rem auto; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #333; } .form-control { width: 100%; padding: 0.75rem; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; } .form-control:focus { outline: none; border-color: #667eea; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; text-align: center; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } .btn-danger { background-color: #e74c3c; color: white; } .btn-danger:hover { background-color: #c0392b; } .btn-edit { background-color: #3498db; color: white; } .btn-edit:hover { background-color: #2980b9; } /* Карточки заметок */ .notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; } .note-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; } .note-card:hover { transform: translateY(-5px); } .note-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; } .note-title { font-size: 1.25rem; font-weight: 600; color: #333; margin: 0; } .note-meta { color: #666; font-size: 0.875rem; margin-bottom: 1rem; } .note-content { color: #555; line-height: 1.6; margin-bottom: 1rem; } .note-actions { display: flex; gap: 0.5rem; } .note-public { background-color: #27ae60; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; } /* Статистика */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; } .stat-card { background: white; padding: 2rem; border-radius: 12px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .stat-number { font-size: 2.5rem; font-weight: 700; color: #667eea; margin-bottom: 0.5rem; } .stat-label { color: #666; font-weight: 600; } .welcome-section { text-align: center; color: white; padding: 4rem 0; } .welcome-section h1 { font-size: 3rem; margin-bottom: 1rem; } .welcome-section p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; } /* Футер */ .footer { text-align: center; padding: 2rem; color: white; margin-top: 4rem; opacity: 0.8; } /* Сообщения */ .message-container { position: fixed; top: 1rem; right: 1rem; z-index: 1000; max-width: 400px; } .message { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 0.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: slideIn 0.3s ease; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Адаптивность */ @media (max-width: 768px) { .navbar { flex-direction: column; gap: 1rem; padding: 1rem; } .nav-menu { flex-wrap: wrap; justify-content: center; gap: 0.5rem; } .notes-grid { grid-template-columns: 1fr; } .welcome-section h1 { font-size: 2rem; } .container { padding: 0 1rem; } }