/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task3/style.css
176 строк
3 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css — task3 */ * { 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); text-align: center; position: relative; overflow: hidden; } .container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #6c63ff, #48bfe3); } h1 { font-size: 2rem; font-weight: 700; color: #1a1a2e; letter-spacing: -0.5px; margin-bottom: 28px; } h2 { font-size: 1.2rem; font-weight: 600; color: #374151; margin: 28px 0 16px; } #colorizeBtn { padding: 12px 28px; font-size: 0.95rem; font-weight: 600; background: #6c63ff; color: white; border: none; border-radius: 10px; cursor: pointer; margin-bottom: 24px; transition: background 0.2s ease, transform 0.2s ease; } #colorizeBtn:hover { background: #5a52d5; transform: translateY(-2px); } #colorizeBtn:active { transform: translateY(0); } .grid { display: grid; grid-template-columns: repeat(10, 25px); gap: 3px; justify-content: center; margin: 0 auto 28px; background: #f0f2f5; padding: 14px; border-radius: 12px; border: 1px solid #e5e7eb; } .cell { width: 25px; height: 25px; cursor: pointer; border-radius: 4px; transition: transform 0.15s ease, box-shadow 0.15s ease; animation: fadeIn 0.25s ease-out; } .cell:hover { transform: scale(1.15); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); z-index: 1; position: relative; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } } .stats-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); } .stats-table th, .stats-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f3f4f6; } .stats-table th { background: #6c63ff; color: white; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.3px; } .stats-table tr:last-child td { border-bottom: none; } .stats-table tr:hover td { background: #f5f3ff; } .color-sample { display: inline-block; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; margin-right: 10px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); } @media (max-width: 480px) { .container { padding: 36px 20px 28px; } h1 { font-size: 1.6rem; } .grid { grid-template-columns: repeat(10, 20px); } .cell { width: 20px; height: 20px; } .stats-table th, .stats-table td { padding: 10px 12px; font-size: 0.85rem; } }