/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task2/style.css
208 строк
3 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css — task2 */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; min-height: 100vh; padding: 40px 20px; display: flex; justify-content: center; align-items: flex-start; } .container { max-width: 600px; width: 100%; background: #fff; padding: 44px 36px 36px; border-radius: 20px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); position: relative; overflow: hidden; } .container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #6c63ff, #48bfe3); } h1 { text-align: center; font-size: 2rem; font-weight: 700; color: #1a1a2e; letter-spacing: -0.5px; margin-bottom: 28px; } .input-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; } #taskInput { width: 100%; height: 96px; padding: 13px 16px; font-size: 0.95rem; border: 1.5px solid #d1d5db; border-radius: 10px; resize: vertical; outline: none; background: #fafafa; font-family: inherit; color: #1a1a2e; transition: border-color 0.2s, background 0.2s; } #taskInput::placeholder { color: #9ca3af; } #taskInput:focus { border-color: #6c63ff; background: #fff; } #addTaskBtn { padding: 13px; font-size: 0.95rem; font-weight: 600; background: #6c63ff; color: white; border: none; border-radius: 10px; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; } #addTaskBtn:hover { background: #5a52d5; transform: translateY(-1px); } #addTaskBtn:active { transform: translateY(0); } .task-list { display: flex; flex-direction: column; gap: 10px; } .task-item { padding: 16px 16px 16px 20px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; position: relative; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; animation: slideIn 0.25s ease-out; } .task-item::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: #6c63ff; border-radius: 3px 0 0 3px; } .task-item:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); } @keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } .task-header { font-size: 0.75rem; color: #9ca3af; margin-bottom: 5px; font-weight: 500; } .task-text { font-size: 0.95rem; color: #1a1a2e; line-height: 1.5; word-break: break-word; } .task-actions { margin-top: 12px; display: flex; gap: 8px; } .task-actions button { padding: 7px 14px; font-size: 0.82rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease; } .copy-btn { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; } .copy-btn:hover { background: #22c55e; color: white; border-color: #22c55e; } .delete-btn { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; } .delete-btn:hover { background: #ef4444; color: white; border-color: #ef4444; } @media (max-width: 480px) { .container { padding: 36px 20px 28px; } h1 { font-size: 1.7rem; } .task-actions { flex-direction: column; } .task-actions button { width: 100%; } }