| Строка 1: |
Строка 1: |
| − | /* All CSS here will be loaded for users of the mobile site */ | + | /* ========================================================= |
| | + | MOBILE.CSS — фиксы мобильной главной страницы |
| | + | ========================================================= */ |
| | | | |
| | + | /* 1) Верхняя мобильная шапка — оставить синей */ |
| | header.header-container.header-chrome, | | header.header-container.header-chrome, |
| − | header.header-container.header-chrome > form.header {
| |
| − | background: rgb(110, 132, 247) !important;
| |
| − | background-color: rgb(110, 132, 247) !important;
| |
| − | box-shadow: none !important;
| |
| − | }
| |
| − |
| |
| | header.header-container.header-chrome > form.header, | | header.header-container.header-chrome > form.header, |
| − | header.header-container.header-chrome > form.header * {
| |
| − | box-shadow: none !important;
| |
| − | }
| |
| − |
| |
| | header.header-container.header-chrome::before, | | header.header-container.header-chrome::before, |
| | header.header-container.header-chrome::after, | | header.header-container.header-chrome::after, |
| Строка 20: |
Строка 13: |
| | background-color: rgb(110, 132, 247) !important; | | background-color: rgb(110, 132, 247) !important; |
| | box-shadow: none !important; | | box-shadow: none !important; |
| | + | border-color: rgb(110, 132, 247) !important; |
| | } | | } |
| | | | |
| − | /* Убираем тусклость логотипа на мобиле */ | + | /* 2) Логотип в мобильной шапке — без тусклости */ |
| | header.header-container.header-chrome .branding-box img, | | header.header-container.header-chrome .branding-box img, |
| | header.header-container.header-chrome .branding-box a img, | | header.header-container.header-chrome .branding-box a img, |
| Строка 41: |
Строка 35: |
| | } | | } |
| | | | |
| − | /* Нижняя мобильная панель */ | + | /* 3) Скрыть заголовок страницы на мобиле */ |
| | + | h1, |
| | + | .mw-first-heading, |
| | + | .page-heading, |
| | + | #content .mw-first-heading, |
| | + | #content .page-heading, |
| | + | header + .pre-content h1, |
| | + | .pre-content h1 { |
| | + | display: none !important; |
| | + | } |
| | + | |
| | + | /* 4) Не прокрашивать служебную панель страницы */ |
| | + | .minerva__tab-container, |
| | .page-actions-menu, | | .page-actions-menu, |
| | #page-actions, | | #page-actions, |
| − | .minerva-footer, | + | .minerva-page-actions, |
| − | .minerva__tab-container,
| + | .minerva-sticky-header { |
| − | .minerva-ui-bottomNavigation, | + | background: transparent !important; |
| − | .minerva-sticky-header,
| + | background-color: transparent !important; |
| − | .minerva-page-actions { | + | box-shadow: none !important; |
| | + | border-color: transparent !important; |
| | + | } |
| | + | |
| | + | /* 5) Нижняя мобильная панель остаётся синей */ |
| | + | .minerva-ui-bottomNavigation { |
| | background: rgb(110, 132, 247) !important; | | background: rgb(110, 132, 247) !important; |
| | background-color: rgb(110, 132, 247) !important; | | background-color: rgb(110, 132, 247) !important; |
| Строка 55: |
Строка 66: |
| | } | | } |
| | | | |
| − | .page-actions-menu .mw-ui-icon, | + | .minerva-ui-bottomNavigation .mw-ui-icon { |
| − | #page-actions .mw-ui-icon,
| |
| − | .minerva-page-actions .mw-ui-icon {
| |
| | background-color: #ffffff !important; | | background-color: #ffffff !important; |
| | border-radius: 14px !important; | | border-radius: 14px !important; |
| | } | | } |
| | | | |
| − | /* Скрыть заголовок страницы в Minerva/mobile */ | + | /* ========================================================= |
| − | .mw-first-heading, | + | Мобильная вёрстка новой главной |
| − | .page-heading, | + | ========================================================= */ |
| − | #content .mw-first-heading, | + | |
| − | #content .page-heading, | + | .bl-help-home { |
| − | header + .pre-content h1,
| + | background: #f3f4f6; |
| − | .pre-content h1 { | + | margin: -0.75em -0.75em 0 -0.75em; |
| − | display: none !important; | + | padding-bottom: 18px; |
| | + | } |
| | + | |
| | + | .bl-hero { |
| | + | background: #fff7f7; |
| | + | padding: 22px 14px 18px; |
| | + | text-align: center; |
| | + | } |
| | + | |
| | + | .bl-hero-inner { |
| | + | max-width: 100%; |
| | + | margin: 0 auto; |
| | + | } |
| | + | |
| | + | .bl-hero-title { |
| | + | font-size: 28px; |
| | + | line-height: 1.15; |
| | + | font-weight: 800; |
| | + | color: #1f2937; |
| | + | margin-bottom: 10px; |
| | + | } |
| | + | |
| | + | .bl-hero-subtitle { |
| | + | font-size: 16px; |
| | + | line-height: 1.45; |
| | + | color: #6b7280; |
| | + | } |
| | + | |
| | + | .bl-section { |
| | + | padding: 18px 14px 0; |
| | + | } |
| | + | |
| | + | .bl-section-title { |
| | + | font-size: 12px; |
| | + | font-weight: 800; |
| | + | color: #9ca3af; |
| | + | letter-spacing: 0.12em; |
| | + | margin: 0 0 12px; |
| | + | text-transform: uppercase; |
| | + | } |
| | + | |
| | + | .bl-cards { |
| | + | display: block; |
| | + | } |
| | + | |
| | + | .bl-card { |
| | + | background: #ffffff; |
| | + | border: 1px solid #e5e7eb; |
| | + | border-radius: 16px; |
| | + | padding: 18px; |
| | + | box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); |
| | + | min-height: auto; |
| | + | margin-bottom: 14px; |
| | + | } |
| | + | |
| | + | .bl-card:last-child { |
| | + | margin-bottom: 0; |
| | + | } |
| | + | |
| | + | .bl-card-icon { |
| | + | margin-bottom: 12px; |
| | + | height: auto; |
| | + | } |
| | + | |
| | + | .bl-card-title { |
| | + | font-size: 22px; |
| | + | line-height: 1.2; |
| | + | font-weight: 800; |
| | + | color: #1f2937; |
| | + | margin-bottom: 10px; |
| | + | } |
| | + | |
| | + | .bl-card-text { |
| | + | font-size: 15px; |
| | + | line-height: 1.55; |
| | + | color: #6b7280; |
| | + | margin-bottom: 14px; |
| | + | min-height: auto; |
| | + | } |
| | + | |
| | + | .bl-card-links { |
| | + | border-top: 1px solid #f0f0f0; |
| | + | padding-top: 12px; |
| | + | margin-top: 4px; |
| | + | } |
| | + | |
| | + | .bl-card-links ul { |
| | + | list-style: none; |
| | + | margin: 0; |
| | + | padding: 0; |
| | + | } |
| | + | |
| | + | .bl-card-links li { |
| | + | margin: 0 0 9px; |
| | + | font-size: 15px; |
| | + | line-height: 1.4; |
| | + | } |
| | + | |
| | + | .bl-card-links li::before { |
| | + | content: "› "; |
| | + | color: #f1a4a4; |
| | + | font-weight: 700; |
| | + | } |
| | + | |
| | + | .bl-card-links a { |
| | + | color: #e58c8c !important; |
| | + | text-decoration: none; |
| | + | font-weight: 600; |
| | + | } |
| | + | |
| | + | .bl-card-more { |
| | + | margin-top: 8px; |
| | + | font-size: 14px; |
| | + | } |
| | + | |
| | + | .bl-card-more a { |
| | + | color: #6b7280 !important; |
| | + | text-decoration: none; |
| | + | } |
| | + | |
| | + | .bl-school { |
| | + | margin: 18px 14px 0; |
| | + | background: #ffffff; |
| | + | border: 1px solid #e5e7eb; |
| | + | border-radius: 16px; |
| | + | box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); |
| | + | padding: 18px; |
| | + | display: block; |
| | + | } |
| | + | |
| | + | .bl-school-icon { |
| | + | margin-bottom: 10px; |
| | + | } |
| | + | |
| | + | .bl-school-title { |
| | + | font-size: 23px; |
| | + | line-height: 1.2; |
| | + | font-weight: 800; |
| | + | color: #1f2937; |
| | + | margin-bottom: 8px; |
| | + | } |
| | + | |
| | + | .bl-school-text { |
| | + | font-size: 15px; |
| | + | line-height: 1.5; |
| | + | color: #6b7280; |
| | + | margin-bottom: 12px; |
| | + | } |
| | + | |
| | + | .bl-school-tags { |
| | + | display: flex; |
| | + | flex-wrap: wrap; |
| | + | gap: 8px; |
| | + | } |
| | + | |
| | + | .bl-tag { |
| | + | display: inline-block; |
| | + | } |
| | + | |
| | + | .bl-tag a { |
| | + | display: inline-block; |
| | + | background: #fff2f2; |
| | + | border: 1px solid #fde2e2; |
| | + | color: #e58c8c !important; |
| | + | padding: 8px 12px; |
| | + | border-radius: 999px; |
| | + | font-size: 13px; |
| | + | font-weight: 700; |
| | + | text-decoration: none; |
| | + | } |
| | + | |
| | + | .bl-tag-muted a { |
| | + | background: #f3f4f6; |
| | + | border-color: #e5e7eb; |
| | + | color: #6b7280 !important; |
| | + | } |
| | + | |
| | + | /* Убираем стандартные wiki-отступы внутри кастомной главной */ |
| | + | .bl-help-home p, |
| | + | .bl-help-home ul, |
| | + | .bl-help-home li { |
| | + | margin-top: 0; |
| | + | } |
| | + | |
| | + | /* На очень узких экранах чуть компактнее */ |
| | + | @media (max-width: 380px) { |
| | + | .bl-hero-title { |
| | + | font-size: 24px; |
| | + | } |
| | + | |
| | + | .bl-hero-subtitle { |
| | + | font-size: 15px; |
| | + | } |
| | + | |
| | + | .bl-card-title { |
| | + | font-size: 20px; |
| | + | } |
| | + | |
| | + | .bl-school-title { |
| | + | font-size: 21px; |
| | + | } |
| | } | | } |