/
Timur0603
/
rust
Обзор
Документация
Войти
/
Timur0603
/
rust
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/css/style.css
342 строки
8 KB
Alex
menu doesn't jump
07 май 2026, 19:10
07 май 2026, 19:10
dff158b
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } /* body { background-color: #0a0c12; font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, 'Roboto', sans-serif; color: #ffffff; min-height: 100vh; } */ /* ================================================ */ /* ★★★★★ МЕСТО ДЛЯ ВАШЕЙ ФОНОВОЙ КАРТИНКИ ★★★★★ */ /* ================================================ */ /* ВСТАВЬТЕ СВОЙ URL В background-image: */ /* ПРИМЕР: background-image: url('https://ваш-сайт/фон.jpg'); */ body { background-color: #0a0c12; /* background-image: url('/static/images/rust2.jpg'); */ background-size: cover; background-position: center top; background-repeat: no-repeat; background-attachment: fixed; font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, 'Roboto', sans-serif; background-color: #0a0c12; color: #e0e0e0; } /* Затемняющий слой для лучшей читаемости текста */ body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.65); backdrop-filter: brightness(0.85); z-index: 0; pointer-events: none; } .container { position: relative; z-index: 10; max-width: 1400px; margin: 0 auto; padding: 1.5rem; } /* Шапка */ .header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 100, 0, 0.4); } .logo-area h1 { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #ffffff, #ffaa55); background-clip: text; -webkit-background-clip: text; color: transparent; } .logo-area p { font-size: 0.8rem; color: #ffaa66; } /* ========================================================= */ /* ГЛАВНЫЙ КОНТЕЙНЕР */ /* ========================================================= */ .content { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem; display: flex; flex-direction: column; min-height: 100vh; } /* ========================================================= */ /* ВЕРХНЯЯ ПАНЕЛЬ (3 кнопки справа) */ /* ========================================================= */ .top-bar { display: flex; justify-content: flex-end; align-items: center; padding: 1rem 0 1rem 0; margin-bottom: 0.5rem; } .nav-buttons { display: flex; gap: 1rem; flex-wrap: wrap; } .site-btn { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); border: 1.5px solid #ff8c42; color: #ffbb77; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1.3rem; border-radius: 40px; cursor: pointer; transition: all 0.2s ease; font-family: inherit; } .site-btn:hover { background: #ff8c42; color: #0a0c10; border-color: #ffaa66; transform: translateY(-2px); box-shadow: 0 0 12px rgba(255, 140, 0, 0.5); } /* ========================================================= */ /* БЛОК С ЗАГОЛОВКОМ И ФОНОВОЙ КАРТИНКОЙ (ТОЛЬКО ВВЕРХУ) */ /* ========================================================= */ /* ★★★★★ МЕСТО ДЛЯ ВАШЕЙ КАРТИНКИ ★★★★★ */ /* ВСТАВЬТЕ СВОЙ URL В background-image: */ .hero-section { position: relative; margin: 0.5rem 0 2rem 0; border-radius: 32px; overflow: hidden; /* ФОНОВАЯ КАРТИНКА — ТОЛЬКО В ЭТОМ БЛОКЕ (ВВЕРХУ) */ background-image: url('/static/images/rust2.jpg'); background-size: cover; background-position: center center; background-repeat: no-repeat; /* Затемнение ГРАДИЕНТОМ В ПРАВУЮ СТОРОНУ */ /* Слева — почти непрозрачно, справа — сильное затемнение */ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); } /* Градиентное затемнение в правую сторону (слева светлее, справа темнее) */ .hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, /* слева почти прозрачно */ rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0.95) 100%); /* справа сильно затемнено */ pointer-events: none; z-index: 1; } /* Дополнительный слой для лучшей читаемости текста */ .hero-section::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%); pointer-events: none; z-index: 1; } /* Контент внутри hero-блока (название сайта) */ .hero-content { position: relative; z-index: 2; padding: 4rem 2rem 4rem 2rem; text-align: left; } .main-title { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; letter-spacing: 4px; text-transform: uppercase; background: linear-gradient(135deg, #ffffff 0%, #ffcc88 50%, #ff8c42 100%); background-clip: text; -webkit-background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); margin-bottom: 0.75rem; } .sub { font-size: 1rem; color: #ffddbb; letter-spacing: 1px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); font-weight: 500; } /* ========================================================= */ /* ОСТАЛЬНОЙ КОНТЕНТ (СЕТКА, КАРТОЧКИ, ФУТЕР) */ /* ========================================================= */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; margin: 2rem 0 2rem; } .card { background: rgba(10, 12, 18, 0.8); backdrop-filter: blur(12px); border-radius: 28px; padding: 1.5rem; border: 1px solid rgba(255, 100, 0, 0.4); transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { transform: translateY(-5px); border-color: rgba(255, 140, 0, 0.7); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); } .card h3 { font-size: 1.5rem; font-weight: 700; color: #ffaa66; margin-bottom: 1rem; border-left: 3px solid #ff8c42; padding-left: 0.8rem; } .card ul { list-style: none; padding: 0; } .card li { padding: 0.5rem 0; color: #e0d6c8; border-bottom: 1px dashed rgba(255, 140, 0, 0.2); font-size: 0.95rem; } .card li:last-child { border-bottom: none; } .badge { display: inline-block; background: rgba(255, 100, 0, 0.25); padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.7rem; color: #ffbb77; margin-top: 0.8rem; } .info-block { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); border-radius: 24px; padding: 1.5rem; margin: 1rem 0; text-align: center; border: 1px solid rgba(255, 100, 0, 0.3); } .info-block p { color: #ffcf9a; } footer { margin-top: 3rem; padding: 1.8rem 1rem; background: rgba(5, 7, 12, 0.7); backdrop-filter: blur(8px); border-radius: 24px; border-top: 1px solid rgba(255, 100, 0, 0.4); text-align: center; } .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 1rem; } .footer-links a { color: #ffbb77; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; } .footer-links a:hover { color: #ff8c42; text-decoration: underline; } .copyright { font-size: 0.7rem; color: #aa9977; margin-top: 1rem; } @media (max-width: 700px) { .content { padding: 0 1rem 2rem; } .hero-content { padding: 2.5rem 1.5rem; } .nav-buttons { justify-content: center; } .top-bar { justify-content: center; } .card h3 { font-size: 1.3rem; } .container { padding: 1rem; } .cameras-grid { grid-template-columns: 1fr; } .cctv-title h2 { font-size: 2rem; } }