/
ShadowCode
/
QR-generator
Обзор
Документация
Войти
/
ShadowCode
/
QR-generator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
115 строк
3 KB
ShadowCode
create: index.html, script.js, style.css
25 май 2026, 17:48
Верифицирован
25 май 2026, 17:48
87c0ed2
Код
Авторство
О чём код?
body { font-family: 'Arial', sans-serif; background-color: #f4f7f6; color: #333; display: flex; justify-content: center; align-items: flex-start; /* Выравнивание по верхнему краю */ min-height: 100vh; margin: 0; padding-top: 40px; /* Отступ сверху */ } .container { background-color: #ffffff; padding: 30px 40px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); text-align: center; width: 90%; max-width: 600px; } h1 { color: #2c3e50; margin-bottom: 25px; } .input-section { margin-bottom: 30px; display: flex; flex-direction: column; gap: 15px; align-items: center; } label { font-size: 1.1em; margin-bottom: 5px; display: block; /* Чтобы метка занимала всю ширину */ } input[type="text"] { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; box-sizing: border-box; /* Учет padding и border в ширине */ outline: none; transition: border-color 0.3s ease; } input[type="text"]:focus { border-color: #3498db; } button { padding: 12px 25px; background-color: #3498db; color: white; border: none; border-radius: 5px; font-size: 1.1em; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; outline: none; } button:hover { background-color: #2980b9; transform: translateY(-2px); } button:active { transform: translateY(0); } .output-section { margin-top: 30px; border-top: 1px solid #eee; padding-top: 30px; } h2 { color: #3498db; margin-bottom: 20px; } .qr-code-container { display: flex; justify-content: center; align-items: center; min-height: 200px; /* Минимальная высота, чтобыplaceholder'ы было видно */ } #qrcodeOutput canvas { display: block; /* Убирает нижний отступ у canvas */ margin: 0 auto; /* Центрирование canvas */ border: 1px solid #eee; /* Легкая рамка для наглядности */ border-radius: 5px; } #downloadLink { display: inline-block; /* Чтобы кнопка не занимала всю ширину */ margin-top: 20px; text-decoration: none; /* Убираем подчеркивание ссылки */ } #downloadLink button { background-color: #2ecc71; /* Зеленый цвет для кнопки скачивания */ } #downloadLink button:hover { background-color: #27ae60; }