/
Hirose
/
GIT_LEARN
Обзор
Документация
Войти
/
Hirose
/
GIT_LEARN
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/style.css
66 строк
1015 B
Hirose
1233
15 июл 2025, 13:53
15 июл 2025, 13:53
dd78da7
Код
Авторство
О чём код?
@import 'main.css'; :root { --layout__bg: green; --card-bg: white; --button-bg: green; --button--hover__bg: rgb(1, 67, 1); } body { background-color: var(--layout__bg); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; margin: 0; } .container { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgb(0,0,0); } h1 { text-align: center; } .container > form { display: flex; flex-direction: column; gap: 0.5rem; } input, textarea, select { border: 1px solid #ccc; border-radius: 4px; } button[type = submit] { border: none; color:rgb(0, 0, 0); margin-left: auto; margin-right: auto; height: 2rem; max-width: 15rem; border-radius: 5px; background-color: var(--button-bg); } button[type = submit]:hover { background-color: var(--button--hover__bg); } form > div > input { width: 100%; } form > div > textarea { width: 100%; } form > div > label { width: 100%; }