/
maxxon
/
web-static-labs
Обзор
Документация
Войти
/
maxxon
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab4/task8/styles.css
226 строк
5 KB
maxxon
lab1 lab2 lab3 lab4
12 ноя 2025, 02:32
12 ноя 2025, 02:32
aa1390d
Код
Авторство
О чём код?
body { font-family: 'Orbitron', sans-serif; background: radial-gradient(circle at center, #2c2c2c 0%, #1a1a1a 100%); margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; min-height: 100vh; color: #e0e0e0; overflow: hidden; position: relative; } body::after { content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%; background: linear-gradient(45deg, #ffa500, #ff8c00, #ffa500, #ff8c00); border-radius: 50%; z-index: -1; opacity: 0.1; animation: rotate 20s linear infinite; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,165,0,0.1)"/></svg>') repeat; animation: twinkle 5s linear infinite; pointer-events: none; } @keyframes twinkle { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } } h1 { color: #ffa500; text-align: center; text-shadow: 0 0 20px #ffa500; font-size: 2.5em; margin-bottom: 30px; animation: pulse 2s ease-in-out infinite alternate; } @keyframes pulse { from { text-shadow: 0 0 20px #ffa500; } to { text-shadow: 0 0 30px #ffa500; } } label { display: block; margin-bottom: 10px; color: #cccccc; font-weight: bold; text-shadow: 0 0 5px rgba(255,255,255,0.3); } input[type="password"] { width: 150px; padding: 15px; margin-bottom: 20px; border: 1px solid rgba(255,165,0,0.5); border-radius: 15px; box-sizing: border-box; background: rgba(102, 102, 102, 0.8); color: #ffffff; transition: all 0.4s ease; backdrop-filter: blur(10px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); font-size: 1.1em; } input[type="password"]:focus { border-color: #ffa500; box-shadow: 0 0 20px rgba(255,165,0,0.8), inset 0 2px 4px rgba(0,0,0,0.3); background: rgba(136, 136, 136, 0.9); transform: scale(1.02); } input[type="password"]::placeholder { color: #cccccc; text-shadow: 0 0 5px rgba(255,255,255,0.3); } button { background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%); color: #000000; padding: 15px 25px; border: none; border-radius: 15px; cursor: pointer; font-size: 16px; transition: all 0.4s ease; box-shadow: 0 8px 16px rgba(255,165,0,0.4); font-weight: bold; position: relative; overflow: hidden; } button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; } button:hover::before { left: 100%; } button:hover { background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%); transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 30px rgba(255,165,0,0.6); } #indicator { display: flex; margin-top: 20px; margin-bottom: 30px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); border-radius: 10px; overflow: hidden; background: rgba(51, 51, 51, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,165,0,0.5); } .indicator-segment { width: 20px; height: 15px; margin-right: 3px; background-color: #666; border: 1px solid #555; box-sizing: border-box; transition: all 0.4s ease; } .indicator-segment:last-child { margin-right: 0; } .indicator-segment.active { transition: background-color 0.4s ease; box-shadow: 0 0 10px currentColor; } .indicator-segment.red.active { background-color: #f44336; border-color: #d32f2f; color: #f44336; } .indicator-segment.yellow.active { background-color: #ffeb3b; border-color: #fbc02d; color: #ffeb3b; } .indicator-segment.green.active { background-color: #4caf50; border-color: #388e3c; color: #4caf50; } #result { margin-top: 30px; padding: 20px; background: rgba(51, 51, 51, 0.8); border: 1px solid rgba(255,165,0,0.5); border-radius: 15px; box-shadow: 0 8px 16px rgba(0,0,0,0.3); width: 80%; max-width: 500px; box-sizing: border-box; backdrop-filter: blur(10px); animation: glow 2s ease-in-out infinite alternate; } @keyframes glow { from { box-shadow: 0 0 20px rgba(255,165,0,0.5); } to { box-shadow: 0 0 30px rgba(255,165,0,0.8); } } #result p { margin: 10px 0; color: #e0e0e0; text-shadow: 0 0 5px rgba(255,255,255,0.3); } #result strong { font-weight: bold; color: #ffa500; text-shadow: 0 0 10px #ffa500; } #criteria { padding-left: 20px; margin-top: 15px; } #criteria li { margin-bottom: 8px; color: #cccccc; text-shadow: 0 0 5px rgba(255,255,255,0.3); }