Перейти к содержимому страницы
Переключить меню
Переключить меню настроек
Переключить персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

MediaWiki:Common.css: различия между версиями

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
/* ==========================================================================
  MediaWiki:Common.css — Cryptography Wiki
  ========================================================================== */
 
/* === CSS Variables (легко менять цветовую схему) ======================== */


:root {
:root {
  --bg: #090b0b;
    --crypto-accent: #00b4d8;         /* Основной акцентный цвет */
  --panel: #101414;
    --crypto-accent-hover: #0096c7;
  --text: #e8eee8;
    --crypto-code-bg: #0f172a;         /* Фон кода (тёмный) */
  --muted: #89938c;
     --crypto-code-border: #1e293b;
  --line: rgba(226, 239, 228, 0.14);
    --crypto-success: #10b981;         /* Зелёный (как "secure") */
  --acid: #c4f36b;
    --crypto-warning: #f59e0b;
  --mono: 'DM Mono', monospace;
    --crypto-danger: #ef4444;
  --sans: 'Manrope', 'Space Grotesk', sans-serif;
}
 
* {
  box-sizing: border-box;
}
 
html {
  scroll-behavior: smooth;
}
 
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
 
a {
  color: inherit;
  text-decoration: none;
}
 
/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
 
/* Topbar */
.topbar {
  height: 82px;
  padding: 0 6.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
  background: rgba(9, 11, 11, 0.8);
  backdrop-filter: blur(16px);
}
 
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
 
.brand-mark {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -4px;
}
 
.brand-mark span {
  color: var(--acid);
}
 
.brand-name {
  font: 500 12px var(--mono);
  letter-spacing: 0.16em;
}
 
.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.19em;
  margin-top: 4px;
}
 
.nav {
  display: flex;
  gap: 42px;
  margin-left: 80px;
}
 
.nav a,
.top-cta {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  color: #aab4ac;
  transition: color 0.2s;
}
 
.nav a:hover,
.top-cta:hover {
  color: var(--acid);
}
 
.top-cta {
  border: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--text);
}
 
.top-cta span {
  color: var(--acid);
  padding-left: 16px;
}
 
.menu-toggle {
  display: none;
  background: none;
  border: 0;
}
 
/* Hero */
.hero {
  min-height: 690px;
  height: calc(100vh - 82px);
  max-height: 900px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 6.1%;
  overflow: hidden;
}
 
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(190, 220, 190, 0.035) 1px, transparent 1px),
     linear-gradient(90deg, rgba(190, 220, 190, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 95%);
}
 
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 15px;
}
 
.eyebrow,
.section-kicker,
.hero-foot,
.stage-index,
.coordinate,
.float-label,
.manifesto-bottom,
.card-top,
.card-tags,
.console-head,
.console-foot,
.footer-copy,
.back-top {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
 
.eyebrow {
  color: #9ba69e;
  display: flex;
  align-items: center;
  gap: 10px;
}
 
.live-dot,
.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 13px var(--acid);
}
 
h1 {
  font-size: clamp(65px, 8.2vw, 124px);
  line-height: 0.91;
  letter-spacing: -0.09em;
  font-weight: 600;
  margin: 36px 0 29px;
}
 
h1 em,
.section-heading h2 em,
.manifesto-content h2 em {
  font-style: normal;
  color: var(--acid);
}
 
.hero-lead {
  font-size: 14px;
  line-height: 1.9;
  color: #a3ada5;
  max-width: 420px;
}
 
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}
 
.button {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  padding: 17px 21px;
  display: inline-flex;
  align-items: center;
  gap: 35px;
  transition: 0.25s;
}
 
.button-primary {
  background: var(--acid);
  color: #10150b;
}
 
.button-primary:hover {
  background: #d8ff91;
  transform: translateY(-3px);
}
 
.button-primary span,
.text-link span {
  font-size: 16px;
}
 
.text-link {
  font: 10px var(--mono);
  color: #bdc7be;
}
 
.text-link:hover {
  color: var(--acid);
}
 
.hero-foot {
  position: absolute;
  bottom: -115px;
  left: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  color: #69736c;
  font-size: 8px;
}
 
.hero-foot-line {
  width: 100px;
  height: 1px;
  background: var(--line);
}
 
/* Visual stage / Core */
.visual-stage {
  position: relative;
  height: min(590px, 75vh);
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
 
.visual-stage:before {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 192, 88, 0.15), rgba(67, 111, 71, 0.06) 45%, transparent 70%);
  filter: blur(12px);
}
 
.core-wrap {
  width: 210px;
  height: 210px;
  perspective: 800px;
  z-index: 3;
  filter: drop-shadow(0 15px 55px rgba(174, 235, 102, 0.12));
}
 
.core {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCore 24s linear infinite;
}
 
.core-face {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(207, 245, 156, 0.62);
  background: linear-gradient(135deg, rgba(180, 230, 126, 0.17), rgba(26, 47, 34, 0.22) 45%, rgba(8, 14, 11, 0.8));
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(168, 231, 111, 0.07);
}
 
.core-face b {
  font-size: 64px;
  font-weight: 400;
  color: var(--acid);
  text-shadow: 0 0 28px rgba(196, 243, 107, 0.3);
}
 
.core-face span,
.core-face small {
  font: 9px var(--mono);
  letter-spacing: 0.2em;
  color: #b4c5ae;
}
 
.core-face small {
  margin-top: 15px;
  font-size: 7px;
}
 
.face-front  { transform: translateZ(105px); }
.face-back  { transform: rotateY(180deg) translateZ(105px); }
.face-left  { transform: rotateY(-90deg) translateZ(105px); }
.face-right  { transform: rotateY(90deg) translateZ(105px); }
.face-top    { transform: rotateX(90deg) translateZ(105px); }
.face-bottom { transform: rotateX(-90deg) translateZ(105px); }
 
@keyframes rotateCore {
  0%  { transform: rotateX(-20deg) rotateY(0); }
  100% { transform: rotateX(340deg) rotateY(360deg); }
}
 
.orbit {
  position: absolute;
  border: 1px solid rgba(195, 235, 169, 0.22);
  border-radius: 50%;
  width: 470px;
  height: 180px;
  transform: rotate(-28deg);
}
 
.orbit-a {
  animation: orbit 16s linear infinite;
}
 
.orbit-b {
  width: 490px;
  height: 250px;
  transform: rotate(58deg);
  border-color: rgba(195, 235, 169, 0.14);
  animation: orbit 22s linear infinite reverse;
}
 
.orbit-c {
  width: 340px;
  height: 460px;
  transform: rotate(65deg);
  border-style: dashed;
  border-color: rgba(195, 235, 169, 0.13);
  animation: orbit 35s linear infinite;
}
 
@keyframes orbit {
  to { rotate: 360deg; }
}
 
.axis {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(196, 243, 107, 0.25), transparent);
}
 
.axis-x {
  width: 100%;
  height: 1px;
}
 
.axis-y {
  height: 100%;
  width: 1px;
  background: linear-gradient(transparent, rgba(196, 243, 107, 0.2), transparent);
}
 
.float-label {
  position: absolute;
  z-index: 4;
  padding: 10px 12px;
  background: rgba(12, 18, 14, 0.82);
  border: 1px solid var(--line);
  font-size: 8px;
  color: #9ba99d;
  display: flex;
  align-items: center;
  gap: 9px;
}
 
.float-label b {
  color: var(--acid);
  font-weight: 400;
}
 
.label-top {
  top: 17%;
  right: 0;
}
 
.label-bottom {
  bottom: 18%;
  left: 0;
}
 
.label-bottom b {
  color: #e0e9dc;
}
 
.coordinate {
  position: absolute;
  color: #67756a;
  font-size: 8px;
}
 
.coord-one {
  top: 14%;
  left: 13%;
}
 
.coord-two {
  bottom: 12%;
  right: 7%;
}
 
.stage-index {
  position: absolute;
  bottom: 1%;
  right: 2%;
  color: #78837a;
  font-size: 8px;
}
 
.stage-index span {
  color: var(--acid);
  padding: 0 8px;
}
 
.hero-side-note {
  position: absolute;
  right: 2%;
  top: 46%;
  writing-mode: vertical-rl;
  font: 8px var(--mono);
  letter-spacing: 0.17em;
  color: #566159;
}
}


/* Ticker */
/* Тёмная тема */
.ticker {
html.skin-theme-clientpref-night,
  overflow: hidden;
html.skin-theme-clientpref-os {
  border-top: 1px solid var(--line);
    --crypto-code-bg: #0b1120;
  border-bottom: 1px solid var(--line);
    --crypto-code-border: #1e293b;
  padding: 19px 0;
  background: #0c100e;
}
}


.ticker-track {
/* === Типографика ======================================================== */
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 35s linear infinite;
}


.ticker span {
.mw-body,
  font: 10px var(--mono);
.mw-body-content {
  letter-spacing: 0.17em;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #a3afa4;
    line-height: 1.65;
}
}


.ticker b {
/* Заголовки */
  color: var(--acid);
.mw-body h1,
  font-size: 13px;
.mw-body h2,
.mw-body h3,
.mw-body h4,
.firstHeading {
    font-weight: 650;
    letter-spacing: -0.01em;
    border-bottom-color: #e2e8f0;
}
}


@keyframes marquee {
html.skin-theme-clientpref-night .mw-body h1,
  to { transform: translateX(-50%); }
html.skin-theme-clientpref-night .mw-body h2,
html.skin-theme-clientpref-night .firstHeading,
html.skin-theme-clientpref-os .mw-body h1,
html.skin-theme-clientpref-os .mw-body h2,
html.skin-theme-clientpref-os .firstHeading {
    border-bottom-color: #334155;
}
}


/* Sections */
/* === Ссылки ============================================================= */
.section-pad {
  padding: 120px 10%;
}


.section-kicker {
.mw-body a {
  display: flex;
    color: var(--crypto-accent);
  justify-content: space-between;
    text-decoration-thickness: 1px;
  border-bottom: 1px solid var(--line);
    text-underline-offset: 2px;
  padding-bottom: 17px;
  color: #77837a;
  font-size: 8px;
}
}


.manifesto-content {
.mw-body a:hover {
  display: grid;
    color: var(--crypto-accent-hover);
  grid-template-columns: 1fr 270px;
  gap: 10%;
  align-items: end;
  padding: 78px 0 85px;
}
}


.manifesto-content h2,
/* Внешние ссылки чуть приглушённее */
.section-heading h2,
.mw-body a.external {
.lab h2 {
    color: #0ea5e9;
  font-size: clamp(45px, 6.2vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.075em;
  font-weight: 500;
  margin: 0;
}
}


.outline-text {
/* === Код и pre ========================================================== */
  -webkit-text-stroke: 1px #a9b5aa;
  color: transparent;
}


.manifesto-aside {
/* Inline code */
  padding-bottom: 9px;
.mw-body code,
.mw-parser-output code {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.15em 0.4em;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    color: #0f172a;
}
}


.crosshair {
/* Тёмный режим для inline code */
  font: 28px var(--mono);
html.skin-theme-clientpref-night .mw-body code,
  color: var(--acid);
html.skin-theme-clientpref-night .mw-parser-output code,
  margin-bottom: 20px;
html.skin-theme-clientpref-os .mw-body code,
html.skin-theme-clientpref-os .mw-parser-output code {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
}


.manifesto-aside p,
/* Блоки кода */
.section-heading p,
.mw-body pre,
.lab-layout > div:first-child p {
.mw-parser-output pre {
  font-size: 12px;
    background-color: var(--crypto-code-bg) !important;
  line-height: 2;
    border: 1px solid var(--crypto-code-border) !important;
  color: #98a39a;
    border-radius: 8px;
    padding: 1.1em 1.3em !important;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875em;
    line-height: 1.55;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
}


.arrow-link {
/* SyntaxHighlight (если установлен) */
  display: inline-block;
.mw-highlight {
  margin-top: 22px;
    border-radius: 8px;
  font: 9px var(--mono);
    overflow: hidden;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #69746b;
  padding-bottom: 9px;
}
}


.arrow-link span {
/* === Таблицы ============================================================ */
  color: var(--acid);
  margin-left: 20px;
}


.manifesto-bottom {
.wikitable {
  display: flex;
    border-collapse: separate;
  justify-content: space-between;
    border-spacing: 0;
  border-top: 1px solid var(--line);
    border: 1px solid #e2e8f0;
  padding-top: 18px;
    border-radius: 8px;
  color: #647067;
    overflow: hidden;
  font-size: 8px;
    background: #fff;
}
}


.section-heading {
.wikitable > * > tr > th {
  display: flex;
    background: #f8fafc;
  align-items: end;
    border-bottom: 2px solid #e2e8f0;
  justify-content: space-between;
    font-weight: 600;
  margin: 65px 0 50px;
    color: #0f172a;
}
}


.section-heading p {
.wikitable > * > tr > td,
  max-width: 260px;
.wikitable > * > tr > th {
  margin: 0 5% 5px 0;
    border: 1px solid #e2e8f0;
    padding: 0.55em 0.9em;
}
}


/* Principle cards */
html.skin-theme-clientpref-night .wikitable,
.principle-grid {
html.skin-theme-clientpref-os .wikitable {
  display: grid;
    border-color: #334155;
  grid-template-columns: 1fr 1fr;
    background: #0f172a;
  gap: 14px;
}
}


.principle-card {
html.skin-theme-clientpref-night .wikitable > * > tr > th,
  position: relative;
html.skin-theme-clientpref-os .wikitable > * > tr > th {
  min-height: 340px;
    background: #1e293b;
  padding: 26px 29px;
    border-color: #334155;
  background: linear-gradient(145deg, #121a15, #0d1110 70%);
    color: #f1f5f9;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
}


.principle-card:hover {
html.skin-theme-clientpref-night .wikitable > * > tr > td,
  border-color: rgba(196, 243, 107, 0.45);
html.skin-theme-clientpref-os .wikitable > * > tr > td {
  transform: translateY(-4px);
    border-color: #334155;
}
}


.card-large,
/* === Инфобоксы ========================================================== */
.card-wide {
  min-height: 385px;
}


.card-top {
.infobox {
  display: flex;
    border: 1px solid #e2e8f0;
  justify-content: space-between;
    border-radius: 10px;
  color: #849087;
    background: #f8fafc;
  font-size: 8px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
    font-size: 90%;
}
}


.card-symbol {
.infobox th {
  font-size: 16px;
    background: #f1f5f9;
  color: var(--acid);
}
}


.principle-card h3 {
html.skin-theme-clientpref-night .infobox,
  font-size: 23px;
html.skin-theme-clientpref-os .infobox {
  letter-spacing: -0.05em;
    border-color: #334155;
  font-weight: 500;
    background: #1e293b;
  margin: 24px 0 9px;
}
}


.principle-card p {
html.skin-theme-clientpref-night .infobox th,
  font-size: 11px;
html.skin-theme-clientpref-os .infobox th {
  line-height: 1.8;
    background: #0f172a;
  color: #929e94;
  max-width: 370px;
  margin: 0;
}
}


.card-tags {
/* === Цитаты и примечания ================================================ */
  display: flex;
  gap: 7px;
  margin-top: 23px;
}


.card-tags span {
blockquote {
  padding: 6px 8px;
    border-left: 4px solid var(--crypto-accent);
  border: 1px solid var(--line);
    background: #f0f9ff;
  color: #9ba79d;
    margin: 1.2em 0;
  font-size: 7px;
    padding: 0.8em 1.2em;
    border-radius: 0 6px 6px 0;
    color: #0c4a6e;
}
}


/* Decorative elements inside cards */
html.skin-theme-clientpref-night blockquote,
.mini-lock {
html.skin-theme-clientpref-os blockquote {
  position: absolute;
    background: #0c4a6e22;
  right: 16%;
    color: #bae6fd;
  top: 76px;
    border-left-color: var(--crypto-accent);
  width: 100px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
}
}


.lock-shackle {
/* === Специальные классы для криптографии ================================ */
  width: 57px;
  height: 59px;
  border: 2px solid var(--acid);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  transform: translateY(5px);
  box-shadow: 0 0 20px #c4f36b22;
}


.lock-body {
/* Ключи / ciphertext */
  width: 86px;
.crypto-key,
  height: 60px;
.ciphertext {
  background: linear-gradient(135deg, #b7e86b, #647e3d);
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  border-radius: 7px;
    background: #0f172a;
  display: grid;
    color: #67e8f9;
  place-items: center;
    padding: 0.15em 0.45em;
  color: #17210d;
    border-radius: 4px;
  font-size: 17px;
    font-size: 0.9em;
  box-shadow: 0 12px 35px #b6e56b25;
    letter-spacing: 0.03em;
}
}


.hash-art {
/* Успешная проверка / secure */
  position: absolute;
.crypto-secure {
  right: 13%;
    color: var(--crypto-success);
  top: 95px;
    font-weight: 600;
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--acid);
  font: 25px var(--mono);
  opacity: 0.7;
}
}


.hash-art span:nth-child(2n) {
/* Предупреждение */
  transform: translateY(14px);
.crypto-warning {
  opacity: 0.4;
    color: var(--crypto-warning);
    font-weight: 600;
}
}


.hash-art i {
/* Опасность / broken */
  position: absolute;
.crypto-broken {
  width: 130px;
    color: var(--crypto-danger);
  height: 1px;
    font-weight: 600;
  background: var(--acid);
  top: 50%;
  left: -15px;
  transform: rotate(-35deg);
  box-shadow: 0 0 12px var(--acid);
}
}


.signature-art {
/* Блок "Важно" / "Note" */
  position: absolute;
.crypto-note {
  right: 14%;
    border-left: 4px solid var(--crypto-accent);
  top: 87px;
    background: #ecfeff;
  width: 110px;
    padding: 0.9em 1.2em;
  height: 100px;
    margin: 1.2em 0;
  border: 1px solid #9cc66a55;
    border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  transform: rotate(8deg);
}
}


.signature-art span {
html.skin-theme-clientpref-night .crypto-note,
  color: var(--acid);
html.skin-theme-clientpref-os .crypto-note {
  font-size: 30px;
    background: #08334455;
}
}


.signature-art div {
/* === TOC ================================================================ */
  height: 2px;
  width: 65%;
  background: #708a5c;
}


.signature-art div:nth-last-child(1) {
#toc,
  width: 35%;
.toc {
  margin-left: -30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
}


.privacy-art {
html.skin-theme-clientpref-night #toc,
  position: absolute;
html.skin-theme-clientpref-night .toc,
  right: 10%;
html.skin-theme-clientpref-os #toc,
  top: 55px;
html.skin-theme-clientpref-os .toc {
  width: 190px;
    border-color: #334155;
  height: 180px;
    background: #1e293b;
  display: grid;
  place-items: center;
  color: var(--acid);
  font: 10px var(--mono);
  letter-spacing: 0.2em;
  text-align: center;
}
}


.privacy-ring {
/* === Мелкие улучшения =================================================== */
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid #c4f36b99;
  border-radius: 50%;
  box-shadow: 0 0 45px #c4f36b16, inset 0 0 35px #c4f36b12;
}


.privacy-ring:before,
/* Более аккуратные горизонтальные линии */
.privacy-ring:after {
hr {
  content: "";
    border: none;
  position: absolute;
    border-top: 1px solid #e2e8f0;
  inset: 14px;
    margin: 1.8em 0;
  border: 1px dashed #c4f36b66;
  border-radius: 50%;
  transform: rotateX(65deg);
}
}


.privacy-ring:after {
html.skin-theme-clientpref-night hr,
  transform: rotateY(65deg);
html.skin-theme-clientpref-os hr {
    border-top-color: #334155;
}
}


.privacy-art i {
/* Подсветка при наведении на строки таблицы */
  position: absolute;
.wikitable tr:hover td {
  width: 7px;
    background-color: #f1f5f9;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  top: 10px;
  right: 25px;
  box-shadow: 0 0 15px var(--acid);
}
 
.card-wide {
  grid-column: span 2;
}
 
.card-wide p {
  max-width: 440px;
}
 
/* Lab / Console */
.lab {
  background: #0d1210;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
 
.lab-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12%;
  align-items: center;
  padding-top: 70px;
}
 
.lab h2 {
  font-size: clamp(55px, 7vw, 92px);
}
 
.lab h2 span {
  color: var(--acid);
}
 
.lab-layout > div:first-child p {
  max-width: 330px;
  margin: 26px 0 28px;
}
 
.button-outline {
  border: 1px solid #566353;
  color: var(--text);
}
 
.button-outline span {
  color: var(--acid);
}
 
.button-outline:hover {
  border-color: var(--acid);
  color: var(--acid);
}
 
.lab-console {
  background: #080c0a;
  border: 1px solid #334235;
  box-shadow: 0 25px 80px #0007;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s;
}
 
.lab-console:hover {
  transform: perspective(900px) rotateY(0) rotateX(0);
}
 
.console-head,
.console-foot {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #718074;
  border-bottom: 1px solid #263329;
  font-size: 8px;
}
 
.console-head i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  margin-right: 8px;
}
 
.console-body {
  padding: 27px 25px 35px;
  font: 10px/2.2 var(--mono);
  color: #c3d0c4;
  min-height: 230px;
}
 
.console-body p {
  margin: 0;
}
 
.prompt {
  color: var(--acid);
}
 
.muted {
  color: #657267;
}
 
.ok {
  color: var(--acid);
}
 
.console-result {
  margin-top: 19px !important;
  color: #e3eee2;
  font-size: 12px;
}
 
.cursor {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--acid);
  vertical-align: middle;
  margin-left: 5px;
  animation: blink 1s steps(2) infinite;
}
 
@keyframes blink {
  50% { opacity: 0; }
}
 
.console-foot {
  border-top: 1px solid #263329;
  border-bottom: 0;
  color: #748477;
}
 
.console-foot span:last-child {
  color: var(--acid);
}
 
/* Footer */
.footer {
  min-height: 125px;
  padding: 30px 6.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.footer p {
  font-size: 10px;
  color: #89958b;
}
 
.footer-copy,
.back-top {
  font-size: 8px;
  color: #6f7b71;
}
 
.back-top:hover {
  color: var(--acid);
}
 
/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 0 5%;
    grid-template-columns: 1fr 1fr;
  }
 
  .visual-stage {
    transform: scale(0.82);
    margin: 0 -50px;
  }
 
  .section-pad {
    padding: 90px 7%;
  }
 
  .nav {
    margin-left: 0;
    gap: 22px;
  }
 
  .hero-side-note {
    display: none;
  }
 
  .manifesto-content {
    gap: 5%;
  }
 
  .lab-layout {
    gap: 7%;
  }
}
 
@media (max-width: 650px) {
  .topbar {
    height: 70px;
    padding: 0 6%;
  }
 
  .nav {
    display: none;
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    background: #0b100d;
    padding: 25px 6%;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 22px;
  }
 
  .nav.open {
    display: flex;
  }
 
  .top-cta {
    margin-left: auto;
    margin-right: 18px;
    padding: 10px;
  }
 
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
 
  .menu-toggle i {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--text);
  }
 
  .hero {
    height: auto;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 85px 7% 25px;
  }
 
  .hero-copy {
    padding: 0;
  }
 
  .hero h1 {
    font-size: clamp(65px, 16vw, 94px);
    margin: 30px 0 23px;
  }
 
  .hero-lead {
    font-size: 13px;
    max-width: 360px;
  }
 
  .hero-foot {
    display: none;
  }
 
  .visual-stage {
    height: 440px;
    min-height: 440px;
    margin: 20px -40px 0;
    transform: scale(0.83);
  }
 
  .orbit {
    width: 400px;
  }
 
  .label-top {
    right: 4%;
  }
 
  .label-bottom {
    left: 4%;
  }
 
  .ticker {
    padding: 15px 0;
  }
 
  .section-pad {
    padding: 75px 7%;
  }
 
  .section-kicker {
    font-size: 7px;
  }
 
  .manifesto-content {
    display: block;
    padding: 55px 0;
  }
 
  .manifesto-content h2 {
    font-size: clamp(44px, 11vw, 67px);
  }
 
  .manifesto-aside {
    max-width: 310px;
    margin: 48px 0 0 auto;
  }
 
  .manifesto-bottom {
    font-size: 7px;
  }
 
  .section-heading {
    display: block;
    margin: 50px 0 35px;
  }
 
  .section-heading h2 {
    font-size: 64px;
  }
 
  .section-heading p {
    margin: 22px 0 0;
    max-width: 320px;
  }
 
  .principle-grid {
    grid-template-columns: 1fr;
  }
 
  .principle-card,
  .card-large,
  .card-wide {
    grid-column: auto;
    min-height: 350px;
    padding: 23px;
  }
 
  .card-wide {
    min-height: 370px;
  }
 
  .mini-lock {
    right: 13%;
    top: 82px;
  }
 
  .hash-art {
    right: 12%;
    top: 95px;
  }
 
  .signature-art {
    right: 12%;
    top: 85px;
  }
 
  .privacy-art {
    right: 7%;
    top: 65px;
  }
 
  .lab-layout {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 55px;
  }
 
  .lab h2 {
    font-size: 76px;
  }
 
  .lab-console {
    transform: none;
  }
 
  .console-body {
    padding: 22px 15px;
    font-size: 9px;
  }
 
  .footer {
    padding: 30px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
 
  .footer p {
    justify-self: end;
    text-align: right;
  }
 
  .footer-copy {
    grid-column: 1;
  }
 
  .back-top {
    justify-self: end;
    grid-column: 2;
    grid-row: 2;
  }
}
}


/* Reduced motion */
html.skin-theme-clientpref-night .wikitable tr:hover td,
@media (prefers-reduced-motion: reduce) {
html.skin-theme-clientpref-os .wikitable tr:hover td {
  *,
     background-color: #1e293b;
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
     transition-duration: 0.01ms !important;
  }
}
}


/* Reveal animation */
/* Улучшение внешнего вида категорий */
.reveal {
#catlinks {
  opacity: 0;
    border-radius: 6px;
  transform: translateY(22px);
    border-color: #e2e8f0;
  transition: opacity 0.7s ease, transform 0.7s ease;
    background: #f8fafc;
}
}


.reveal.visible {
html.skin-theme-clientpref-night #catlinks,
  opacity: 1;
html.skin-theme-clientpref-os #catlinks {
  transform: translateY(0);
    border-color: #334155;
    background: #1e293b;
}
}

Версия от 22:38, 4 ноября 2026

/* ==========================================================================
   MediaWiki:Common.css — Cryptography Wiki
   ========================================================================== */

/* === CSS Variables (легко менять цветовую схему) ======================== */

:root {
    --crypto-accent: #00b4d8;          /* Основной акцентный цвет */
    --crypto-accent-hover: #0096c7;
    --crypto-code-bg: #0f172a;         /* Фон кода (тёмный) */
    --crypto-code-border: #1e293b;
    --crypto-success: #10b981;         /* Зелёный (как "secure") */
    --crypto-warning: #f59e0b;
    --crypto-danger: #ef4444;
}

/* Тёмная тема */
html.skin-theme-clientpref-night,
html.skin-theme-clientpref-os {
    --crypto-code-bg: #0b1120;
    --crypto-code-border: #1e293b;
}

/* === Типографика ======================================================== */

.mw-body,
.mw-body-content {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

/* Заголовки */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.firstHeading {
    font-weight: 650;
    letter-spacing: -0.01em;
    border-bottom-color: #e2e8f0;
}

html.skin-theme-clientpref-night .mw-body h1,
html.skin-theme-clientpref-night .mw-body h2,
html.skin-theme-clientpref-night .firstHeading,
html.skin-theme-clientpref-os .mw-body h1,
html.skin-theme-clientpref-os .mw-body h2,
html.skin-theme-clientpref-os .firstHeading {
    border-bottom-color: #334155;
}

/* === Ссылки ============================================================= */

.mw-body a {
    color: var(--crypto-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.mw-body a:hover {
    color: var(--crypto-accent-hover);
}

/* Внешние ссылки чуть приглушённее */
.mw-body a.external {
    color: #0ea5e9;
}

/* === Код и pre ========================================================== */

/* Inline code */
.mw-body code,
.mw-parser-output code {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.15em 0.4em;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    color: #0f172a;
}

/* Тёмный режим для inline code */
html.skin-theme-clientpref-night .mw-body code,
html.skin-theme-clientpref-night .mw-parser-output code,
html.skin-theme-clientpref-os .mw-body code,
html.skin-theme-clientpref-os .mw-parser-output code {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

/* Блоки кода */
.mw-body pre,
.mw-parser-output pre {
    background-color: var(--crypto-code-bg) !important;
    border: 1px solid var(--crypto-code-border) !important;
    border-radius: 8px;
    padding: 1.1em 1.3em !important;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875em;
    line-height: 1.55;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* SyntaxHighlight (если установлен) */
.mw-highlight {
    border-radius: 8px;
    overflow: hidden;
}

/* === Таблицы ============================================================ */

.wikitable {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.wikitable > * > tr > th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #0f172a;
}

.wikitable > * > tr > td,
.wikitable > * > tr > th {
    border: 1px solid #e2e8f0;
    padding: 0.55em 0.9em;
}

html.skin-theme-clientpref-night .wikitable,
html.skin-theme-clientpref-os .wikitable {
    border-color: #334155;
    background: #0f172a;
}

html.skin-theme-clientpref-night .wikitable > * > tr > th,
html.skin-theme-clientpref-os .wikitable > * > tr > th {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

html.skin-theme-clientpref-night .wikitable > * > tr > td,
html.skin-theme-clientpref-os .wikitable > * > tr > td {
    border-color: #334155;
}

/* === Инфобоксы ========================================================== */

.infobox {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
    font-size: 90%;
}

.infobox th {
    background: #f1f5f9;
}

html.skin-theme-clientpref-night .infobox,
html.skin-theme-clientpref-os .infobox {
    border-color: #334155;
    background: #1e293b;
}

html.skin-theme-clientpref-night .infobox th,
html.skin-theme-clientpref-os .infobox th {
    background: #0f172a;
}

/* === Цитаты и примечания ================================================ */

blockquote {
    border-left: 4px solid var(--crypto-accent);
    background: #f0f9ff;
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    border-radius: 0 6px 6px 0;
    color: #0c4a6e;
}

html.skin-theme-clientpref-night blockquote,
html.skin-theme-clientpref-os blockquote {
    background: #0c4a6e22;
    color: #bae6fd;
    border-left-color: var(--crypto-accent);
}

/* === Специальные классы для криптографии ================================ */

/* Ключи / ciphertext */
.crypto-key,
.ciphertext {
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    background: #0f172a;
    color: #67e8f9;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.9em;
    letter-spacing: 0.03em;
}

/* Успешная проверка / secure */
.crypto-secure {
    color: var(--crypto-success);
    font-weight: 600;
}

/* Предупреждение */
.crypto-warning {
    color: var(--crypto-warning);
    font-weight: 600;
}

/* Опасность / broken */
.crypto-broken {
    color: var(--crypto-danger);
    font-weight: 600;
}

/* Блок "Важно" / "Note" */
.crypto-note {
    border-left: 4px solid var(--crypto-accent);
    background: #ecfeff;
    padding: 0.9em 1.2em;
    margin: 1.2em 0;
    border-radius: 0 6px 6px 0;
}

html.skin-theme-clientpref-night .crypto-note,
html.skin-theme-clientpref-os .crypto-note {
    background: #08334455;
}

/* === TOC ================================================================ */

#toc,
.toc {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

html.skin-theme-clientpref-night #toc,
html.skin-theme-clientpref-night .toc,
html.skin-theme-clientpref-os #toc,
html.skin-theme-clientpref-os .toc {
    border-color: #334155;
    background: #1e293b;
}

/* === Мелкие улучшения =================================================== */

/* Более аккуратные горизонтальные линии */
hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.8em 0;
}

html.skin-theme-clientpref-night hr,
html.skin-theme-clientpref-os hr {
    border-top-color: #334155;
}

/* Подсветка при наведении на строки таблицы */
.wikitable tr:hover td {
    background-color: #f1f5f9;
}

html.skin-theme-clientpref-night .wikitable tr:hover td,
html.skin-theme-clientpref-os .wikitable tr:hover td {
    background-color: #1e293b;
}

/* Улучшение внешнего вида категорий */
#catlinks {
    border-radius: 6px;
    border-color: #e2e8f0;
    background: #f8fafc;
}

html.skin-theme-clientpref-night #catlinks,
html.skin-theme-clientpref-os #catlinks {
    border-color: #334155;
    background: #1e293b;
}
Последнее изменение