331 lines
8.5 KiB
CSS
331 lines
8.5 KiB
CSS
:root {
|
|
--bg: #f3f0e8;
|
|
--paper: #fffdfa;
|
|
--ink: #1e252d;
|
|
--muted: #64707d;
|
|
--line: #d8d0c2;
|
|
--accent: #216869;
|
|
--accent-2: #b4432a;
|
|
--code: #111827;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.site-hero {
|
|
min-height: 360px;
|
|
background:
|
|
linear-gradient(90deg, rgba(20, 24, 28, 0.86), rgba(20, 24, 28, 0.35)),
|
|
linear-gradient(120deg,#152c31,#216869);
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.site-hero__inner {
|
|
width: min(1120px, calc(100% - 40px));
|
|
margin: 0 auto;
|
|
padding: 72px 0 46px;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 10px;
|
|
color: var(--accent-2);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.site-hero .eyebrow {
|
|
color: #f5b08c;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
line-height: 1.15;
|
|
margin: 0;
|
|
}
|
|
|
|
.site-hero h1 {
|
|
font-size: clamp(44px, 8vw, 82px);
|
|
}
|
|
|
|
.site-description {
|
|
max-width: 680px;
|
|
margin: 18px 0 0;
|
|
color: #e5e7eb;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.articles-shell {
|
|
width: min(1120px, calc(100% - 32px));
|
|
margin: 34px auto 64px;
|
|
}
|
|
|
|
.articles-header,
|
|
.top-nav,
|
|
.meta-line,
|
|
.tag-list {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.articles-header {
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.articles-header h2 {
|
|
font-size: 34px;
|
|
}
|
|
|
|
.articles-header > span,
|
|
.meta-line {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.article-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 18px;
|
|
}
|
|
|
|
.article-card {
|
|
min-height: 100%;
|
|
overflow: hidden;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--paper);
|
|
text-decoration: none;
|
|
transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
|
}
|
|
|
|
.article-card:hover {
|
|
border-color: #9f8f7a;
|
|
box-shadow: 0 12px 30px rgba(39, 33, 25, 0.12);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.article-card > img {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
object-fit: cover;
|
|
border-bottom: 1px solid var(--line);
|
|
background: #fff;
|
|
}
|
|
|
|
.article-card__body {
|
|
padding: 18px;
|
|
}
|
|
|
|
.article-card h3 {
|
|
margin-top: 10px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.article-card p {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.tag-list span {
|
|
border: 1px solid #c5bba9;
|
|
border-radius: 999px;
|
|
padding: 4px 10px;
|
|
background: #f8f5ee;
|
|
color: #5c4a37;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.article-page {
|
|
width: min(1040px, calc(100% - 32px));
|
|
margin: 0 auto 72px;
|
|
}
|
|
|
|
.top-nav {
|
|
padding: 22px 0;
|
|
}
|
|
|
|
.top-nav a {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.article-hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
|
|
gap: 28px;
|
|
align-items: center;
|
|
padding: 28px 0 34px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.article-hero h1 {
|
|
margin: 14px 0 18px;
|
|
font-size: clamp(34px, 6vw, 58px);
|
|
}
|
|
|
|
.article-hero > img {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
|
|
.article-content {
|
|
max-width: 820px;
|
|
margin: 34px auto 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.article-content h2 {
|
|
margin: 42px 0 14px;
|
|
font-size: 30px;
|
|
}
|
|
|
|
.article-content h3 {
|
|
margin: 34px 0 12px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.article-content p,
|
|
.article-content ul,
|
|
.article-content ol {
|
|
margin: 0 0 20px;
|
|
}
|
|
|
|
.article-content a {
|
|
color: var(--accent);
|
|
text-decoration-thickness: 1px;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.article-content figure {
|
|
margin: 28px 0;
|
|
}
|
|
|
|
.article-content figure img {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
|
|
.article-content figcaption {
|
|
margin-top: 8px;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.article-content .table-scroll {
|
|
overflow-x: auto;
|
|
margin: 28px 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--paper);
|
|
}
|
|
|
|
.article-content table {
|
|
width: 100%;
|
|
min-width: 620px;
|
|
border-collapse: collapse;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.article-content th,
|
|
.article-content td {
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.article-content th {
|
|
background: #f0ece2;
|
|
color: #443a2d;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.article-content tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.article-content pre {
|
|
overflow-x: auto;
|
|
border-radius: 8px;
|
|
margin: 26px 0;
|
|
padding: 18px 20px;
|
|
background: var(--code);
|
|
color: #e5e7eb;
|
|
font-size: 15px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.article-content code {
|
|
font-family: SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
|
|
.article-content :not(pre) > code {
|
|
border-radius: 4px;
|
|
padding: 2px 5px;
|
|
background: #ede6da;
|
|
color: #663c1f;
|
|
font-size: 0.92em;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.site-hero {
|
|
min-height: 320px;
|
|
}
|
|
|
|
.site-description {
|
|
font-size: 17px;
|
|
}
|
|
|
|
.article-hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.article-content {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Документация Bitrix и имена API часто содержат длинные неразрывные токены. */
|
|
.article-hero h1,
|
|
.article-content h2,
|
|
.article-content h3,
|
|
.article-content :not(pre) > code,
|
|
.article-content a {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
}
|
|
|
|
/* Restoration navigation and accessible tools */
|
|
html{scroll-behavior:smooth} .masthead{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px max(20px,calc((100vw - 1120px)/2));background:#fffdfa;border-bottom:1px solid var(--line)} .brand{font-size:23px;font-weight:800;text-decoration:none;white-space:nowrap}.brand span{color:var(--accent)}.masthead nav{display:flex;gap:22px;flex-wrap:wrap;font-size:14px}.masthead nav a{text-decoration:none}.site-hero{background:#152c31;position:relative;min-height:420px;align-items:center;overflow:hidden}.site-hero__inner{position:relative;z-index:1}.site-hero h1{font-size:clamp(40px,6vw,70px);max-width:650px}.site-description{max-width:640px;font-size:18px}.hero-link{display:inline-block;margin-top:26px;color:#a7ddd5}.hero-code{position:absolute;right:max(36px,calc((100vw - 1120px)/2));font:22px/1.9 monospace;color:#9ac5bc;opacity:.5;transform:rotate(-5deg)}.hero-code span{color:#e7c995}.site-hero__inner{padding:55px 0}.filters{background:var(--paper);padding:22px;border:1px solid var(--line);border-radius:8px}.filters label{display:block;font-size:14px;margin-bottom:8px}input,textarea{font:inherit;width:100%;background:white;border:1px solid #8c9998;border-radius:4px;padding:13px;color:var(--ink)}.topics{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}button{font:inherit;cursor:pointer;border:1px solid #9bafaa;background:#fffdfa;color:#1e4440;padding:8px 16px;border-radius:5px}button[aria-pressed=true],button:hover{background:var(--accent);color:white}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #c2732c;outline-offset:4px}.result-count{font-size:14px;color:var(--muted)}.article-card{text-decoration:none;box-shadow:none;transition:transform .15s}.article-card:hover{transform:translateY(-3px);border-color:var(--accent)}.card-topic{background:#e2ebe6;color:#24514b;padding:18px 22px;font:700 18px monospace;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.card-topic span{color:#768c82}.article-card h3{font-size:22px}.article-card__body p{font-size:15px}.archive-note{padding:20px;background:#edf2ed;border-left:4px solid var(--accent);margin:24px 0;font-size:15px}.article-hero>img{display:none}.article-hero{display:block}.article-content{overflow-wrap:anywhere}.article-content h1{font-size:clamp(30px,5vw,52px);margin-bottom:24px}.article-content pre{max-width:100%;overflow:auto}.article-content img{height:auto}.article-content table{display:block;overflow:auto}.footer{padding:30px max(20px,calc((100vw - 1120px)/2));border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.footer p{font-size:12px}textarea{display:block;min-height:240px;font:15px/1.6 monospace;margin:10px 0}pre.error{background:#5e2020} .article-page{min-width:0}
|
|
@media(max-width:850px){.hero-code{display:none}.masthead{align-items:flex-start;flex-direction:column;gap:12px}.masthead nav{gap:16px}.article-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}.site-hero{min-height:360px}.article-page{width:calc(100% - 32px)}}
|
|
|
|
.article-content table{min-width:0;max-width:100%;width:100%}.article-content td,.article-content th{min-width:120px}.article-content pre{min-width:0}.article-content figure{margin:28px 0}.article-content figcaption{font-size:13px;color:var(--muted);margin-top:8px}
|