/
RoditelevVV
/
web-static-labs
Обзор
Документация
Войти
/
RoditelevVV
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task2/styles.css
284 строки
5 KB
karpov
finish lab3, lab4
12 мар 2026, 08:19
12 мар 2026, 08:19
74cd197
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; min-height: 100vh; padding: 20px; } .container { max-width: 800px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; } .header { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; padding: 30px; text-align: center; } .header h1 { font-size: 2.5rem; margin-bottom: 10px; } .subtitle { font-size: 1.1rem; opacity: 0.9; } .main-content { padding: 30px; } /* Область ввода */ .input-section { margin-bottom: 30px; } .input-container { display: flex; flex-direction: column; gap: 15px; } #taskInput { padding: 15px; border: 2px solid #ddd; border-radius: 10px; font-size: 1rem; resize: vertical; min-height: 100px; transition: all 0.3s ease; } #taskInput:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .add-btn { padding: 15px 25px; background: linear-gradient(135deg, #00b09b, #96c93d); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; align-self: flex-start; } .add-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3); } .add-btn:active { transform: translateY(0); } /* Область списка задач */ .tasks-section h2 { color: #2c3e50; margin-bottom: 20px; font-size: 1.8rem; } .tasks-list { display: flex; flex-direction: column; gap: 15px; } .empty-state { text-align: center; padding: 40px 20px; color: #7f8c8d; font-size: 1.2rem; background: #f8f9fa; border-radius: 10px; border: 2px dashed #ddd; } .empty-state small { font-size: 0.9rem; opacity: 0.7; } /* Стили для задачи */ .task-item { background: white; border: 2px solid #e9ecef; border-radius: 10px; padding: 20px; transition: all 0.3s ease; position: relative; } .task-item:hover { border-color: #667eea; background: #f8f9ff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 15px; } .task-date { color: #7f8c8d; font-size: 0.9rem; white-space: nowrap; } .task-content { color: #2c3e50; font-size: 1.1rem; line-height: 1.5; margin-bottom: 15px; word-wrap: break-word; } .task-actions { display: flex; gap: 10px; justify-content: flex-end; } .action-btn { padding: 8px 15px; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 5px; } .copy-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; } .copy-btn:hover { background: linear-gradient(135deg, #5a6fd8, #6a42a0); transform: translateY(-1px); } .delete-btn { background: linear-gradient(135deg, #ff416c, #ff4b2b); color: white; } .delete-btn:hover { background: linear-gradient(135deg, #e8385f, #e83a1c); transform: translateY(-1px); } /* Футер */ .footer { background: #f8f9fa; padding: 20px 30px; text-align: center; border-top: 1px solid #e9ecef; color: #6c757d; font-weight: 500; } /* Анимации */ @keyframes taskAppear { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .task-item.new-task { animation: taskAppear 0.3s ease-out; } /* Адаптивность */ @media (max-width: 768px) { .container { margin: 10px; border-radius: 10px; } .header { padding: 20px; } .header h1 { font-size: 2rem; } .main-content { padding: 20px; } .task-header { flex-direction: column; align-items: flex-start; gap: 5px; } .task-actions { justify-content: flex-start; flex-wrap: wrap; } .action-btn { flex: 1; min-width: 120px; justify-content: center; } } @media (max-width: 480px) { body { padding: 10px; } .header h1 { font-size: 1.8rem; } .add-btn { width: 100%; align-self: stretch; } .task-actions { flex-direction: column; } .action-btn { width: 100%; } }