/
set2701
/
Bautex_Design
Обзор
Документация
Войти
/
set2701
/
Bautex_Design
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/dashboard.css
500 строк
8 KB
Stepan
Правки для формы и гридов
10 дек 2025, 10:00
10 дек 2025, 10:00
864cf2e
Код
Авторство
О чём код?
body.dashboard { display: grid; min-height: 100vh; grid-template-rows: auto 1fr auto; margin: 0; font-family: 'GothicA1', sans-serif; background-color: var(--color-bg-primary); } :root { --color-brown: #735234; --color-dark-brown: #5b4129; --color-light-gold: #d4af37; --color-white: #ffffff; --color-gray: #e0e0e0; --color-text: #333333; --color-dark-bg: #2c3e50; --color-bg-primary: #f7f7f8; --color-bg-secondary: #f0f0f0; --color-text-accent: #735234; --primary-bg: #556b60; } .site-header { background-color: var(--color-dark-brown); padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 100; } .main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; } .main-nav a { color: var(--color-white); text-decoration: none; font-family: 'Gothic A1', sans-serif; font-weight: 500; font-size: 0.9rem; padding: 0.5rem 0; position: relative; transition: color 0.2s ease; } .main-nav a:hover { color: var(--color-light-gold); } .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-light-gold); transition: width 0.3s ease; } .main-nav a:hover::after { width: 100%; } /* Бургер-меню */ .burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 0.5rem; background: none; border: none; } .burger span { width: 24px; height: 2px; background-color: var(--color-white); border-radius: 1px; transition: all 0.3s ease; } .layout { display: grid; grid-template-columns: minmax(200px, 250px) 1fr; min-height: calc(100vh - 140px); margin: 0; width: 100%; } /* Сайдбар */ .sidebar { background: var(--color-dark-brown); padding: 2.5rem 2rem; border-radius: 0; min-height: 100%; } .sidebar h2 { margin: 0 0 20px 0; font-size: 2.4rem; color: var(--color-white); font-family: 'Play', serif; } .sidebar ul { list-style: none; padding: 0; margin: 0; } .sidebar li { margin-bottom: 12px; } .sidebar a { display: block; padding: 12px 15px; text-decoration: none; color: var(--color-white); border-radius: 8px; transition: all 0.3s ease; font-weight: 500; font-family: 'Gothic A1', sans-serif; } .sidebar a:hover, .sidebar a:focus { background: rgba(255, 255, 255, 0.1); color: var(--color-light-gold); transform: translateX(5px); } .content { padding: 30px; background: var(--color-bg-primary); } .content h1 { margin: 0 0 2rem 0; font-size: 3.4rem; font-family: 'Prosto One', sans-serif; font-weight: 400; color: var(--color-dark-brown); border-bottom: 2px solid var(--color-dark-brown); padding-bottom: 1rem; } /* Карточки графиков */ .chart-card { background: var(--color-white); border-radius: 8px; padding: 20px; border: 1px solid var(--color-gray); box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: auto; min-height: 200px; } .chart-card:hover { transform: translateY(-4px); box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12); } /* Заголовки графиков h2 */ .chart-card h2 { margin: 0 0 15px 0; font-size: 1.4rem; color: var(--color-dark-brown); font-family: 'Prosto One', sans-serif; font-weight: 400; text-align: center; flex-shrink: 0; } .chart-image-container { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 120px; max-height: 200px; } .chart-image { width: 100%; height: auto; max-height: 200px; object-fit: contain; border-radius: 8px; background: var(--color-bg-secondary); } /* Grid для дашборда */ .grid-dashboard { display: grid; gap: 30px; grid-template-columns: repeat(6, 1fr); } /* ПЕРВЫЙ РЯД */ .grid-dashboard .chart-card:nth-child(1) { grid-column: 1 / -1; min-height: 300px; height: 300px; } /* ВТОРОЙ РЯД */ .grid-dashboard .chart-card:nth-child(2), .grid-dashboard .chart-card:nth-child(3), .grid-dashboard .chart-card:nth-child(4) { grid-column: span 2; min-height: 250px; height: 250px; } .grid-dashboard .chart-card:nth-child(5), .grid-dashboard .chart-card:nth-child(6) { grid-column: span 3; min-height: 250px; height: 250px; } .footer { background-color: var(--primary-bg); color: var(--color-white); padding: 2rem 1.5rem; } .footer .container { max-width: 1200px; margin: 0 auto; } .footer h2 { font-family: 'Prosto One', sans-serif; font-size: 1.5rem; margin-bottom: 1rem; font-weight: 400; color: var(--color-white); } .footer hr { border: none; height: 1px; background-color: rgba(255, 255, 255, 0.1); margin: 1rem 0; } .footer nav ul { list-style: none; display: flex; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; padding: 0; } .footer nav a { color: var(--color-light-gold); text-decoration: none; font-family: 'Gothic A1', sans-serif; font-weight: 500; transition: all 0.2s ease; } .footer nav a:hover { text-decoration: underline; color: var(--color-white); } .contacts ul { list-style: none; padding: 0; margin: 0 0 1.5rem 0; } .contacts li { margin-bottom: 0.5rem; } .contacts a { color: var(--color-light-gold); text-decoration: none; display: inline-block; margin-bottom: 0.5rem; font-family: 'Gothic A1', sans-serif; } .contacts a:hover { text-decoration: underline; color: var(--color-white); } .contacts p { margin: 0; font-family: 'Gothic A1', sans-serif; font-size: 0.9rem; line-height: 1.5; } .footer p { margin-bottom: 1rem; line-height: 1.5; font-family: 'Gothic A1', sans-serif; font-size: 0.9rem; } .footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); } .social-links { display: flex; gap: 1rem; } /* Медиа-запросы */ @media (max-width: 1024px) { .layout { grid-template-columns: 220px 1fr; } .content { padding: 20px; } .grid-dashboard { grid-template-columns: repeat(4, 1fr); gap: 25px; } .grid-dashboard .chart-card:nth-child(1) { grid-column: 1 / -1; height: 250px; min-height: 250px; } .grid-dashboard .chart-card:nth-child(2), .grid-dashboard .chart-card:nth-child(3) { grid-column: span 2; height: 220px; min-height: 220px; } .grid-dashboard .chart-card:nth-child(4), .grid-dashboard .chart-card:nth-child(5), .grid-dashboard .chart-card:nth-child(6) { grid-column: 1 / -1; height: 220px; min-height: 220px; } } /* Адаптивность для мобильных */ @media (max-width: 768px) { .burger { display: flex; } .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: var(--color-dark-brown); padding: 1rem; } .main-nav.active { display: block; } .main-nav ul { flex-direction: column; gap: 1rem; } .layout { grid-template-columns: 1fr; } .sidebar { order: 2; padding: 1.5rem; } .content { order: 1; padding: 15px; } .content h1 { font-size: 2.5rem; margin-bottom: 1.5rem; } .grid-dashboard { grid-template-columns: 1fr; gap: 20px; } .grid-dashboard .chart-card { grid-column: 1 !important; height: 180px; min-height: 180px; } .chart-card { padding: 1rem; } .chart-card h2 { font-size: 1.3rem; margin-bottom: 12px; } .chart-image-container { min-height: 80px; max-height: 150px; } .chart-image { max-height: 140px; } .footer { padding: 1.5rem 1rem; } .footer nav ul { flex-direction: column; gap: 1rem; } } @media (max-width: 480px) { .site-header { padding: 0.75rem 1rem; } .content { padding: 10px; } .content h1 { font-size: 2rem; } .chart-card { padding: 12px; height: 160px; min-height: 160px; } .chart-card h2 { font-size: 1.2rem; } .chart-image-container { min-height: 80px; max-height: 120px; } .chart-image { max-height: 110px; } .sidebar h2 { font-size: 2rem; } .footer h2 { font-size: 1.3rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }