MediaWiki:Citizen.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* Размещённый здесь CSS-код будет загружаться для пользователей, использующих тему оформления Citizen */ | /* Размещённый здесь CSS-код будет загружаться для пользователей, использующих тему оформления Citizen */ | ||
/* ===== Ethereal Portal Wiki / Citizen ===== */ | /* ===== Ethereal Portal Wiki / Citizen ===== */ | ||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap'); | ||
/* ---------- Typography base ---------- */ | |||
html, body, | html, body, | ||
.mw-body, | .mw-body, | ||
| Строка 27: | Строка 29: | ||
font-family: 'Cormorant Garamond', serif !important; | font-family: 'Cormorant Garamond', serif !important; | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
| Строка 99: | Строка 80: | ||
.ep-kicker { | .ep-kicker { | ||
display: inline-block; | display: inline-block; | ||
padding: | padding: 8px 16px; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: rgba(246, 235, 214, 0.88); | background: rgba(246, 235, 214, 0.88); | ||
border: 1px solid rgba(120, 85, 35, 0.18); | border: 1px solid rgba(120, 85, 35, 0.18); | ||
color: #866238; | color: #866238; | ||
font-size: | font-size: 14px; | ||
letter-spacing: 0. | font-weight: 600; | ||
line-height: 1.1; | |||
letter-spacing: 0.10em; | |||
text-transform: uppercase; | text-transform: uppercase; | ||
margin-bottom: | margin-bottom: 18px; | ||
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06); | box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06); | ||
} | |||
.ep-hero-logo { | |||
width: min(780px, 100%); | |||
aspect-ratio: 780 / 180; | |||
margin: 0 auto 20px; | |||
background: url("/resources/assets/ep-hero.png") center center / contain no-repeat; | |||
} | } | ||
.ep-title { | .ep-title { | ||
margin: 0 0 | margin: 0 0 16px; | ||
font-size: | font-size: 66px; | ||
line-height: | line-height: 0.96; | ||
font-weight: | font-weight: 700; | ||
color: #2a2117; | color: #2a2117; | ||
text-shadow: 0 2px 10px rgba(255, 255, 255, 0.18); | text-shadow: 0 2px 10px rgba(255, 255, 255, 0.18); | ||
| Строка 123: | Строка 113: | ||
max-width: 920px; | max-width: 920px; | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: | padding: 18px 22px; | ||
font-size: 20px; | font-size: 20px; | ||
line-height: 1. | line-height: 1.6; | ||
color: rgba(42, 33, 23, 0.84); | color: rgba(42, 33, 23, 0.84); | ||
background: rgba(255, 249, 239, 0.82); | background: rgba(255, 249, 239, 0.82); | ||
| Строка 155: | Строка 145: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: | gap: 24px; | ||
margin: | margin: 30px 0 18px; | ||
position: relative; | position: relative; | ||
z-index: 2; | z-index: 2; | ||
| Строка 164: | Строка 154: | ||
.ep-card { | .ep-card { | ||
position: relative; | position: relative; | ||
padding: 24px 24px | padding: 26px 24px 24px; | ||
border-radius: | border-radius: 24px; | ||
background: | background: | ||
linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(244, 229, 199, 0.88)); | linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(244, 229, 199, 0.88)); | ||
| Строка 179: | Строка 169: | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
border-radius: | border-radius: 24px; | ||
pointer-events: none; | pointer-events: none; | ||
background: | background: | ||
| Строка 190: | Строка 180: | ||
position: absolute; | position: absolute; | ||
inset: 10px; | inset: 10px; | ||
border-radius: | border-radius: 18px; | ||
border: 1px solid rgba(132, 95, 42, 0.08); | border: 1px solid rgba(132, 95, 42, 0.08); | ||
pointer-events: none; | pointer-events: none; | ||
| Строка 202: | Строка 192: | ||
.ep-card__icon { | .ep-card__icon { | ||
font-size: | font-size: 30px; | ||
line-height: 1; | line-height: 1; | ||
margin-bottom: 14px; | margin-bottom: 14px; | ||
| Строка 210: | Строка 200: | ||
.ep-card__title { | .ep-card__title { | ||
margin: 0 0 | margin: 0 0 14px; | ||
font-size: | font-size: 40px; | ||
line-height: 1. | line-height: 1.02; | ||
font-weight: | font-weight: 700; | ||
color: #2a2117; | color: #2a2117; | ||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
letter-spacing: 0.01em; | |||
} | } | ||
.ep-card__text { | .ep-card__text { | ||
margin: 0 0 | margin: 0 0 18px; | ||
font-size: 18px; | |||
color: rgba(42, 33, 23, 0.78); | color: rgba(42, 33, 23, 0.78); | ||
line-height: 1. | line-height: 1.65; | ||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
| Строка 245: | Строка 237: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 12px; | ||
margin-top: 16px; | |||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
align-items: flex-start; | |||
} | } | ||
| Строка 254: | Строка 248: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
min-height: | min-height: 40px; | ||
padding: | padding: 9px 16px; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: rgba( | background: rgba(226, 233, 246, 0.88); | ||
border: 1px solid rgba(120, 85, 35, 0. | border: 1px solid rgba(120, 85, 35, 0.16); | ||
color: #5d4423; | color: #5d4423; | ||
font-size: | font-size: 15px; | ||
line-height: 1.2; | line-height: 1.2; | ||
white-space: nowrap; | white-space: nowrap; | ||
box-shadow: inset 0 1px 0 rgba(255,255,255,0. | box-shadow: | ||
inset 0 1px 0 rgba(255,255,255,0.55), | |||
0 2px 8px rgba(0,0,0,0.04); | |||
} | } | ||
.ep-card__links span a { | .ep-card__links span a { | ||
display: inline-block; | |||
color: #5d4423 !important; | color: #5d4423 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
font-weight: 600; | font-weight: 600; | ||
font-family: 'Inter', system-ui, sans-serif !important; | |||
letter-spacing: 0; | |||
} | } | ||
| Строка 280: | Строка 279: | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); | grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); | ||
gap: | gap: 24px; | ||
margin-top: 18px; | margin-top: 18px; | ||
align-items: start; | align-items: start; | ||
| Строка 288: | Строка 287: | ||
.ep-panel { | .ep-panel { | ||
padding: 22px | padding: 24px 24px 22px; | ||
border-radius: | border-radius: 22px; | ||
background: | background: | ||
linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(244, 229, 199, 0.84)); | linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(244, 229, 199, 0.84)); | ||
| Строка 299: | Строка 298: | ||
.ep-panel h2 { | .ep-panel h2 { | ||
margin: 0 0 | margin: 0 0 14px; | ||
border: 0 !important; | border: 0 !important; | ||
color: #2a2117 !important; | color: #2a2117 !important; | ||
font-size: 38px; | |||
line-height: 1.05; | |||
font-weight: 700; | |||
letter-spacing: 0.01em; | |||
} | } | ||
.ep-note { | .ep-note { | ||
font-size: 17px; | |||
color: rgba(42, 33, 23, 0.74); | color: rgba(42, 33, 23, 0.74); | ||
line-height: 1. | line-height: 1.65; | ||
} | } | ||
| Строка 354: | Строка 358: | ||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
.ep-hero-logo { | |||
width: min(560px, 100%); | |||
margin-bottom: 16px; | |||
} | |||
.ep-title { | .ep-title { | ||
font-size: | font-size: 52px; | ||
} | } | ||
.ep-subtitle { | .ep-subtitle { | ||
font-size: | font-size: 18px; | ||
padding: | padding: 16px 18px; | ||
} | } | ||
.ep-card, | .ep-card, | ||
.ep-panel { | .ep-panel { | ||
padding: 20px; | padding: 22px 20px; | ||
} | } | ||
.ep-card__title { | .ep-card__title { | ||
font-size: | font-size: 34px; | ||
} | |||
.ep-card__text { | |||
font-size: 17px; | |||
} | |||
.ep-panel h2 { | |||
font-size: 32px; | |||
} | } | ||
} | } | ||
| Строка 378: | Строка 395: | ||
} | } | ||
.ep- | .ep-hero-logo { | ||
width: min(420px, 100%); | |||
margin-bottom: 14px; | |||
} | } | ||
.ep-kicker { | .ep-kicker { | ||
font-size: | font-size: 12px; | ||
letter-spacing: 0.08em; | letter-spacing: 0.08em; | ||
padding: 7px 14px; | |||
} | |||
.ep-title { | |||
font-size: 42px; | |||
line-height: 0.98; | |||
} | } | ||
.ep-subtitle { | .ep-subtitle { | ||
font-size: 16px; | |||
padding: 14px 16px; | |||
} | |||
.ep-grid { | |||
gap: 18px; | |||
margin-top: 24px; | |||
} | |||
.ep-card { | |||
padding: 20px 18px 18px; | |||
border-radius: 20px; | |||
} | |||
.ep-card::after { | |||
inset: 8px; | |||
border-radius: 14px; | |||
} | |||
.ep-card__icon { | |||
font-size: 26px; | |||
margin-bottom: 12px; | |||
} | |||
.ep-card__title { | |||
font-size: 30px; | |||
line-height: 1.04; | |||
margin-bottom: 12px; | |||
} | |||
.ep-card__text { | |||
font-size: 16px; | |||
line-height: 1.6; | |||
margin-bottom: 16px; | |||
} | |||
.ep-panel h2 { | |||
font-size: 28px; | |||
line-height: 1.08; | |||
} | |||
.ep-note { | |||
font-size: 16px; | font-size: 16px; | ||
} | } | ||
.ep-card__links { | .ep-card__links { | ||
gap: | display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 10px; | |||
margin-top: 16px; | |||
} | } | ||
.ep-card__links span { | .ep-card__links span { | ||
width: 100%; | |||
min-width: 0; | |||
min-height: 40px; | |||
padding: 8px 12px; | |||
white-space: normal; | white-space: normal; | ||
min- | text-align: center; | ||
font-size: 14px; | |||
} | |||
.ep-card__links span a { | |||
width: 100%; | |||
text-align: center; | |||
} | |||
} | |||
@media (max-width: 480px) { | |||
.ep-hero-logo { | |||
width: min(360px, 100%); | |||
margin-bottom: 12px; | |||
} | |||
.ep-title { | |||
font-size: 36px; | |||
} | |||
.ep-card__title { | |||
font-size: 27px; | |||
} | |||
.ep-panel h2 { | |||
font-size: 26px; | |||
} | |||
.ep-card__links { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 10px; | |||
} | } | ||
} | } | ||
Версия от 23:05, 9 марта 2026
/* Размещённый здесь CSS-код будет загружаться для пользователей, использующих тему оформления Citizen */
/* ===== Ethereal Portal Wiki / Citizen ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');
/* ---------- Typography base ---------- */
html, body,
.mw-body,
.citizen-body-container,
.vector-body,
body.skin-citizen,
.mw-parser-output,
.mw-parser-output p,
.mw-parser-output li,
.ep-subtitle,
.ep-card__text,
.ep-note,
.ep-card__links,
.ep-card__links span,
.ep-card__links a {
font-family: 'Inter', system-ui, sans-serif;
}
h1, h2, h3, h4,
.ep-title,
.ep-card__title,
.ep-panel h2,
.ep-kicker {
font-family: 'Cormorant Garamond', serif !important;
font-style: normal;
}
/* ---------- Background ---------- */
html,
body {
background: url("/resources/assets/ep-bg.jpg") center top / cover no-repeat fixed !important;
}
body::before {
content: "";
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
background: rgba(255, 255, 255, 0.08);
}
/* ---------- Base layout cleanup ---------- */
.mw-page-container,
.mw-body,
#content,
.citizen-body-container,
.citizen-page-header,
.citizen-featured-actions,
.main-page-wrapper {
background: transparent !important;
box-shadow: none !important;
border: 0 !important;
backdrop-filter: none !important;
position: relative;
z-index: 1;
}
/* скрываем стандартное содержание справа только на главной */
.page-Main_Page .mw-portlet#p-toc,
.page-Заглавная_страница .mw-portlet#p-toc {
display: none !important;
}
/* ---------- Hero ---------- */
.ep-hero {
padding: 28px 20px 20px;
text-align: center;
position: relative;
z-index: 2;
}
.ep-kicker {
display: inline-block;
padding: 8px 16px;
border-radius: 999px;
background: rgba(246, 235, 214, 0.88);
border: 1px solid rgba(120, 85, 35, 0.18);
color: #866238;
font-size: 14px;
font-weight: 600;
line-height: 1.1;
letter-spacing: 0.10em;
text-transform: uppercase;
margin-bottom: 18px;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.ep-hero-logo {
width: min(780px, 100%);
aspect-ratio: 780 / 180;
margin: 0 auto 20px;
background: url("/resources/assets/ep-hero.png") center center / contain no-repeat;
}
.ep-title {
margin: 0 0 16px;
font-size: 66px;
line-height: 0.96;
font-weight: 700;
color: #2a2117;
text-shadow: 0 2px 10px rgba(255, 255, 255, 0.18);
}
.ep-subtitle {
max-width: 920px;
margin: 0 auto;
padding: 18px 22px;
font-size: 20px;
line-height: 1.6;
color: rgba(42, 33, 23, 0.84);
background: rgba(255, 249, 239, 0.82);
border: 1px solid rgba(120, 85, 35, 0.14);
border-radius: 18px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
/* если MediaWiki превратила текст в pre / code / parser-output box */
.ep-subtitle pre,
.ep-card__text pre,
.ep-panel pre,
.ep-subtitle .mw-code,
.ep-card__text .mw-code,
.ep-panel .mw-code {
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
overflow: visible !important;
white-space: normal !important;
font: inherit !important;
color: inherit !important;
}
/* ---------- Main grid ---------- */
.ep-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
margin: 30px 0 18px;
position: relative;
z-index: 2;
}
/* ---------- Cards ---------- */
.ep-card {
position: relative;
padding: 26px 24px 24px;
border-radius: 24px;
background:
linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(244, 229, 199, 0.88));
border: 1px solid rgba(132, 95, 42, 0.18);
box-shadow:
0 14px 34px rgba(0, 0, 0, 0.10),
inset 0 1px 0 rgba(255, 255, 255, 0.42);
overflow: hidden;
}
.ep-card::before {
content: "";
position: absolute;
inset: 0;
border-radius: 24px;
pointer-events: none;
background:
radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 28%),
radial-gradient(circle at bottom right, rgba(188,141,74,0.10), transparent 30%);
}
.ep-card::after {
content: "";
position: absolute;
inset: 10px;
border-radius: 18px;
border: 1px solid rgba(132, 95, 42, 0.08);
pointer-events: none;
}
.ep-card:hover {
box-shadow:
0 18px 40px rgba(0, 0, 0, 0.14),
inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.ep-card__icon {
font-size: 30px;
line-height: 1;
margin-bottom: 14px;
position: relative;
z-index: 1;
}
.ep-card__title {
margin: 0 0 14px;
font-size: 40px;
line-height: 1.02;
font-weight: 700;
color: #2a2117;
position: relative;
z-index: 1;
letter-spacing: 0.01em;
}
.ep-card__text {
margin: 0 0 18px;
font-size: 18px;
color: rgba(42, 33, 23, 0.78);
line-height: 1.65;
position: relative;
z-index: 1;
overflow: visible !important;
white-space: normal !important;
}
.ep-card__text p {
margin: 0 !important;
}
.ep-card__text,
.ep-subtitle,
.ep-note,
.ep-panel,
.ep-card__links {
overflow: visible !important;
}
/* ---------- Pills / links ---------- */
.ep-card__links {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 16px;
position: relative;
z-index: 1;
align-items: flex-start;
}
.ep-card__links span {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 9px 16px;
border-radius: 999px;
background: rgba(226, 233, 246, 0.88);
border: 1px solid rgba(120, 85, 35, 0.16);
color: #5d4423;
font-size: 15px;
line-height: 1.2;
white-space: nowrap;
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.55),
0 2px 8px rgba(0,0,0,0.04);
}
.ep-card__links span a {
display: inline-block;
color: #5d4423 !important;
text-decoration: none !important;
font-weight: 600;
font-family: 'Inter', system-ui, sans-serif !important;
letter-spacing: 0;
}
.ep-card__links span a:hover {
color: #2a2117 !important;
}
/* ---------- Lower section ---------- */
.ep-lower {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
gap: 24px;
margin-top: 18px;
align-items: start;
position: relative;
z-index: 2;
}
.ep-panel {
padding: 24px 24px 22px;
border-radius: 22px;
background:
linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(244, 229, 199, 0.84));
border: 1px solid rgba(132, 95, 42, 0.18);
box-shadow:
0 12px 28px rgba(0, 0, 0, 0.10),
inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.ep-panel h2 {
margin: 0 0 14px;
border: 0 !important;
color: #2a2117 !important;
font-size: 38px;
line-height: 1.05;
font-weight: 700;
letter-spacing: 0.01em;
}
.ep-note {
font-size: 17px;
color: rgba(42, 33, 23, 0.74);
line-height: 1.65;
}
.ep-list {
margin: 0;
padding-left: 20px;
}
.ep-list li {
margin: 8px 0;
}
/* ---------- kill unwanted scrollbars on main page ---------- */
.page-Main_Page .mw-parser-output,
.page-Заглавная_страница .mw-parser-output,
.page-Main_Page .mw-parser-output > div,
.page-Заглавная_страница .mw-parser-output > div {
overflow: visible !important;
}
.page-Main_Page pre,
.page-Заглавная_страница pre,
.page-Main_Page .mw-code,
.page-Заглавная_страница .mw-code {
overflow: visible !important;
white-space: normal !important;
word-break: break-word !important;
max-width: 100% !important;
}
/* ---------- Footer compact ---------- */
#footer,
.mw-footer {
background: rgba(236, 242, 255, 0.84) !important;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
border-top: 1px solid rgba(120, 85, 35, 0.10);
}
/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
.ep-grid,
.ep-lower {
grid-template-columns: 1fr;
}
}
@media (max-width: 900px) {
.ep-hero-logo {
width: min(560px, 100%);
margin-bottom: 16px;
}
.ep-title {
font-size: 52px;
}
.ep-subtitle {
font-size: 18px;
padding: 16px 18px;
}
.ep-card,
.ep-panel {
padding: 22px 20px;
}
.ep-card__title {
font-size: 34px;
}
.ep-card__text {
font-size: 17px;
}
.ep-panel h2 {
font-size: 32px;
}
}
@media (max-width: 640px) {
.ep-hero {
padding: 20px 12px 14px;
}
.ep-hero-logo {
width: min(420px, 100%);
margin-bottom: 14px;
}
.ep-kicker {
font-size: 12px;
letter-spacing: 0.08em;
padding: 7px 14px;
}
.ep-title {
font-size: 42px;
line-height: 0.98;
}
.ep-subtitle {
font-size: 16px;
padding: 14px 16px;
}
.ep-grid {
gap: 18px;
margin-top: 24px;
}
.ep-card {
padding: 20px 18px 18px;
border-radius: 20px;
}
.ep-card::after {
inset: 8px;
border-radius: 14px;
}
.ep-card__icon {
font-size: 26px;
margin-bottom: 12px;
}
.ep-card__title {
font-size: 30px;
line-height: 1.04;
margin-bottom: 12px;
}
.ep-card__text {
font-size: 16px;
line-height: 1.6;
margin-bottom: 16px;
}
.ep-panel h2 {
font-size: 28px;
line-height: 1.08;
}
.ep-note {
font-size: 16px;
}
.ep-card__links {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin-top: 16px;
}
.ep-card__links span {
width: 100%;
min-width: 0;
min-height: 40px;
padding: 8px 12px;
white-space: normal;
text-align: center;
font-size: 14px;
}
.ep-card__links span a {
width: 100%;
text-align: center;
}
}
@media (max-width: 480px) {
.ep-hero-logo {
width: min(360px, 100%);
margin-bottom: 12px;
}
.ep-title {
font-size: 36px;
}
.ep-card__title {
font-size: 27px;
}
.ep-panel h2 {
font-size: 26px;
}
.ep-card__links {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
}