MediaWiki:Common.css
Версия от 16:29, 17 апреля 2026; Admin (обсуждение | вклад)
Замечание. Возможно, после сохранения вам придётся очистить кэш своего браузера, чтобы увидеть изменения.
- Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl-F5 или Ctrl-R (⌘-R на Mac)
- Google Chrome: Нажмите Ctrl-Shift-R (⌘-Shift-R на Mac)
- Internet Explorer: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl-F5
- Opera: Перейдите в Menu → Настройки (Opera → Настройки на Mac), а затем Безопасность → Очистить историю посещений → Кэшированные изображения и файлы
/* ===== БАЗОВЫЕ СТИЛИ ИЗ СТАРОГО COMMON.CSS ===== */
body {
font-family: -apple-system, 'Manrope', 'Arial', 'sans-serif';
font-size: 100%;
line-height: 1.4;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.2);
}
.minerva-footer {
display: none !important;
}
.mw-ui-icon {
background-color: #ffffff;
border-radius: 14px !important;
}
.minerva-header,
.header-container.header-chrome {
background-color: rgb(110, 132, 247) !important;
box-shadow: inset 0 0 0 100px rgb(110, 132, 247) !important;
}
.header-container {
border-bottom: 1px solid #c8ccd1;
padding: 0 16px;
}
.header .branding-box h1 img,
.header .branding-box a img {
height: 100px !important;
width: auto !important;
display: block !important;
margin-right: 20px;
margin-left: -15px;
}
.header .search-box .search {
width: -webkit-fill-available;
}
.overlay.search-overlay .header input {
width: 23.4375em !important;
}
.client-nojs .search-box input:focus,
.search-box input:focus {
border-color: #ffffff !important;
box-shadow: 0 0 0 1px #ffffff, 0 1px 1px rgba(0, 0, 0, 0) !important;
}
.search-box .search {
background-color: #ffffff;
background-position: left 6px center;
background-repeat: no-repeat;
background-size: 18px;
-webkit-appearance: none;
width: 100%;
margin-top: 0;
height: 2.25em;
border: 1px solid #ffffff;
border-radius: 14px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0);
outline: 0;
-webkit-transition: border-color 250ms, box-shadow 250ms;
-moz-transition: border-color 250ms, box-shadow 250ms;
transition: border-color 250ms, box-shadow 250ms;
}
.header .branding-box img,
.header .branding-box h1 img,
.header .branding-box a img,
.mw-logo-icon,
.mw-logo-wordmark,
.branding-box img {
opacity: 1 !important;
filter: none !important;
mix-blend-mode: normal !important;
}
.header .branding-box,
.branding-box,
.branding-box a,
.branding-box h1 {
opacity: 1 !important;
filter: none !important;
}
/* Скрытие заголовка страниц */
.mw-first-heading,
.page-heading,
#content .mw-first-heading,
#content .page-heading,
header + .pre-content h1,
.pre-content h1 {
display: none !important;
}
/* ===== ГЛАВНАЯ СТРАНИЦА БАЗЫ ЗНАНИЙ ===== */
.bl-home {
font-family: -apple-system, 'Manrope', 'Arial', 'sans-serif';
color: #1e2a3a;
background: #f8f8fa;
margin: -1rem -1rem 0 -1rem;
}
/* HERO */
.bl-hero {
padding: 56px 28px 64px;
text-align: center;
background: linear-gradient(135deg, rgb(110, 132, 247) 0%, #8ea2ff 100%);
border-bottom: 1px solid rgba(255,255,255,.18);
}
.bl-hero h1 {
font-size: 34px;
font-weight: 600;
letter-spacing: -0.5px;
margin: 0 0 8px;
color: #ffffff;
}
.bl-hero p {
font-size: 15px;
color: rgba(255,255,255,.88);
margin: 0 auto 28px;
max-width: 560px;
line-height: 1.6;
}
.bl-hero-search {
max-width: 520px;
margin: 0 auto;
background: #ffffff;
border-radius: 12px;
min-height: 48px;
display: flex;
align-items: center;
justify-content: center;
padding: 12px 16px;
border: 1px solid rgba(255,255,255,.25);
box-shadow: 0 4px 24px rgba(0,0,0,.08);
font-size: 14px;
color: #6b7280;
line-height: 1.5;
}
.bl-hero-search a {
color: inherit;
text-decoration: none;
display: block;
width: 100%;
}
.bl-chips {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 20px;
}
.bl-chip {
display: inline-block;
background: rgba(255,255,255,.14);
border: 1px solid rgba(255,255,255,.24);
border-radius: 999px;
padding: 6px 14px;
font-size: 12px;
font-weight: 500;
color: #ffffff;
transition: all .15s;
}
.bl-chip:hover {
background: #ffffff;
color: rgb(110, 132, 247);
border-color: #ffffff;
text-decoration: none;
}
/* MAIN */
.bl-main {
max-width: 1080px;
margin: 0 auto;
padding: 32px 28px 40px;
}
.bl-section-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
color: #6b7280;
margin-bottom: 16px;
}
/* GRID */
.bl-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-bottom: 32px;
}
.bl-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,.04);
transition: all .2s;
}
.bl-card:hover {
border-color: rgba(110, 132, 247, .35);
box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.bl-card-head {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.bl-card-icon {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
}
.bl-card-icon-blue { background: #eff3ff; }
.bl-card-icon-amber { background: #fffbeb; }
.bl-card-icon-red { background: #fef2f2; }
.bl-card-icon-green { background: #f0fdf4; }
.bl-card-name {
font-size: 15px;
font-weight: 600;
color: #1e2a3a;
}
.bl-card p {
font-size: 13px;
color: #6b7280;
line-height: 1.6;
margin: 0 0 14px;
}
.bl-card-links {
border-top: 1px solid #e5e7eb;
padding-top: 12px;
}
.bl-card-links ul {
list-style: none;
margin: 0;
padding: 0;
}
.bl-card-links li {
margin: 0 0 6px;
}
.bl-card-links a {
font-size: 13px;
color: rgb(110, 132, 247);
text-decoration: none;
}
.bl-card-links a:hover {
text-decoration: underline;
}
.bl-card-more {
font-size: 12px;
color: #6b7280;
margin-top: 6px;
}
/* SCHOOL */
.bl-school {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 24px;
display: flex;
align-items: center;
gap: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bl-school-icon {
width: 56px;
height: 56px;
border-radius: 12px;
background: #eff3ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
flex-shrink: 0;
}
.bl-school h3 {
font-size: 16px;
font-weight: 600;
color: #1e2a3a;
margin: 0 0 4px;
}
.bl-school p {
font-size: 13px;
color: #6b7280;
margin: 0 0 12px;
line-height: 1.6;
}
.bl-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.bl-tag {
display: inline-block;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 6px 12px;
font-size: 12px;
font-weight: 500;
text-decoration: none;
transition: all .15s;
}
.bl-tag-hl {
background: #eff3ff;
color: rgb(110, 132, 247);
}
.bl-tag-hl:hover {
background: rgb(110, 132, 247);
color: #ffffff;
border-color: rgb(110, 132, 247);
text-decoration: none;
}
.bl-tag-dim {
background: #f4f4f6;
color: #6b7280;
}
.bl-tag-dim:hover {
background: #e5e7eb;
text-decoration: none;
}
/* RESPONSIVE */
@media (max-width: 1024px) {
.bl-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.bl-grid {
grid-template-columns: 1fr;
}
.bl-school {
flex-direction: column;
align-items: flex-start;
}
.bl-hero h1 {
font-size: 28px;
}
}