/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task9/style.css
281 строка
5 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 40px 20px; display: flex; justify-content: center; align-items: center; } .container { max-width: 500px; width: 100%; background: rgba(255, 255, 255, 0.95); padding: 35px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); } h2 { text-align: center; margin-bottom: 30px; color: #2c3e50; font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .form-group { margin-bottom: 20px; animation: fadeInUp 0.5s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } label { display: block; margin-bottom: 8px; font-weight: 600; color: #34495e; font-size: 0.95rem; } input[type="text"], input[type="password"], input[type="number"], select { width: 100%; padding: 14px; border: 2px solid #e1e5ee; border-radius: 10px; font-size: 16px; background: white; transition: all 0.3s ease; font-family: inherit; } input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } /* Кастомный чекбокс */ .checkbox-label { display: flex; align-items: center; cursor: pointer; padding: 12px; background: #f8f9ff; border-radius: 10px; border: 2px solid #e1e5ee; transition: all 0.3s ease; } .checkbox-label:hover { background: #f0f2ff; border-color: #667eea; } .checkbox-label input[type="checkbox"] { display: none; } .checkmark { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 4px; margin-right: 12px; position: relative; transition: all 0.3s ease; } .checkbox-label input[type="checkbox"]:checked + .checkmark { background: #667eea; border-color: #667eea; } .checkbox-label input[type="checkbox"]:checked + .checkmark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } /* Стилизация select */ select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; } .error { color: #e74c3c; font-size: 14px; display: block; margin-top: 6px; font-weight: 500; padding-left: 4px; } .hint { color: #f39c12; font-size: 14px; display: block; margin-top: 6px; font-weight: 500; padding-left: 4px; } button { width: 100%; padding: 16px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; border-radius: 12px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); margin-top: 10px; } button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); } button:active { transform: translateY(0); } .success-message { display: none; text-align: center; margin-top: 25px; padding: 20px; background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #155724; border: 2px solid #c3e6cb; border-radius: 12px; font-weight: 600; font-size: 1.1rem; animation: slideIn 0.5s ease-out; } @keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Анимация для группы адреса */ #addressGroup { transition: all 0.4s ease; } #addressGroup.show { animation: slideDown 0.4s ease-out; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); max-height: 0; } to { opacity: 1; transform: translateY(0); max-height: 100px; } } /* Стили для невалидных полей */ input:invalid, select:invalid { border-color: #e74c3c; } input:valid, select:valid { border-color: #2ecc71; } /* Адаптивность */ @media (max-width: 768px) { body { padding: 20px 15px; } .container { padding: 25px; } h2 { font-size: 1.7rem; } input[type="text"], input[type="password"], input[type="number"], select { padding: 12px; } } @media (max-width: 480px) { .container { padding: 20px; } h2 { font-size: 1.5rem; } .form-group { margin-bottom: 15px; } .checkbox-label { padding: 10px; } }