/
Alvo43
/
PunkRockStar
Обзор
Документация
Войти
/
Alvo43
/
PunkRockStar
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
styles.css
455 строк
9 KB
Alvo43
Update: styles.css
18 июн 2026, 20:15
Верифицирован
18 июн 2026, 20:15
489507a
Код
Авторство
О чём код?
/* ===== БАЗОВЫЕ НАСТРОЙКИ ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #667eea; --secondary-color: #764ba2; --accent-color: #f093fb; --text-dark: #2c3e50; --text-light: #666; --bg-light: #f8f9fa; --white: #ffffff; --shadow: 0 4px 20px rgba(0, 0, 0, 0.08); --shadow-hover: 0 8px 30px rgba(102, 126, 234, 0.2); --border-radius: 16px; --transition: all 0.3s ease; } body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif; background: linear-gradient(135deg, #e0f7fa 0%, #f3e5f5 100%); color: var(--text-dark); line-height: 1.6; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* ===== НАВИГАЦИЯ ===== */ nav { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; padding: 15px 0; } nav .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } .logo { font-size: 1.5em; font-weight: bold; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .nav-links { display: flex; list-style: none; gap: 30px; flex-wrap: wrap; } .nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: var(--transition); position: relative; } .nav-links a:hover, .nav-links a.active { color: var(--primary-color); } .nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); } .nav-links a:hover::after, .nav-links a.active::after { width: 100%; } /* ===== ШАПКА СТРАНИЦЫ ===== */ /* ===== ШАПКА СТРАНИЦЫ С ФОТО ===== */ .page-header { background: url('kids.jpg') center center / cover no-repeat; color: white; padding: 0; border-radius: var(--border-radius); margin: 30px 0; box-shadow: var(--shadow); position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; } /* Затемняющий градиент поверх фото */ .page-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 135deg, rgba(102, 126, 234, 0.68) 0%, rgba(118, 75, 162, 0.75) 100% ); z-index: 1; } /* Контент поверх затемнения */ .header-content { position: relative; z-index: 2; text-align: center; padding: 40px 30px; max-width: 800px; } /* Плашка под текст для лучшей читаемости */ .header-content .text-box { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; padding: 35px 40px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); } .page-header .emoji { font-size: 3.5em; margin-bottom: 15px; display: block; filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)); } .page-header h1 { font-size: 2.8em; margin-bottom: 15px; font-weight: 700; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); letter-spacing: 0.5px; } .page-header p { font-size: 1.3em; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); opacity: 0.95; margin: 0; } /* Адаптивность для мобильных */ @media (max-width: 768px) { .page-header { min-height: 320px; } .header-content .text-box { padding: 25px 20px; margin: 0 15px; } .page-header h1 { font-size: 1.8em; } .page-header p { font-size: 1.05em; } .page-header .emoji { font-size: 2.5em; } } /* ===== КАРТОЧКИ ===== */ .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 40px 0; } .card { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); border-left: 5px solid var(--primary-color); } .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); } .card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.5em; } .card p { color: var(--text-light); line-height: 1.7; } .card .date { color: var(--primary-color); font-weight: bold; font-size: 0.9em; margin-bottom: 10px; } /* ===== БЛОГ ===== */ .blog-post { background: var(--white); padding: 35px; border-radius: var(--border-radius); margin-bottom: 30px; box-shadow: var(--shadow); transition: var(--transition); } .blog-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } .blog-post .post-date { color: var(--primary-color); font-weight: bold; font-size: 0.95em; margin-bottom: 10px; } .blog-post h2 { color: var(--text-dark); margin-bottom: 15px; font-size: 1.8em; } .blog-post p { color: var(--text-light); line-height: 1.8; font-size: 1.05em; } /* ===== ГАЛЕРЕЯ ===== */ .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 40px 0; } .gallery-item { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); aspect-ratio: 1; background: var(--bg-light); } .gallery-item:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); } .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .gallery-item:hover img { transform: scale(1.1); } .gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: var(--white); padding: 20px; font-weight: 500; } /* ===== О ДЕТЯХ ===== */ .about-section { background: var(--white); padding: 40px; border-radius: var(--border-radius); margin-bottom: 30px; box-shadow: var(--shadow); } .about-section h2 { color: var(--primary-color); margin-bottom: 20px; font-size: 2em; } .about-section p { color: var(--text-light); line-height: 1.8; margin-bottom: 15px; } .twins-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 30px; } .twin-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--white); padding: 30px; border-radius: var(--border-radius); text-align: center; } .twin-card h3 { font-size: 1.8em; margin-bottom: 15px; } .twin-card .emoji { font-size: 3em; margin-bottom: 15px; } /* ===== КОНТАКТЫ ===== */ .contact-info { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; } .contact-info h2 { color: var(--primary-color); margin-bottom: 20px; } .contact-info p { color: var(--text-light); font-size: 1.1em; margin-bottom: 15px; } /* ===== ПОДВАЛ ===== */ footer { text-align: center; padding: 30px 20px; margin-top: 60px; color: var(--text-light); background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); } footer p { margin-bottom: 10px; } /* ===== АДАПТИВНОСТЬ ===== */ @media (max-width: 768px) { .page-header h1 { font-size: 1.8em; } .nav-links { gap: 15px; justify-content: center; width: 100%; margin-top: 15px; } .cards-grid, .gallery-grid { grid-template-columns: 1fr; } .blog-post, .about-section { padding: 25px; } } /* ===== АНИМАЦИИ ===== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .card, .blog-post, .gallery-item { animation: fadeIn 0.6s ease-out; } /* Фото в шапке */ .header-photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); margin-bottom: 20px; background: white; } @media (max-width: 768px) { .header-photo { width: 150px; height: 150px; } }