/
NyutaNecoder
/
testDesign
Обзор
Документация
Войти
/
NyutaNecoder
/
testDesign
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/style.css
168 строк
3 KB
AnyaNecoder
Initial commit: Interior Designer Landing
03 июл 2026, 11:25
03 июл 2026, 11:25
8ac0b3c
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background-color: #1a1a1a; color: #ffffff; } /* Header Styles */ header { background-color: #1a1a1a; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } /* Logo */ .logo { font-size: 24px; font-weight: bold; color: #ffffff; text-decoration: none; } /* Navigation Menu */ .nav-menu { display: flex; gap: 30px; list-style: none; } .nav-menu li a { color: #ffffff; text-decoration: none; font-size: 16px; transition: color 0.3s ease; padding: 8px 16px; border-radius: 4px; } .nav-menu li a:hover { color: #ff7f50; background-color: rgba(255, 127, 80, 0.1); } /* Burger Menu Button */ .menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 8px; } .menu-toggle .bar { width: 25px; height: 3px; background-color: #ffffff; transition: all 0.3s ease; border-radius: 2px; } .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); } .menu-toggle.active .bar:nth-child(2) { opacity: 0; } .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); } /* Responsive Design */ @media (max-width: 768px) { header { padding: 15px 20px; } .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background-color: #1a1a1a; flex-direction: column; align-items: center; padding: 20px 0; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; } .nav-menu.active { max-height: 300px; } .nav-menu li { width: 100%; text-align: center; } .nav-menu li a { display: block; padding: 15px 20px; width: 100%; } .menu-toggle { display: flex; } } /* Main Content */ main { margin-top: 80px; padding: 60px 40px; text-align: center; } main h1 { font-size: 3rem; margin-bottom: 20px; color: #ffffff; } main p { font-size: 1.2rem; color: #cccccc; max-width: 600px; margin: 0 auto 40px; } .btn { display: inline-block; padding: 12px 30px; background-color: #ff7f50; color: #ffffff; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s ease; } .btn:hover { background-color: #ff6f3b; } /* Footer */ footer { background-color: #141414; padding: 40px; text-align: center; color: #888888; font-size: 14px; }