/
maxxon
/
web-static-labs
Обзор
Документация
Войти
/
maxxon
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task1/styles.css
78 строк
2 KB
Dasha_10
изменения
19 окт 2025, 18:51
19 окт 2025, 18:51
b6adcb0
Код
Авторство
О чём код?
body { font-family: sans-serif; margin: 0; padding: 0; background-color: #f0f8ff; /* Light blue background */ color: #333; } header { background-color: #b0e0e6; /* Light sea green header */ padding: 20px; text-align: center; color: #fff; } main { padding: 20px; } /* Styles for the popup window */ #popup-container { display: none; /* Hidden by default */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */ z-index: 1000; /* Ensure it's on top */ } #popup-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); text-align: center; width: 50%; /* Default width */ min-width: 300px; /* Minimum width */ height: 30%; /* Default height */ min-height: 200px; /* Minimum height */ } #popup-content input[type="email"] { padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; width: 80%; box-sizing: border-box; /* Include padding and border in the element's total width and height */ } #popup-content button { background-color: #4682b4; /* Steel blue button */ color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; margin: 5px; } #popup-content button:hover { background-color: #2e5a8b; } #email-error { color: red; margin-top: 5px; } .error-input { border-color: red !important; }