/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task6/style.css
237 строк
4 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css — task6 */ * { 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: center; } .container { max-width: 460px; 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: 1.9rem; font-weight: 700; color: #1a1a2e; letter-spacing: -0.5px; margin-bottom: 28px; } .settings { background: #f8f9fc; padding: 22px; border-radius: 14px; border: 1px solid #e5e7eb; margin-bottom: 20px; } .settings label { display: block; margin: 14px 0 6px; font-weight: 600; color: #374151; font-size: 0.9rem; } .settings label:first-child { margin-top: 0; } #passwordLength { width: 100%; padding: 12px 14px; font-size: 0.95rem; border: 1.5px solid #d1d5db; border-radius: 10px; background: #fff; outline: none; color: #1a1a2e; font-family: inherit; transition: border-color 0.2s; } #passwordLength:focus { border-color: #6c63ff; } .checkbox-group { background: white; padding: 16px; border-radius: 10px; border: 1.5px solid #e5e7eb; margin: 16px 0; } .checkbox-group label { display: flex; align-items: center; margin: 10px 0; font-weight: 500; font-size: 0.9rem; color: #374151; cursor: pointer; padding: 6px 8px; border-radius: 6px; transition: background 0.15s; } .checkbox-group label:first-child { margin-top: 0; } .checkbox-group label:last-child { margin-bottom: 0; } .checkbox-group label:hover { background: #f5f3ff; } .checkbox-group input[type="checkbox"] { margin-right: 10px; width: 16px; height: 16px; accent-color: #6c63ff; cursor: pointer; flex-shrink: 0; } #generateBtn { width: 100%; padding: 14px; font-size: 0.95rem; font-weight: 600; background: #6c63ff; color: white; border: none; border-radius: 10px; cursor: pointer; margin-top: 4px; transition: background 0.2s ease, transform 0.2s ease; } #generateBtn:hover { background: #5a52d5; transform: translateY(-1px); } #generateBtn:active { transform: translateY(0); } .result { margin-top: 20px; text-align: center; display: none; background: #f8f9fc; padding: 22px; border-radius: 14px; border: 1px solid #e5e7eb; animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } .password-output { font-size: 1rem; font-family: 'Courier New', monospace; padding: 16px; background: white; border: 1.5px dashed #d1d5db; border-radius: 10px; margin-bottom: 16px; word-break: break-all; font-weight: 600; color: #1a1a2e; min-height: 56px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .password-output:not(:empty) { background: #f0fdf4; border-color: #bbf7d0; border-style: solid; color: #166534; } .copy-btn { padding: 12px 24px; font-size: 0.9rem; font-weight: 600; background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; border-radius: 10px; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; } .copy-btn:hover:not(:disabled) { background: #22c55e; color: white; border-color: #22c55e; transform: translateY(-1px); } .copy-btn:active:not(:disabled) { transform: translateY(0); } .copy-btn:disabled { background: #f3f4f6; color: #9ca3af; border-color: #e5e7eb; cursor: not-allowed; } @media (max-width: 480px) { .container { padding: 36px 20px 28px; } h1 { font-size: 1.6rem; } .settings { padding: 16px; } .checkbox-group { padding: 12px; } }