/
aska
/
web-static-labs
Обзор
Документация
Войти
/
aska
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab6/task2/style.css
365 строк
6 KB
yourr
111
14 янв 2026, 14:18
14 янв 2026, 14:18
4d4f934
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background-color: #ffffff; color: #000000; line-height: 1.6; padding: 20px; } .box { max-width: 600px; margin: 0 auto; background-color: #ffffff; border: 2px solid #000000; border-radius: 8px; padding: 20px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); position: relative; } h1 { text-align: center; margin-bottom: 20px; } .form-area { margin-bottom: 20px; } .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; } input[type="text"] { width: 100%; padding: 10px 12px; border: 2px solid #000000; border-radius: 4px; background-color: #ffffff; color: #000000; font-size: 14px; transition: border-color 0.3s ease; } input[type="text"]:focus { outline: none; border-color: #333333; background-color: #f8f8f8; } .button-group { display: flex; gap: 10px; flex-wrap: wrap; } .btn { padding: 10px 20px; border: 2px solid #000000; border-radius: 4px; background-color: #000000; color: #ffffff; font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; flex: 1; min-width: 120px; } .btn:hover { background-color: #333333; border-color: #333333; } .btn:active { background-color: #666666; transform: translateY(1px); } .btn:disabled { background-color: #cccccc; border-color: #cccccc; color: #666666; cursor: not-allowed; } .btn.secondary { background-color: #ffffff; color: #000000; } .btn.secondary:hover { background-color: #f0f0f0; } /* Bubble окно стили */ .cookie-bubble { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #ffffff; border: 2px solid #000000; border-radius: 12px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); z-index: 1000; min-width: 350px; max-width: 90vw; } .bubble-content { padding: 0; } .bubble-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 0 20px; border-bottom: 1px solid #eeeeee; margin-bottom: 15px; } .bubble-header h3 { margin: 0; color: #000000; font-size: 18px; } .close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #666666; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; } .close-btn:hover { background-color: #f0f0f0; color: #000000; } .bubble-body { padding: 0 20px 20px 20px; } .bubble-body p { margin-bottom: 20px; color: #333333; line-height: 1.5; text-align: left; } .bubble-buttons { display: flex; gap: 10px; justify-content: center; } .bubble-btn { flex: 1; min-width: 100px; padding: 12px 20px; } .accept-btn { background-color: #000000; border-color: #000000; color: #ffffff; } .accept-btn:hover { background-color: #333333; border-color: #333333; } .reject-btn { background-color: #ffffff; border-color: #000000; color: #000000; } .reject-btn:hover { background-color: #f8f8f8; } /* Result Area */ .result-area { margin-top: 30px; padding: 20px; border: 2px solid #000000; border-radius: 8px; background-color: #f8f8f8; } .result-area h3 { margin-bottom: 20px; text-align: center; color: #000000; } .result-info { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; } .result-info div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #dddddd; } .result-info div:last-child { border-bottom: none; } .cookie-list { font-family: monospace; font-size: 12px; background-color: #ffffff; padding: 5px 8px; border-radius: 4px; border: 1px solid #cccccc; max-width: 200px; word-break: break-all; } .management-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .status-message { margin-top: 15px; padding: 12px; border-radius: 6px; text-align: center; font-weight: bold; border: 1px solid transparent; } .status-success { background-color: #e8f5e8; border-color: #00aa00; color: #006600; } .status-error { background-color: #ffe8e8; border-color: #ff0000; color: #cc0000; } .status-info { background-color: #e8f4ff; border-color: #0066cc; color: #004499; } .status-warning { background-color: #fff8e8; border-color: #ffa500; color: #cc8400; } /* Overlay для bubble */ .bubble-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; } /* Адаптивность для мобильных устройств */ @media (max-width: 768px) { body { padding: 10px; } .box { padding: 15px; } .button-group { flex-direction: column; } .btn { width: 100%; } .bubble-buttons { flex-direction: column; } .management-buttons { flex-direction: column; } .result-info div { flex-direction: column; gap: 5px; align-items: flex-start; } .cookie-bubble { min-width: 300px; margin: 0 10px; } .bubble-header { padding: 15px 15px 0 15px; } .bubble-body { padding: 0 15px 15px 15px; } .cookie-list { max-width: 100%; } } @media (max-width: 480px) { .cookie-bubble { min-width: 280px; } .bubble-header h3 { font-size: 16px; } .bubble-body p { font-size: 14px; } }