MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Admin (обсуждение | вклад) Нет описания правки |
Mobile redesign |
||
| Строка 1: | Строка 1: | ||
/* | /* BRICSCompass mobile-first redesign */ | ||
:root { | |||
--bc-bg: #f5f6f7; | |||
--bc-surface: #ffffff; | |||
--bc-text: #20242a; | |||
--bc-muted: #59636e; | |||
--bc-line: #e7e9ec; | |||
--bc-accent: #e40046; | |||
--bc-accent-dark: #b80037; | |||
--bc-blue: #dceaf5; | |||
--bc-radius: 28px; | |||
} | |||
body.skin-citizen, | |||
.skin-citizen #content { | |||
background: var(--bc-bg); | |||
color: var(--bc-text); | |||
} | |||
.skin-citizen .mw-body, | |||
.skin-citizen .citizen-body { | |||
max-width: 1480px; | |||
} | |||
.mw-parser-output { | |||
font-size: 18px; | |||
line-height: 1.62; | |||
} | |||
.mw-parser-output h1, | |||
.mw-parser-output h2, | |||
.mw-parser-output h3 { | |||
letter-spacing: 0; | |||
color: var(--bc-text); | |||
} | |||
.mw-parser-output h2 { | |||
font-size: 42px; | |||
line-height: 1.12; | |||
margin-top: 56px; | |||
border-bottom: 0; | |||
} | |||
.bc-shell { | |||
max-width: 1380px; | |||
margin: 0 auto; | |||
padding: 0 28px 56px; | |||
} | |||
.bc-topbar { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
gap: 24px; | |||
padding: 24px 0 42px; | |||
} | |||
.bc-brand { | |||
display: flex; | |||
align-items: center; | |||
gap: 16px; | |||
font-weight: 800; | |||
font-size: 24px; | |||
} | |||
.bc-mark { | |||
width: 48px; | |||
height: 48px; | |||
border-radius: 14px; | |||
background: linear-gradient(135deg, #2f6f73 0 25%, #a23e48 25% 50%, #e1b24a 50% 75%, #3b5ba5 75%); | |||
} | |||
.bc-actions { | |||
display: flex; | |||
align-items: center; | |||
gap: 12px; | |||
padding: 10px; | |||
border-radius: 999px; | |||
background: #f0f1f3; | |||
} | |||
.bc-pill, | |||
.bc-primary { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
min-height: 44px; | |||
padding: 0 22px; | |||
border-radius: 999px; | |||
font-weight: 700; | |||
text-decoration: none; | |||
} | |||
.bc-pill { | |||
color: var(--bc-text); | |||
background: var(--bc-surface); | |||
border: 1px solid #cdd2d7; | |||
} | |||
.bc-primary { | |||
color: #fff !important; | |||
background: var(--bc-accent); | |||
border: 1px solid var(--bc-accent); | |||
} | |||
.bc-hero { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); | |||
align-items: center; | |||
gap: 58px; | |||
min-height: 650px; | |||
} | |||
.bc-eyebrow { | |||
font-size: 18px; | |||
font-weight: 800; | |||
color: var(--bc-muted); | |||
margin-bottom: 18px; | |||
} | |||
.bc-hero-title { | |||
font-size: clamp(42px, 4.2vw, 74px); | |||
line-height: 1.05; | |||
font-weight: 850; | |||
margin: 0 0 28px; | |||
color: var(--bc-text); | |||
} | |||
.bc-lead { | |||
max-width: 760px; | |||
font-size: 24px; | |||
line-height: 1.45; | |||
color: #161a1f; | |||
margin-bottom: 34px; | |||
} | |||
.bc-search { | |||
display: flex; | |||
align-items: center; | |||
gap: 22px; | |||
max-width: 760px; | |||
padding: 22px; | |||
border-radius: 48px; | |||
background: var(--bc-blue); | |||
} | |||
.bc-bot { | |||
width: 76px; | |||
height: 76px; | |||
border-radius: 24px; | |||
background: #fff; | |||
display: grid; | |||
place-items: center; | |||
font-size: 38px; | |||
} | |||
.bc-search-text { | |||
flex: 1; | |||
min-width: 0; | |||
} | |||
.bc-search-label { | |||
font-size: 18px; | |||
font-weight: 700; | |||
margin-bottom: 10px; | |||
} | |||
.bc-search-box { | |||
background: #fff; | |||
border-radius: 999px; | |||
padding: 14px 22px; | |||
color: #6c7580; | |||
} | |||
.bc-arrow { | |||
width: 62px; | |||
height: 62px; | |||
border-radius: 50%; | |||
background: #2b2f34; | |||
color: #fff; | |||
display: grid; | |||
place-items: center; | |||
font-size: 32px; | |||
} | |||
.bc-tags { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 12px; | |||
margin-top: 24px; | |||
} | |||
.bc-tag { | |||
display: inline-flex; | |||
align-items: center; | |||
min-height: 38px; | |||
padding: 0 18px; | |||
border-radius: 999px; | |||
background: #dceaf5; | |||
font-size: 15px; | |||
color: #25313c; | |||
} | |||
.bc-photo { | |||
position: relative; | |||
border-radius: 34px; | |||
overflow: hidden; | |||
box-shadow: 0 28px 80px rgba(22, 28, 36, 0.13); | |||
background: #fff; | |||
transform: rotate(-1deg); | |||
} | |||
.bc-photo img, | |||
.bc-section-photo img { | |||
display: block; | |||
width: 100%; | |||
height: auto; | |||
} | |||
.bc-photo-caption { | |||
position: absolute; | |||
left: 24px; | |||
right: 24px; | |||
bottom: 24px; | |||
padding: 18px 22px; | |||
border-radius: 22px; | |||
background: rgba(255, 255, 255, 0.92); | |||
font-weight: 750; | |||
} | |||
.bc-section { | |||
padding: 72px 0; | |||
} | |||
.bc-section-grid { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); | |||
gap: 56px; | |||
align-items: center; | |||
} | |||
.bc-section-photo { | |||
border-radius: 32px; | |||
overflow: hidden; | |||
box-shadow: 0 18px 60px rgba(22, 28, 36, 0.12); | |||
} | |||
.bc-card-grid { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: 18px; | |||
margin: 28px 0 18px; | |||
} | |||
.bc-card { | |||
display: block; | |||
min-height: 168px; | |||
padding: 26px; | |||
border-radius: 24px; | |||
background: var(--bc-surface); | |||
border: 1px solid var(--bc-line); | |||
box-shadow: 0 10px 34px rgba(22, 28, 36, 0.06); | |||
text-decoration: none; | |||
} | |||
.bc-card strong { | |||
display: block; | |||
font-size: 22px; | |||
line-height: 1.2; | |||
color: var(--bc-text); | |||
margin-bottom: 12px; | |||
} | |||
.bc-card span { | |||
color: var(--bc-muted); | |||
} | |||
.bc-stat-grid { | |||
display: grid; | |||
grid-template-columns: repeat(4, minmax(0, 1fr)); | |||
gap: 32px; | |||
margin: 48px 0; | |||
} | |||
.bc-stat { | |||
min-height: 156px; | |||
padding: 22px 0; | |||
} | |||
.bc-stat-value { | |||
display: flex; | |||
align-items: baseline; | |||
gap: 12px; | |||
font-size: clamp(54px, 5vw, 86px); | |||
line-height: 1; | |||
font-weight: 500; | |||
color: var(--bc-text); | |||
} | |||
.bc-stat-value::before { | |||
content: ">"; | |||
display: inline-grid; | |||
place-items: center; | |||
width: 28px; | |||
height: 28px; | |||
border-radius: 8px; | |||
background: var(--bc-accent); | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: 800; | |||
} | |||
.bc-stat-label { | |||
color: var(--bc-muted); | |||
font-size: 17px; | |||
max-width: 230px; | |||
} | |||
.wikitable { | |||
width: 100%; | |||
border: 0; | |||
background: transparent; | |||
border-collapse: separate; | |||
border-spacing: 0 10px; | |||
} | |||
.wikitable th { | |||
background: #eef1f4; | |||
border: 0; | |||
border-radius: 14px 14px 0 0; | |||
padding: 14px 16px; | |||
} | |||
.wikitable td { | |||
background: #fff; | |||
border: 0; | |||
border-top: 1px solid var(--bc-line); | |||
border-bottom: 1px solid var(--bc-line); | |||
padding: 14px 16px; | |||
} | |||
.wikitable tr td:first-child { | |||
border-left: 1px solid var(--bc-line); | |||
border-radius: 14px 0 0 14px; | |||
} | |||
.wikitable tr td:last-child { | |||
border-right: 1px solid var(--bc-line); | |||
border-radius: 0 14px 14px 0; | |||
} | |||
.thumb, | |||
.mw-parser-output .thumb { | |||
max-width: 100%; | |||
} | |||
.mw-parser-output img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
@media (max-width: 980px) { | |||
.mw-parser-output { | |||
font-size: 16px; | |||
} | |||
.mw-parser-output h2 { | |||
font-size: 32px; | |||
margin-top: 40px; | |||
} | |||
.bc-shell { | |||
padding: 0 18px 42px; | |||
} | |||
.bc-topbar { | |||
padding: 16px 0 28px; | |||
} | |||
.bc-actions { | |||
display: none; | |||
} | |||
.bc-hero, | |||
.bc-section-grid { | |||
grid-template-columns: 1fr; | |||
gap: 28px; | |||
min-height: 0; | |||
} | |||
.bc-hero-title { | |||
font-size: 42px; | |||
} | |||
.bc-lead { | |||
font-size: 19px; | |||
} | |||
.bc-search { | |||
border-radius: 28px; | |||
padding: 16px; | |||
align-items: flex-start; | |||
} | |||
.bc-bot { | |||
width: 54px; | |||
height: 54px; | |||
font-size: 27px; | |||
border-radius: 18px; | |||
} | |||
.bc-arrow { | |||
width: 48px; | |||
height: 48px; | |||
font-size: 24px; | |||
} | |||
.bc-card-grid, | |||
.bc-stat-grid { | |||
grid-template-columns: 1fr; | |||
gap: 14px; | |||
} | |||
.bc-card { | |||
min-height: 0; | |||
padding: 20px; | |||
border-radius: 20px; | |||
} | |||
.bc-photo { | |||
transform: none; | |||
border-radius: 24px; | |||
} | |||
.wikitable { | |||
display: block; | |||
overflow-x: auto; | |||
white-space: nowrap; | |||
-webkit-overflow-scrolling: touch; | |||
} | |||
} | |||
@media (max-width: 560px) { | |||
.bc-brand { | |||
font-size: 20px; | |||
} | |||
.bc-mark { | |||
width: 40px; | |||
height: 40px; | |||
} | |||
.bc-hero-title { | |||
font-size: 34px; | |||
} | |||
.bc-search { | |||
display: grid; | |||
grid-template-columns: 54px 1fr; | |||
} | |||
.bc-arrow { | |||
display: none; | |||
} | |||
.bc-photo-caption { | |||
position: static; | |||
border-radius: 0; | |||
} | |||
} | |||
Версия от 21:20, 25 мая 2026
/* BRICSCompass mobile-first redesign */
:root {
--bc-bg: #f5f6f7;
--bc-surface: #ffffff;
--bc-text: #20242a;
--bc-muted: #59636e;
--bc-line: #e7e9ec;
--bc-accent: #e40046;
--bc-accent-dark: #b80037;
--bc-blue: #dceaf5;
--bc-radius: 28px;
}
body.skin-citizen,
.skin-citizen #content {
background: var(--bc-bg);
color: var(--bc-text);
}
.skin-citizen .mw-body,
.skin-citizen .citizen-body {
max-width: 1480px;
}
.mw-parser-output {
font-size: 18px;
line-height: 1.62;
}
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3 {
letter-spacing: 0;
color: var(--bc-text);
}
.mw-parser-output h2 {
font-size: 42px;
line-height: 1.12;
margin-top: 56px;
border-bottom: 0;
}
.bc-shell {
max-width: 1380px;
margin: 0 auto;
padding: 0 28px 56px;
}
.bc-topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 24px 0 42px;
}
.bc-brand {
display: flex;
align-items: center;
gap: 16px;
font-weight: 800;
font-size: 24px;
}
.bc-mark {
width: 48px;
height: 48px;
border-radius: 14px;
background: linear-gradient(135deg, #2f6f73 0 25%, #a23e48 25% 50%, #e1b24a 50% 75%, #3b5ba5 75%);
}
.bc-actions {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border-radius: 999px;
background: #f0f1f3;
}
.bc-pill,
.bc-primary {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 0 22px;
border-radius: 999px;
font-weight: 700;
text-decoration: none;
}
.bc-pill {
color: var(--bc-text);
background: var(--bc-surface);
border: 1px solid #cdd2d7;
}
.bc-primary {
color: #fff !important;
background: var(--bc-accent);
border: 1px solid var(--bc-accent);
}
.bc-hero {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
align-items: center;
gap: 58px;
min-height: 650px;
}
.bc-eyebrow {
font-size: 18px;
font-weight: 800;
color: var(--bc-muted);
margin-bottom: 18px;
}
.bc-hero-title {
font-size: clamp(42px, 4.2vw, 74px);
line-height: 1.05;
font-weight: 850;
margin: 0 0 28px;
color: var(--bc-text);
}
.bc-lead {
max-width: 760px;
font-size: 24px;
line-height: 1.45;
color: #161a1f;
margin-bottom: 34px;
}
.bc-search {
display: flex;
align-items: center;
gap: 22px;
max-width: 760px;
padding: 22px;
border-radius: 48px;
background: var(--bc-blue);
}
.bc-bot {
width: 76px;
height: 76px;
border-radius: 24px;
background: #fff;
display: grid;
place-items: center;
font-size: 38px;
}
.bc-search-text {
flex: 1;
min-width: 0;
}
.bc-search-label {
font-size: 18px;
font-weight: 700;
margin-bottom: 10px;
}
.bc-search-box {
background: #fff;
border-radius: 999px;
padding: 14px 22px;
color: #6c7580;
}
.bc-arrow {
width: 62px;
height: 62px;
border-radius: 50%;
background: #2b2f34;
color: #fff;
display: grid;
place-items: center;
font-size: 32px;
}
.bc-tags {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 24px;
}
.bc-tag {
display: inline-flex;
align-items: center;
min-height: 38px;
padding: 0 18px;
border-radius: 999px;
background: #dceaf5;
font-size: 15px;
color: #25313c;
}
.bc-photo {
position: relative;
border-radius: 34px;
overflow: hidden;
box-shadow: 0 28px 80px rgba(22, 28, 36, 0.13);
background: #fff;
transform: rotate(-1deg);
}
.bc-photo img,
.bc-section-photo img {
display: block;
width: 100%;
height: auto;
}
.bc-photo-caption {
position: absolute;
left: 24px;
right: 24px;
bottom: 24px;
padding: 18px 22px;
border-radius: 22px;
background: rgba(255, 255, 255, 0.92);
font-weight: 750;
}
.bc-section {
padding: 72px 0;
}
.bc-section-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
gap: 56px;
align-items: center;
}
.bc-section-photo {
border-radius: 32px;
overflow: hidden;
box-shadow: 0 18px 60px rgba(22, 28, 36, 0.12);
}
.bc-card-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
margin: 28px 0 18px;
}
.bc-card {
display: block;
min-height: 168px;
padding: 26px;
border-radius: 24px;
background: var(--bc-surface);
border: 1px solid var(--bc-line);
box-shadow: 0 10px 34px rgba(22, 28, 36, 0.06);
text-decoration: none;
}
.bc-card strong {
display: block;
font-size: 22px;
line-height: 1.2;
color: var(--bc-text);
margin-bottom: 12px;
}
.bc-card span {
color: var(--bc-muted);
}
.bc-stat-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 32px;
margin: 48px 0;
}
.bc-stat {
min-height: 156px;
padding: 22px 0;
}
.bc-stat-value {
display: flex;
align-items: baseline;
gap: 12px;
font-size: clamp(54px, 5vw, 86px);
line-height: 1;
font-weight: 500;
color: var(--bc-text);
}
.bc-stat-value::before {
content: ">";
display: inline-grid;
place-items: center;
width: 28px;
height: 28px;
border-radius: 8px;
background: var(--bc-accent);
color: #fff;
font-size: 18px;
font-weight: 800;
}
.bc-stat-label {
color: var(--bc-muted);
font-size: 17px;
max-width: 230px;
}
.wikitable {
width: 100%;
border: 0;
background: transparent;
border-collapse: separate;
border-spacing: 0 10px;
}
.wikitable th {
background: #eef1f4;
border: 0;
border-radius: 14px 14px 0 0;
padding: 14px 16px;
}
.wikitable td {
background: #fff;
border: 0;
border-top: 1px solid var(--bc-line);
border-bottom: 1px solid var(--bc-line);
padding: 14px 16px;
}
.wikitable tr td:first-child {
border-left: 1px solid var(--bc-line);
border-radius: 14px 0 0 14px;
}
.wikitable tr td:last-child {
border-right: 1px solid var(--bc-line);
border-radius: 0 14px 14px 0;
}
.thumb,
.mw-parser-output .thumb {
max-width: 100%;
}
.mw-parser-output img {
max-width: 100%;
height: auto;
}
@media (max-width: 980px) {
.mw-parser-output {
font-size: 16px;
}
.mw-parser-output h2 {
font-size: 32px;
margin-top: 40px;
}
.bc-shell {
padding: 0 18px 42px;
}
.bc-topbar {
padding: 16px 0 28px;
}
.bc-actions {
display: none;
}
.bc-hero,
.bc-section-grid {
grid-template-columns: 1fr;
gap: 28px;
min-height: 0;
}
.bc-hero-title {
font-size: 42px;
}
.bc-lead {
font-size: 19px;
}
.bc-search {
border-radius: 28px;
padding: 16px;
align-items: flex-start;
}
.bc-bot {
width: 54px;
height: 54px;
font-size: 27px;
border-radius: 18px;
}
.bc-arrow {
width: 48px;
height: 48px;
font-size: 24px;
}
.bc-card-grid,
.bc-stat-grid {
grid-template-columns: 1fr;
gap: 14px;
}
.bc-card {
min-height: 0;
padding: 20px;
border-radius: 20px;
}
.bc-photo {
transform: none;
border-radius: 24px;
}
.wikitable {
display: block;
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
}
@media (max-width: 560px) {
.bc-brand {
font-size: 20px;
}
.bc-mark {
width: 40px;
height: 40px;
}
.bc-hero-title {
font-size: 34px;
}
.bc-search {
display: grid;
grid-template-columns: 54px 1fr;
}
.bc-arrow {
display: none;
}
.bc-photo-caption {
position: static;
border-radius: 0;
}
}