/
Centermant
/
web-static-labs
Обзор
Документация
Войти
/
Centermant
/
web-static-labs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab3/task4/styles.css
241 строка
6 KB
Centermant
lab 3 fix
25 сен 2025, 13:48
25 сен 2025, 13:48
26272f8
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;600&display=swap'); :root { --primary-gradient: linear-gradient(135deg, #6e8efb, #a777e3, #5c4ac7); --secondary-gradient: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1); --text-gradient: linear-gradient(90deg, #ff8a00, #e52e71, #4a00e0); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Exo 2', sans-serif; background: radial-gradient(circle at center, #0f0c29, #302b63, #24243e); color: #ffffff; min-height: 100vh; } .site-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 80px; background: rgba(10, 8, 30, 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); position: relative; z-index: 100; } .logo { height: 40px; width: auto; filter: drop-shadow(0 0 6px rgba(103, 80, 255, 0.6)); transition: transform 0.2s ease; } .logo:hover { transform: scale(1.05); } .dropdown-container { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; max-width: 300px; } .menu-button { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; padding: 12px 32px; border: none; border-radius: 18px; background: rgba(255, 255, 255, 0.08); color: white; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); text-align: center; letter-spacing: 1px; min-width: 120px; } .menu-button::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--secondary-gradient); background-size: 400% 400%; z-index: -1; opacity: 0; border-radius: 18px; animation: gradientShift 4s ease infinite; } .menu-button:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 6px 20px rgba(103, 80, 255, 0.5); background: rgba(255, 255, 255, 0.15); } .menu-button:hover::before { opacity: 0.5; } .dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) scaleY(0.9); min-width: 220px; background: rgba(15, 12, 41, 0.9); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; z-index: 1000; padding: 12px 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-origin: top center; } .dropdown-menu.open { opacity: 1; visibility: visible; transform: translateX(-50%) scaleY(1); } .dropdown-link { display: block; font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 600; padding: 10px 20px; text-decoration: none; color: #ccccff; text-align: center; transition: all 0.25s ease; position: relative; margin: 4px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); white-space: normal; word-wrap: break-word; line-height: 1.4; } .dropdown-link::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-gradient); border-radius: 12px; opacity: 0; z-index: -1; transition: opacity 0.3s ease; } .dropdown-link:hover { color: white; transform: scale(1.03); background: rgba(255, 255, 255, 0.1); text-shadow: 0 0 8px rgba(255, 138, 0, 0.6); } .dropdown-link:hover::before { opacity: 0.3; } .login-button { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; padding: 10px 24px; border: none; border-radius: 50px; background: rgba(255, 255, 255, 0.1); color: white; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); min-width: 100px; text-align: center; } .login-button::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-gradient); z-index: -1; opacity: 0; transition: opacity 0.3s ease; border-radius: 50px; } .login-button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 18px rgba(103, 80, 255, 0.5); background: rgba(255, 255, 255, 0.2); } .login-button:hover::before { opacity: 0.4; } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @media (max-width: 768px) { .site-header { padding: 0 15px; height: 70px; } .logo { height: 35px; } .menu-button { font-size: 1.1rem; padding: 10px 28px; } .dropdown-container { max-width: 250px; } .dropdown-menu { min-width: 200px; } .dropdown-link { font-size: 0.9rem; padding: 8px 16px; margin: 3px 8px; } .login-button { font-size: 0.95rem; padding: 8px 20px; min-width: 90px; } } @media (max-width: 480px) { .site-header { padding: 0 10px; height: 65px; } .logo { height: 30px; } .menu-button { font-size: 1rem; padding: 8px 24px; } .dropdown-container { max-width: 200px; } .dropdown-menu { min-width: 180px; } .dropdown-link { font-size: 0.85rem; padding: 6px 12px; margin: 2px 6px; line-height: 1.3; } .login-button { font-size: 0.9rem; padding: 6px 16px; min-width: 80px; } }