cat > /opt/mekct_paste/static/style.css << 'EOF'

cat > /opt/mekct_paste/static/style.css << 'EOF'
:root {
--bg: #fff;
--text: #111;
--text-secondary: #666;
--text-muted: #999;
--border: #e5e5e5;
--accent: #3b82f6;
--accent-hover: #2563eb;
--prompt-bg: #fafafa;
--code-bg: #f5f5f5;
--max-width: 680px;
--radius: 6px;
}

  • { margin: 0; padding: 0; box-sizing: border-box; }

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 17px;
line-height: 1.6;
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
}

/ === TYPOGRAPHY === /
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; margin: 1.5em 0 0.5em; }
h1 { font-size: 1.7em; }
h2 { font-size: 1.35em; }
h3 { font-size: 1.15em; }
p { margin: 0.8em 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/ === HEADER === /
.site-header {
padding: 16px 0;
border-bottom: 1px solid var(--border);
margin-bottom: 28px;
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.site-logo {
font-size: 18px;
font-weight: 600;
color: var(--text);
text-decoration: none;
white-space: nowrap;
}
.site-logo:hover { color: var(--accent); text-decoration: none; }
.nav-link {
font-size: 14px;
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
white-space: nowrap;
}
.nav-link:hover { color: var(--accent); text-decoration: none; }

/ === FORMS === /
.create-form { margin: 20px 0 32px; }
.form-section { margin-bottom: 16px; }
.form-label {
display: flex; align-items: baseline; gap: 6px;
font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px;
}
.label-optional { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.form-input, .form-textarea {
width: 100%; padding: 10px 14px;
border: 1px solid var(--border); border-radius: var(--radius);
font-family: inherit; font-size: 14px; line-height: 1.5;
color: var(--text); background: var(--bg);
transition: border-color 0.15s; resize: vertical;
}
.form-input:focus, .form-textarea:focus {
outline: none; border-color: var(--accent);
box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}
.form-input { height: 40px; }
.form-textarea { min-height: 120px; }

.checkbox-row {
display: flex; align-items: center; gap: 8px;
padding: 8px 14px; background: #fafafa;
border-radius: var(--radius); border: 1px solid var(--border);
cursor: pointer; font-size: 13px; color: var(--text-secondary);
}
.checkbox-row:hover { background: #f5f5f5; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.checkbox-hint { color: var(--text-muted); font-size: 12px; }

.btn {
display: inline-flex; align-items: center; gap: 6px;
padding: 9px 18px; border: none; border-radius: var(--radius);
font-family: inherit; font-size: 14px; font-weight: 500;
cursor: pointer; transition: background 0.15s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
background: transparent; color: var(--text-secondary);
border: 1px solid var(--border); text-decoration: none; font-size: 13px; padding: 6px 12px;
}
.btn-ghost:hover { background: #f5f5f5; color: var(--text); text-decoration: none; }
.btn-danger { background: transparent; color: #e53e3e; border: 1px solid #fed7d7; }
.btn-danger:hover { background: #fff5f5; }

/ === FLASH === /
.flash {
padding: 10px 14px; border-radius: var(--radius);
margin-bottom: 16px; font-size: 13px; line-height: 1.4;
}
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.section-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.section-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/ === FEED (Хабр-стиль) === /
.my-header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 4px;
}

.posts-feed {
margin: 0 0 32px;
}

.feed-item {
padding: 14px 0;
border-bottom: 1px solid var(--border);
}

.feed-item:last-child {
border-bottom: none;
}

.feed-meta-top {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
}

.action-icon {
background: none;
border: none;
cursor: pointer;
font-size: 14px;
padding: 2px;
color: var(--text-muted);
text-decoration: none;
line-height: 1;
}
.action-icon:hover {
color: var(--text);
text-decoration: none;
}

.action-form {
display: inline;
}

.feed-visibility {
margin-left: auto;
font-size: 13px;
cursor: help;
}

.feed-title {
font-size: 17px;
font-weight: 400;
margin: 0 0 4px;
line-height: 1.35;
}

.feed-title a {
color: var(--text);
text-decoration: none;
}

.feed-title a:hover {
color: var(--accent);
text-decoration: none;
}

.feed-meta-bottom {
font-size: 12px;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}

.meta-sep {
color: var(--border);
}

/ === PROMPT BLOCK === /
.prompt-block {
background: var(--prompt-bg);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 20px;
overflow: hidden;
}

.prompt-header {
padding: 10px 14px;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
color: var(--text-secondary);
font-size: 13px;
}

.prompt-header:hover {
background: #f0f0f0;
}

.prompt-icon { font-size: 15px; }
.prompt-label { font-weight: 600; color: var(--text-secondary); }
.prompt-preview {
color: var(--text-muted);
font-style: italic;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
font-size: 12px;
}
.prompt-arrow { font-size: 10px; color: var(--text-muted); }
.prompt-content {
border-top: 1px solid var(--border);
padding: 14px;
font-style: italic;
color: var(--text-secondary);
font-size: 14px;
}
.prompt-content p:first-child { margin-top: 0; }
.prompt-content p:last-child { margin-bottom: 0; }

/ === POST VIEW === /
.post-article { word-wrap: break-word; overflow-wrap: break-word; }
.post-hero { margin-bottom: 20px; }
.post-title {
font-size: 1.65em;
font-weight: 700;
line-height: 1.25;
margin-bottom: 8px;
word-break: break-word;
}
.post-byline {
font-size: 13px;
color: var(--text-muted);
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.byline-sep { color: var(--border); }

.post-body {
font-size: 17px;
line-height: 1.7;
}

/ Таблицы внутри поста /
.post-body table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
font-size: 13px;
overflow-x: auto;
display: block;
}
.post-body table th,
.post-body table td {
border: 1px solid var(--border);
padding: 6px 10px;
text-align: left;
}
.post-body table th {
background: #fafafa;
font-weight: 600;
font-size: 12px;
color: var(--text-secondary);
}

/ Код /
.post-body code {
background: var(--code-bg);
padding: 2px 5px;
border-radius: 3px;
font-family: "SF Mono", "Fira Code", Consolas, monospace;
font-size: 0.85em;
word-break: break-all;
}
.post-body pre {
background: var(--code-bg);
padding: 14px;
border-radius: var(--radius);
overflow-x: auto;
margin: 0.8em 0;
font-size: 13px;
line-height: 1.45;
}
.post-body pre code {
background: none;
padding: 0;
font-size: inherit;
word-break: normal;
}

.post-body blockquote {
border-left: 3px solid var(--accent);
padding-left: 14px;
color: var(--text-secondary);
margin: 0.8em 0;
font-style: italic;
}
.post-body img {
max-width: 100%;
height: auto;
border-radius: var(--radius);
}
.post-body hr {
border: none;
border-top: 1px solid var(--border);
margin: 1.5em 0;
}

/ === BADGES === /
.badge-public {
background: #f0fdf4;
color: #166534;
padding: 1px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
}
.badge-private {
background: #fef2f2;
color: #991b1b;
padding: 1px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
}

.owner-bar {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 28px;
padding-top: 16px;
border-top: 1px solid var(--border);
}

.back-link {
display: inline-block;
margin-top: 24px;
font-size: 14px;
color: var(--text-secondary);
}
.back-link a { color: var(--text-secondary); }
.back-link a:hover { color: var(--text); }

.empty-state {
text-align: center;
padding: 48px 20px;
color: var(--text-muted);
}
.empty-state p { margin: 6px 0; font-size: 15px; }

/ === FOOTER === /
.site-footer {
margin-top: 48px;
padding: 16px 0;
border-top: 1px solid var(--border);
text-align: center;
font-size: 12px;
color: var(--text-muted);
}

/ === RESPONSIVE === /
@media (max-width: 600px) {
body { font-size: 16px; }
.container { padding: 0 14px; }

.header-inner { gap: 4px; }
.site-logo { font-size: 16px; }
.nav-link { font-size: 13px; }

.post-body { font-size: 16px; }
.post-body pre { font-size: 12px; }
.post-body table { font-size: 11px; }

.feed-title { font-size: 16px; }
.feed-meta-top { gap: 4px; }
.action-icon { font-size: 13px; }

}
EOF

← Новая публикация