/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task4/style.css
219 строк
4 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css — task4 */ * { 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: 900px; 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; } h2 { width: 100%; font-size: 1rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; } .form-section, .filter-section { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 24px; padding: 20px; background: #f8f9fc; border-radius: 14px; border: 1px solid #e5e7eb; } .form-section input, .filter-section input { padding: 11px 14px; font-size: 0.9rem; border: 1.5px solid #d1d5db; border-radius: 10px; width: 140px; background: #fff; font-family: inherit; color: #1a1a2e; outline: none; transition: border-color 0.2s; } .form-section input:focus, .filter-section input:focus { border-color: #6c63ff; } .form-section input::placeholder, .filter-section input::placeholder { color: #9ca3af; } #age { width: 100px; } #phone { width: 160px; } button { padding: 11px 22px; font-size: 0.9rem; font-weight: 600; background: #6c63ff; color: white; border: none; border-radius: 10px; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; } button:hover { background: #5a52d5; transform: translateY(-1px); } button:active { transform: translateY(0); } .contacts-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); margin-top: 8px; } .contacts-table th, .contacts-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; } .contacts-table th { background: #6c63ff; color: white; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.3px; } .contacts-table tr:last-child td { border-bottom: none; } .contacts-table tbody tr:hover td { background: #f5f3ff; } @keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .contacts-table tbody tr { animation: slideIn 0.25s ease-out; } .delete-btn { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; padding: 7px 14px; font-size: 0.8rem; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s ease; } .delete-btn:hover { background: #ef4444; color: white; border-color: #ef4444; transform: none; } @media (max-width: 768px) { .container { padding: 36px 20px 28px; } h1 { font-size: 1.7rem; } .form-section, .filter-section { flex-direction: column; align-items: stretch; } .form-section input, .filter-section input, #age, #phone { width: 100%; } button { width: 100%; } } @media (max-width: 480px) { .contacts-table { display: block; overflow-x: auto; white-space: nowrap; } }