/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task7/style.css
261 строка
4 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css — task7 */ * { 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; } .controls { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: flex-end; margin-bottom: 28px; padding: 20px; background: #f8f9fc; border-radius: 14px; border: 1px solid #e5e7eb; } .controls label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #374151; } .controls input { padding: 11px 14px; width: 110px; font-size: 0.95rem; border: 1.5px solid #d1d5db; border-radius: 10px; text-align: center; background: #fff; outline: none; font-family: inherit; color: #1a1a2e; transition: border-color 0.2s; } .controls input:focus { border-color: #6c63ff; } #generateBtn { padding: 12px 24px; 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; } #generateBtn:hover { background: #5a52d5; transform: translateY(-1px); } #generateBtn:active { transform: translateY(0); } .table-container { overflow-x: auto; background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; } table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 14px; text-align: center; font-size: 0.9rem; border: 1px solid #f3f4f6; } th { background: #6c63ff; color: white; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.3px; } td { cursor: pointer; color: #374151; font-weight: 500; transition: background 0.15s ease; } tbody tr:nth-child(even) td { background: #fafafa; } tbody tr:nth-child(odd) td { background: #fff; } td:hover { background: #ede9fe !important; color: #6c63ff; font-weight: 600; } /* Модальное окно */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 15, 30, 0.45); backdrop-filter: blur(3px); justify-content: center; align-items: center; } .modal-content { background: #fff; padding: 36px 32px; border-radius: 20px; width: 90%; max-width: 400px; position: relative; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .close { position: absolute; top: 14px; right: 18px; font-size: 1.4rem; font-weight: 700; color: #9ca3af; cursor: pointer; line-height: 1; transition: color 0.2s; } .close:hover { color: #6c63ff; } .modal-content h2 { color: #1a1a2e; margin-bottom: 16px; font-size: 1.2rem; font-weight: 700; } #modalText { margin-top: 12px; font-size: 1.1rem; line-height: 1.6; color: #374151; font-weight: 500; padding: 16px; background: #f5f3ff; border-radius: 10px; border-left: 3px solid #6c63ff; } @media (max-width: 768px) { .container { padding: 36px 20px 28px; } h1 { font-size: 1.7rem; } .controls { flex-direction: column; align-items: center; } .controls label { width: 100%; max-width: 220px; } .controls input { width: 100%; } th, td { padding: 9px 10px; font-size: 0.82rem; } } @media (max-width: 480px) { th, td { padding: 7px 8px; font-size: 0.75rem; } }