feat: restore sablog browse modes and clean imported HTML
Keep the public site readable after import (nbsp, highlighter, wrapping code, compact pager) and finish the admin extras already in this tree: sticky levels, preview, page cache, and live llms.txt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+509
-105
@@ -1,40 +1,112 @@
|
||||
/* ============ LaraLog 默认主题 ============ */
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
font-family:
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
|
||||
"Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
color: #333;
|
||||
background: #f5f6f8;
|
||||
}
|
||||
|
||||
a { color: #2d6cdf; text-decoration: none; }
|
||||
a:hover { color: #1a4fa8; }
|
||||
a {
|
||||
color: #2d6cdf;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #1a4fa8;
|
||||
}
|
||||
|
||||
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
|
||||
.container {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 18px 0; }
|
||||
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
|
||||
.site-title { font-size: 26px; font-weight: 800; color: #111; }
|
||||
.site-desc { font-size: 13px; color: #888; margin-top: 2px; }
|
||||
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; }
|
||||
.site-nav a.active { color: #2d6cdf; font-weight: 600; }
|
||||
.site-search input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 150px; }
|
||||
.inline-form { display: inline; }
|
||||
.link-btn { background: none; border: none; color: #2d6cdf; cursor: pointer; font-size: 15px; padding: 0; }
|
||||
.site-header {
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
padding: 18px 0;
|
||||
}
|
||||
.site-header .container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
.site-title {
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
color: #111;
|
||||
}
|
||||
.site-desc {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.site-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
font-size: 15px;
|
||||
}
|
||||
.site-nav a.active {
|
||||
color: #2d6cdf;
|
||||
font-weight: 600;
|
||||
}
|
||||
.site-search input {
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
width: 150px;
|
||||
}
|
||||
.inline-form {
|
||||
display: inline;
|
||||
}
|
||||
.link-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #2d6cdf;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Layout */
|
||||
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 24px 16px; align-items: start; }
|
||||
.main-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 320px;
|
||||
gap: 24px;
|
||||
padding: 24px 16px;
|
||||
align-items: start;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.main-layout { grid-template-columns: 1fr; }
|
||||
.main-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Content */
|
||||
.content { min-width: 0; }
|
||||
.content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.post-card, .post-full, .widget, .auth-box, .profile-box, .links-list {
|
||||
.post-card,
|
||||
.post-full,
|
||||
.widget,
|
||||
.auth-box,
|
||||
.profile-box,
|
||||
.links-list {
|
||||
background: #fff;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 10px;
|
||||
@@ -42,114 +114,446 @@ a:hover { color: #1a4fa8; }
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.post-card.sticky { border-left: 4px solid #f59e0b; }
|
||||
.post-card.sticky {
|
||||
border-left: 4px solid #f59e0b;
|
||||
}
|
||||
|
||||
.post-title { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
|
||||
.post-card .post-title a { color: #111; }
|
||||
.post-card .post-title a:hover { color: #2d6cdf; }
|
||||
.badge { background: #f59e0b; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
|
||||
.post-title {
|
||||
font-size: 20px;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.post-card .post-title a {
|
||||
color: #111;
|
||||
}
|
||||
.post-card .post-title a:hover {
|
||||
color: #2d6cdf;
|
||||
}
|
||||
.badge {
|
||||
background: #f59e0b;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
margin-right: 6px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.post-meta { font-size: 13px; color: #888; margin-bottom: 10px; }
|
||||
.post-excerpt { color: #555; margin-bottom: 10px; }
|
||||
.post-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
|
||||
.read-more { font-weight: 600; }
|
||||
.post-meta {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.post-excerpt {
|
||||
color: #555;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.post-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
font-size: 14px;
|
||||
}
|
||||
.read-more {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.post-full .post-title { font-size: 28px; }
|
||||
.post-cover { margin: -20px -24px 16px; border-radius: 10px 10px 0 0; overflow: hidden; }
|
||||
.post-cover img { width: 100%; height: auto; display: block; max-height: 420px; object-fit: cover; }
|
||||
.post-card .post-cover { margin: -20px -24px 12px; border-radius: 10px 10px 0 0; }
|
||||
.post-card .post-cover img { max-height: 260px; }
|
||||
.post-content { margin-top: 16px; font-size: 16.5px; }
|
||||
.post-content img { max-width: 100%; height: auto; border-radius: 6px; }
|
||||
.post-content pre { background: #1e1e2e; color: #e6e6e6; padding: 14px; border-radius: 8px; overflow-x: auto; margin: 12px 0; }
|
||||
.post-content code { background: #f0f1f3; padding: 2px 5px; border-radius: 4px; font-size: 14px; }
|
||||
.post-content pre code { background: none; padding: 0; }
|
||||
.post-content blockquote { border-left: 4px solid #2d6cdf; padding-left: 14px; color: #666; margin: 12px 0; }
|
||||
.post-content h1, .post-content h2, .post-content h3 { margin: 18px 0 8px; line-height: 1.3; }
|
||||
.post-content ul, .post-content ol { padding-left: 24px; margin: 8px 0; }
|
||||
.post-content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
|
||||
.post-content th, .post-content td { border: 1px solid #ddd; padding: 6px 10px; }
|
||||
.post-full .post-title {
|
||||
font-size: 28px;
|
||||
}
|
||||
.post-cover {
|
||||
margin: -20px -24px 16px;
|
||||
border-radius: 10px 10px 0 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.post-cover img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
max-height: 420px;
|
||||
object-fit: cover;
|
||||
}
|
||||
.post-card .post-cover {
|
||||
margin: -20px -24px 12px;
|
||||
border-radius: 10px 10px 0 0;
|
||||
}
|
||||
.post-card .post-cover img {
|
||||
max-height: 260px;
|
||||
}
|
||||
.post-content {
|
||||
margin-top: 16px;
|
||||
font-size: 16.5px;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.post-content pre,
|
||||
.post-content .codeText,
|
||||
.post-content ol[class^="dp-"] {
|
||||
background: #1e1e2e;
|
||||
color: #e6e6e6;
|
||||
padding: 14px;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
margin: 12px 0;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content code {
|
||||
background: #f0f1f3;
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
word-break: break-all;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
.post-content pre code {
|
||||
display: block;
|
||||
background: none;
|
||||
padding: 0;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content blockquote {
|
||||
border-left: 4px solid #2d6cdf;
|
||||
padding-left: 14px;
|
||||
color: #666;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.post-content h1,
|
||||
.post-content h2,
|
||||
.post-content h3 {
|
||||
margin: 18px 0 8px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.post-content ul,
|
||||
.post-content ol {
|
||||
padding-left: 24px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
.post-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.post-content th,
|
||||
.post-content td {
|
||||
border: 1px solid #ddd;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.post-tags { margin-top: 16px; }
|
||||
.tag-link { display: inline-block; background: #eef2ff; color: #3b5bdb; border-radius: 4px; padding: 2px 8px; font-size: 13px; margin: 2px 4px 2px 0; }
|
||||
.tag-link:hover { background: #dbe4ff; }
|
||||
.post-tags {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.tag-link {
|
||||
display: inline-block;
|
||||
background: #eef2ff;
|
||||
color: #3b5bdb;
|
||||
border-radius: 4px;
|
||||
padding: 2px 8px;
|
||||
font-size: 13px;
|
||||
margin: 2px 4px 2px 0;
|
||||
}
|
||||
.tag-link:hover {
|
||||
background: #dbe4ff;
|
||||
}
|
||||
|
||||
/* Comments */
|
||||
.comments-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
|
||||
.section-title { font-size: 18px; margin-bottom: 14px; }
|
||||
.comment { padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
|
||||
.comment:last-of-type { border-bottom: none; }
|
||||
.comment-head { font-size: 14px; margin-bottom: 4px; }
|
||||
.comment-time { color: #999; }
|
||||
.comment-body { font-size: 15px; color: #444; }
|
||||
.comments-section {
|
||||
background: #fff;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 10px;
|
||||
padding: 20px 24px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 18px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.comment {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #f0f1f3;
|
||||
}
|
||||
.comment:last-of-type {
|
||||
border-bottom: none;
|
||||
}
|
||||
.comment-head {
|
||||
font-size: 14px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.comment-time {
|
||||
color: #999;
|
||||
}
|
||||
.comment-body {
|
||||
font-size: 15px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.comment-form { margin-top: 16px; }
|
||||
.form-row { margin-bottom: 12px; }
|
||||
.form-row label { display: block; font-size: 14px; margin-bottom: 4px; }
|
||||
.form-row input, .form-row textarea {
|
||||
width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; font-family: inherit;
|
||||
.comment-form {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.form-row {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.form-row label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.form-row input,
|
||||
.form-row textarea {
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 6px;
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
}
|
||||
.honeypot {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
opacity: 0;
|
||||
}
|
||||
.error {
|
||||
color: #e03131;
|
||||
font-size: 13px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.honeypot { position: absolute; left: -9999px; opacity: 0; }
|
||||
.error { color: #e03131; font-size: 13px; margin-top: 4px; }
|
||||
|
||||
.btn {
|
||||
background: #2d6cdf; color: #fff; border: none; padding: 9px 20px; border-radius: 6px;
|
||||
font-size: 15px; cursor: pointer;
|
||||
background: #2d6cdf;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 9px 20px;
|
||||
border-radius: 6px;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn:hover {
|
||||
background: #1a4fa8;
|
||||
}
|
||||
.btn-primary {
|
||||
background: #2d6cdf;
|
||||
}
|
||||
.btn:hover { background: #1a4fa8; }
|
||||
.btn-primary { background: #2d6cdf; }
|
||||
|
||||
.alert { padding: 10px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
|
||||
.alert-success { background: #d3f9d8; color: #2b8a3e; }
|
||||
.alert-error { background: #ffe3e3; color: #c92a2a; }
|
||||
.alert {
|
||||
padding: 10px 16px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.alert-success {
|
||||
background: #d3f9d8;
|
||||
color: #2b8a3e;
|
||||
}
|
||||
.alert-error {
|
||||
background: #ffe3e3;
|
||||
color: #c92a2a;
|
||||
}
|
||||
.alert-warning {
|
||||
background: #fff3bf;
|
||||
color: #8a6d00;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar { position: sticky; top: 20px; }
|
||||
.widget { padding: 16px 20px; }
|
||||
.widget-title { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #2d6cdf; }
|
||||
.widget-list { list-style: none; }
|
||||
.widget-list li { font-size: 14px; padding: 4px 0; }
|
||||
.count { color: #aaa; font-size: 13px; }
|
||||
.tag-cloud { line-height: 2; }
|
||||
.tag-cloud.big { line-height: 2.4; }
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 20px;
|
||||
}
|
||||
.widget {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.widget-title {
|
||||
font-size: 15px;
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid #2d6cdf;
|
||||
}
|
||||
.widget-list {
|
||||
list-style: none;
|
||||
}
|
||||
.widget-list li {
|
||||
font-size: 14px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
.count {
|
||||
color: #aaa;
|
||||
font-size: 13px;
|
||||
}
|
||||
.tag-cloud {
|
||||
line-height: 2;
|
||||
}
|
||||
.tag-cloud.big {
|
||||
line-height: 2.4;
|
||||
}
|
||||
|
||||
/* Misc */
|
||||
.empty { color: #999; text-align: center; padding: 30px 0; }
|
||||
.list-title { font-size: 22px; margin-bottom: 16px; }
|
||||
.archive-year { font-size: 17px; margin: 14px 0 6px; }
|
||||
.archive-list { list-style: none; }
|
||||
.archive-posts { margin: 4px 0 10px 22px; }
|
||||
.archive-posts time { color: #aaa; font-size: 13px; }
|
||||
|
||||
.pagination { margin: 16px 0; }
|
||||
.pagination-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
||||
.pagination-links a, .pagination-links .current, .pagination-links .disabled {
|
||||
padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff;
|
||||
.empty {
|
||||
color: #999;
|
||||
text-align: center;
|
||||
padding: 30px 0;
|
||||
}
|
||||
.list-title {
|
||||
font-size: 22px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.archive-year {
|
||||
font-size: 17px;
|
||||
margin: 14px 0 6px;
|
||||
}
|
||||
.archive-list {
|
||||
list-style: none;
|
||||
}
|
||||
.archive-posts {
|
||||
margin: 4px 0 10px 22px;
|
||||
}
|
||||
.archive-posts time {
|
||||
color: #aaa;
|
||||
font-size: 13px;
|
||||
}
|
||||
.pagination-links .current { background: #2d6cdf; color: #fff; border-color: #2d6cdf; }
|
||||
.pagination-links .disabled { color: #bbb; }
|
||||
|
||||
.auth-layout { display: flex; justify-content: center; padding: 40px 16px; }
|
||||
.auth-box { width: 100%; max-width: 420px; }
|
||||
.auth-alt { margin-top: 14px; font-size: 14px; color: #666; text-align: center; }
|
||||
.view-mode-switcher {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.view-mode-switcher a.active {
|
||||
font-weight: 700;
|
||||
color: #2d6cdf;
|
||||
}
|
||||
|
||||
.links-list { list-style: none; }
|
||||
.links-list li { padding: 6px 0; }
|
||||
.link-note { color: #999; font-size: 14px; }
|
||||
.pagination {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
margin: 16px 0;
|
||||
}
|
||||
.pagination-links {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
}
|
||||
.pagination-info {
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
margin-right: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pagination-links a,
|
||||
.pagination-links .current,
|
||||
.pagination-links .disabled {
|
||||
padding: 6px 12px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
}
|
||||
.pagination-links .current {
|
||||
background: #2d6cdf;
|
||||
color: #fff;
|
||||
border-color: #2d6cdf;
|
||||
}
|
||||
.pagination-links .disabled {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.site-footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 20px 0; margin-top: 24px; text-align: center; font-size: 13px; color: #888; }
|
||||
.powered { margin-top: 4px; }
|
||||
.auth-layout {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 40px 16px;
|
||||
}
|
||||
.auth-box {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
}
|
||||
.auth-alt {
|
||||
margin-top: 14px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.links-list {
|
||||
list-style: none;
|
||||
}
|
||||
.links-list li {
|
||||
padding: 6px 0;
|
||||
}
|
||||
.link-note {
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
background: #fff;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
padding: 20px 0;
|
||||
margin-top: 24px;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
}
|
||||
.powered {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* TOC */
|
||||
.toc { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; font-size: 14px; }
|
||||
.toc summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
|
||||
.toc-list { list-style: none; }
|
||||
.toc-list li { padding: 2px 0; }
|
||||
.toc-list a { color: #555; }
|
||||
.toc-list a:hover { color: #2d6cdf; }
|
||||
.toc-level-2 { padding-left: 0; }
|
||||
.toc-level-3 { padding-left: 14px; }
|
||||
.toc-level-4, .toc-level-5, .toc-level-6 { padding-left: 28px; }
|
||||
.toc {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 8px;
|
||||
padding: 12px 16px;
|
||||
margin: 0 0 18px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.toc summary {
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.toc-list {
|
||||
list-style: none;
|
||||
}
|
||||
.toc-list li {
|
||||
padding: 2px 0;
|
||||
}
|
||||
.toc-list a {
|
||||
color: #555;
|
||||
}
|
||||
.toc-list a:hover {
|
||||
color: #2d6cdf;
|
||||
}
|
||||
.toc-level-2 {
|
||||
padding-left: 0;
|
||||
}
|
||||
.toc-level-3 {
|
||||
padding-left: 14px;
|
||||
}
|
||||
.toc-level-4,
|
||||
.toc-level-5,
|
||||
.toc-level-6 {
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
/* 屏幕阅读器专用(SEO h1 隐藏) */
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
+760
-72
@@ -17,88 +17,776 @@
|
||||
--border: #2c2c2c;
|
||||
}
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.8; }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { opacity: 0.8; }
|
||||
.m-container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family:
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
|
||||
"Microsoft YaHei", sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
/* 页面统一宽度:页头/页脚与主体对齐(默认视图的 .container 也落在这里) */
|
||||
.container,
|
||||
.m-container {
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.m-header { border-bottom: 1px solid var(--border); background: var(--card); }
|
||||
.m-header .m-container { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
|
||||
.m-logo { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: var(--text); }
|
||||
.m-nav { display: flex; gap: 18px; font-size: 14px; align-items: center; }
|
||||
.m-nav a.active { font-weight: 700; }
|
||||
.m-link-btn { background: none; border: none; color: var(--accent); font-size: 14px; cursor: pointer; padding: 0; }
|
||||
.inline-form { display: inline; }
|
||||
.m-header {
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--card);
|
||||
}
|
||||
.m-header .m-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 18px 20px;
|
||||
}
|
||||
.m-logo {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
color: var(--text);
|
||||
}
|
||||
.m-nav {
|
||||
display: flex;
|
||||
gap: 18px;
|
||||
font-size: 14px;
|
||||
align-items: center;
|
||||
}
|
||||
.m-nav a.active {
|
||||
font-weight: 700;
|
||||
}
|
||||
.m-link-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--accent);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
}
|
||||
.m-search input {
|
||||
padding: 7px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 14px;
|
||||
width: 140px;
|
||||
}
|
||||
.inline-form {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.main-layout { padding: 36px 20px; }
|
||||
.main-layout .content { max-width: 720px; margin: 0 auto; }
|
||||
.main-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 300px;
|
||||
gap: 32px;
|
||||
align-items: start;
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: 36px 20px;
|
||||
}
|
||||
.main-layout .content {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
.main-layout .sidebar {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.post-card, .post-full, .comments-section { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 30px; margin-bottom: 22px; }
|
||||
.post-card.sticky { box-shadow: inset 3px 0 0 var(--accent); }
|
||||
.post-title { font-size: 20px; margin-bottom: 8px; line-height: 1.45; }
|
||||
.post-card .post-title a { color: var(--text); }
|
||||
.badge { background: var(--accent); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }
|
||||
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
|
||||
.post-excerpt { color: var(--muted); }
|
||||
.post-footer { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
|
||||
.read-more { font-weight: 600; }
|
||||
.post-card,
|
||||
.post-full,
|
||||
.comments-section {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 26px 30px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.post-card.sticky {
|
||||
box-shadow: inset 3px 0 0 var(--accent);
|
||||
}
|
||||
.post-title {
|
||||
font-size: 20px;
|
||||
margin-bottom: 8px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.post-card .post-title a {
|
||||
color: var(--text);
|
||||
}
|
||||
.badge {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
padding: 2px 7px;
|
||||
border-radius: 3px;
|
||||
margin-right: 6px;
|
||||
vertical-align: 2px;
|
||||
}
|
||||
.post-meta {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.post-excerpt {
|
||||
color: var(--muted);
|
||||
}
|
||||
.post-footer {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
font-size: 14px;
|
||||
}
|
||||
.read-more {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.post-full .post-title { font-size: 28px; }
|
||||
.post-content { margin-top: 14px; }
|
||||
.post-content img { max-width: 100%; border-radius: 8px; }
|
||||
.post-content pre { background: #0d1117; color: #c9d1d9; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 14px 0; }
|
||||
.post-content code { background: rgba(128,128,128,.15); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
|
||||
.post-content pre code { background: none; padding: 0; }
|
||||
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--muted); margin: 14px 0; }
|
||||
.post-content h1, .post-content h2, .post-content h3 { margin: 20px 0 8px; }
|
||||
.post-full .post-title {
|
||||
font-size: 28px;
|
||||
}
|
||||
.post-content {
|
||||
margin-top: 14px;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.post-content pre,
|
||||
.post-content .codeText,
|
||||
.post-content ol[class^="dp-"] {
|
||||
background: #0d1117;
|
||||
color: #c9d1d9;
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
margin: 14px 0;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content code {
|
||||
background: rgba(128, 128, 128, 0.15);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
word-break: break-all;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
.post-content pre code {
|
||||
display: block;
|
||||
background: none;
|
||||
padding: 0;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content blockquote {
|
||||
border-left: 3px solid var(--accent);
|
||||
padding-left: 16px;
|
||||
color: var(--muted);
|
||||
margin: 14px 0;
|
||||
}
|
||||
.post-content h1,
|
||||
.post-content h2,
|
||||
.post-content h3 {
|
||||
margin: 20px 0 8px;
|
||||
}
|
||||
|
||||
.post-cover { margin: -26px -30px 18px; border-radius: 12px 12px 0 0; overflow: hidden; }
|
||||
.post-cover img { width: 100%; display: block; max-height: 380px; object-fit: cover; }
|
||||
.post-cover {
|
||||
margin: -26px -30px 18px;
|
||||
border-radius: 12px 12px 0 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.post-cover img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
max-height: 380px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.tag-link { color: var(--accent); font-size: 14px; margin-right: 8px; }
|
||||
.tag-link {
|
||||
color: var(--accent);
|
||||
font-size: 14px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.comments-section { margin-top: 8px; }
|
||||
.section-title { font-size: 17px; margin-bottom: 14px; }
|
||||
.comment { padding: 12px 0; border-bottom: 1px solid var(--border); }
|
||||
.comment:last-of-type { border-bottom: none; }
|
||||
.comment-head { font-size: 14px; margin-bottom: 4px; }
|
||||
.comment-time { color: var(--muted); font-size: 13px; }
|
||||
.comment-body { color: var(--text); font-size: 15px; }
|
||||
.comment-form { margin-top: 14px; }
|
||||
.form-row { margin-bottom: 12px; }
|
||||
.form-row label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--muted); }
|
||||
.form-row input, .form-row textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit; }
|
||||
.honeypot { position: absolute; left: -9999px; opacity: 0; }
|
||||
.error { color: var(--accent); font-size: 13px; }
|
||||
.btn { background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 15px; cursor: pointer; }
|
||||
.alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
|
||||
.alert-success { background: rgba(46,160,67,.12); color: #2ea043; }
|
||||
.alert-error { background: rgba(248,81,73,.12); color: #f85149; }
|
||||
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
|
||||
.comments-section {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 17px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.comment {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.comment:last-of-type {
|
||||
border-bottom: none;
|
||||
}
|
||||
.comment-head {
|
||||
font-size: 14px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.comment-time {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.comment-body {
|
||||
color: var(--text);
|
||||
font-size: 15px;
|
||||
}
|
||||
.comment-form {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.form-row {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.form-row label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
margin-bottom: 4px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.form-row input,
|
||||
.form-row textarea {
|
||||
width: 100%;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
}
|
||||
.honeypot {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
opacity: 0;
|
||||
}
|
||||
.error {
|
||||
color: var(--accent);
|
||||
font-size: 13px;
|
||||
}
|
||||
.btn {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 24px;
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.alert {
|
||||
padding: 12px 18px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.alert-success {
|
||||
background: rgba(46, 160, 67, 0.12);
|
||||
color: #2ea043;
|
||||
}
|
||||
.alert-error {
|
||||
background: rgba(248, 81, 73, 0.12);
|
||||
color: #f85149;
|
||||
}
|
||||
.alert-warning {
|
||||
background: rgba(210, 153, 34, 0.12);
|
||||
color: #9a6700;
|
||||
}
|
||||
.empty {
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.list-title { font-size: 24px; margin-bottom: 20px; }
|
||||
.list-title {
|
||||
font-size: 24px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.archive-year { font-size: 16px; margin: 16px 0 6px; }
|
||||
.archive-list { list-style: none; }
|
||||
.archive-posts { margin: 4px 0 12px 22px; }
|
||||
.archive-posts time { color: var(--muted); font-size: 13px; }
|
||||
.archive-year {
|
||||
font-size: 16px;
|
||||
margin: 16px 0 6px;
|
||||
}
|
||||
.archive-list {
|
||||
list-style: none;
|
||||
}
|
||||
.archive-posts {
|
||||
margin: 4px 0 12px 22px;
|
||||
}
|
||||
.archive-posts time {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pagination { margin: 16px 0; }
|
||||
.pagination-links { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.pagination-links a, .pagination-links .current, .pagination-links .disabled { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: var(--card); color: var(--text); }
|
||||
.pagination-links .current { background: var(--accent); color: #fff; border-color: var(--accent); }
|
||||
.pagination-links .disabled { color: var(--muted); }
|
||||
.view-mode-switcher {
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.view-mode-switcher a.active {
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.m-footer { border-top: 1px solid var(--border); padding: 26px 0 40px; margin-top: 30px; text-align: center; color: var(--muted); font-size: 13px; }
|
||||
.pagination {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
margin: 16px 0;
|
||||
}
|
||||
.pagination-links {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
}
|
||||
.pagination-info {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
margin-right: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pagination-links a,
|
||||
.pagination-links .current,
|
||||
.pagination-links .disabled {
|
||||
padding: 6px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
background: var(--card);
|
||||
color: var(--text);
|
||||
}
|
||||
.pagination-links .current {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.pagination-links .disabled {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.tag-cloud.big { line-height: 2.4; }
|
||||
.links-list { list-style: none; }
|
||||
.links-list li { padding: 6px 0; }
|
||||
.link-note { color: var(--muted); font-size: 14px; }
|
||||
.m-footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 26px 0 40px;
|
||||
margin-top: 30px;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.auth-layout { display: flex; justify-content: center; padding: 50px 20px; }
|
||||
.auth-box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
|
||||
.auth-alt { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
|
||||
.search-form { margin-bottom: 16px; display: flex; gap: 8px; }
|
||||
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 15px; }
|
||||
.tag-cloud.big {
|
||||
line-height: 2.4;
|
||||
}
|
||||
.links-list {
|
||||
list-style: none;
|
||||
}
|
||||
.links-list li {
|
||||
padding: 6px 0;
|
||||
}
|
||||
.link-note {
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.auth-layout {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 50px 20px;
|
||||
}
|
||||
.auth-box {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 30px;
|
||||
}
|
||||
.auth-alt {
|
||||
margin-top: 14px;
|
||||
font-size: 14px;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
.search-form {
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.search-form input {
|
||||
flex: 1;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* ============ 侧边栏 ============ */
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 20px;
|
||||
}
|
||||
.widget {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 18px 20px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.widget-title {
|
||||
font-size: 15px;
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
.widget-list {
|
||||
list-style: none;
|
||||
}
|
||||
.widget-list li {
|
||||
font-size: 14px;
|
||||
padding: 5px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* 社交账号:横向胶囊列表 */
|
||||
.social-links {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
.social-links li {
|
||||
font-size: 12px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
.widget-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.count {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.tag-cloud {
|
||||
line-height: 2;
|
||||
}
|
||||
.tag-cloud a {
|
||||
display: inline-block;
|
||||
}
|
||||
.tag-cloud.big {
|
||||
line-height: 2.4;
|
||||
}
|
||||
|
||||
/* ============ 顶栏搜索(默认 header partial) ============ */
|
||||
.site-search input {
|
||||
padding: 7px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 14px;
|
||||
width: 160px;
|
||||
}
|
||||
.link-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--accent);
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* ============ 文章正文补充 ============ */
|
||||
.post-tags {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.post-content ul,
|
||||
.post-content ol {
|
||||
padding-left: 24px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
.post-content h4,
|
||||
.post-content h5,
|
||||
.post-content h6 {
|
||||
margin: 16px 0 6px;
|
||||
}
|
||||
.post-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.post-content th,
|
||||
.post-content td {
|
||||
border: 1px solid var(--border);
|
||||
padding: 6px 10px;
|
||||
}
|
||||
.post-content hr {
|
||||
border: none;
|
||||
border-top: 1px solid var(--border);
|
||||
margin: 18px 0;
|
||||
}
|
||||
|
||||
/* ============ 个人中心 ============ */
|
||||
.profile-box {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 24px 28px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.profile-box p {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* ============ 按钮变体 ============ */
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
}
|
||||
.btn:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* ============ 会员/支付 ============ */
|
||||
.plans-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.plan-card .plan-price {
|
||||
font-size: 26px;
|
||||
font-weight: 800;
|
||||
color: var(--accent);
|
||||
}
|
||||
.paid-teaser {
|
||||
background: rgba(248, 81, 73, 0.08);
|
||||
border: 1px dashed var(--accent);
|
||||
border-radius: 8px;
|
||||
padding: 12px 16px;
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
/* ============ 移动端适配 ============ */
|
||||
@media (max-width: 768px) {
|
||||
.m-header .m-container {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.m-nav {
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
}
|
||||
.m-search {
|
||||
flex: 1;
|
||||
min-width: 100%;
|
||||
}
|
||||
.m-search input {
|
||||
width: 100%;
|
||||
}
|
||||
.main-layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
padding: 24px 16px;
|
||||
}
|
||||
.main-layout .content {
|
||||
max-width: 100%;
|
||||
}
|
||||
.main-layout .sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
.post-card,
|
||||
.post-full,
|
||||
.comments-section {
|
||||
padding: 20px;
|
||||
}
|
||||
.post-cover {
|
||||
margin: -20px -20px 16px;
|
||||
}
|
||||
.post-full .post-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
.auth-box {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
.pagination-links {
|
||||
gap: 6px;
|
||||
}
|
||||
.pagination-links a,
|
||||
.pagination-links .current,
|
||||
.pagination-links .disabled {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* TOC */
|
||||
.toc {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 14px 18px;
|
||||
margin: 0 0 18px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.toc summary {
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.toc-list {
|
||||
list-style: none;
|
||||
}
|
||||
.toc-list li {
|
||||
padding: 3px 0;
|
||||
}
|
||||
.toc-list a {
|
||||
color: var(--muted);
|
||||
}
|
||||
.toc-list a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
.toc-level-3 {
|
||||
padding-left: 14px;
|
||||
}
|
||||
.toc-level-4,
|
||||
.toc-level-5,
|
||||
.toc-level-6 {
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Paywall */
|
||||
.paywall {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 28px 22px;
|
||||
background: var(--bg);
|
||||
text-align: center;
|
||||
}
|
||||
.paywall-cover img {
|
||||
max-width: 100%;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.paywall-title {
|
||||
font-size: 22px;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.paywall-excerpt {
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
.paywall-price {
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
color: var(--accent);
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.paywall-hint {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
margin: 0 0 18px;
|
||||
}
|
||||
.paywall-actions .btn {
|
||||
margin: 0 6px;
|
||||
}
|
||||
.paid-teaser {
|
||||
border: 1px dashed var(--border);
|
||||
background: var(--bg-muted, #f6f6f6);
|
||||
color: var(--muted);
|
||||
border-radius: 10px;
|
||||
padding: 14px 16px;
|
||||
margin: 14px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
.paid-teaser .btn {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
/* 已解锁的付费内容块 */
|
||||
.paid-content {
|
||||
border: 1px solid var(--border);
|
||||
border-left: 4px solid var(--accent);
|
||||
background: var(--bg);
|
||||
border-radius: 10px;
|
||||
padding: 14px 16px;
|
||||
margin: 14px 0;
|
||||
}
|
||||
.paid-content-label {
|
||||
font-size: 12px;
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
/* 分类页介绍区 */
|
||||
.category-intro {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
align-items: flex-start;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 16px 18px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.category-cover {
|
||||
width: 128px;
|
||||
height: 84px;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.category-description {
|
||||
margin: 0 0 6px;
|
||||
font-size: 14px;
|
||||
color: var(--muted);
|
||||
line-height: 1.7;
|
||||
}
|
||||
.category-meta {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
+657
-81
@@ -1,115 +1,691 @@
|
||||
/* ============ Sablog 经典主题 ============ */
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #eef2f5 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==) repeat-x top;
|
||||
background: #eef2f5
|
||||
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==)
|
||||
repeat-x top;
|
||||
font-family: Verdana, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
a { color: #1c62b0; text-decoration: none; }
|
||||
a:hover { color: #f60; text-decoration: underline; }
|
||||
a {
|
||||
color: #1c62b0;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #f60;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#outmain { width: 960px; margin: 0 auto; }
|
||||
#outmain {
|
||||
width: 960px;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#header { padding: 22px 10px 8px; }
|
||||
.logo a { font-size: 30px; font-weight: bold; color: #1c62b0; font-family: Georgia, serif; }
|
||||
.logo .description { color: #888; font-size: 12px; }
|
||||
#header {
|
||||
padding: 22px 10px 8px;
|
||||
}
|
||||
.logo a {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
color: #1c62b0;
|
||||
font-family: Georgia, serif;
|
||||
}
|
||||
.logo .description {
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#nav { margin-top: 14px; border-top: 1px solid #d8dfe6; border-bottom: 1px solid #d8dfe6; background: #f7f9fb; }
|
||||
#nav ul { list-style: none; display: flex; flex-wrap: wrap; }
|
||||
#nav li { border-right: 1px solid #d8dfe6; }
|
||||
#nav a { display: block; padding: 7px 18px; color: #333; font-weight: bold; font-size: 13px; }
|
||||
#nav a:hover { background: #1c62b0; color: #fff; text-decoration: none; }
|
||||
#nav .current_page_item a { background: #1c62b0; color: #fff; }
|
||||
#nav {
|
||||
margin-top: 14px;
|
||||
border-top: 1px solid #d8dfe6;
|
||||
border-bottom: 1px solid #d8dfe6;
|
||||
background: #f7f9fb;
|
||||
}
|
||||
#nav ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#nav li {
|
||||
border-right: 1px solid #d8dfe6;
|
||||
}
|
||||
#nav a {
|
||||
display: block;
|
||||
padding: 7px 18px;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
}
|
||||
#nav a:hover {
|
||||
background: #1c62b0;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
#nav .current_page_item a {
|
||||
background: #1c62b0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#page { padding: 14px 10px; display: flex; gap: 18px; align-items: flex-start; }
|
||||
#page {
|
||||
padding: 14px 10px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 280px;
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#content { flex: 1; min-width: 0; }
|
||||
#content {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.post-card, .post-full, .comments-section, .auth-box, .profile-box, .links-list {
|
||||
.post-card,
|
||||
.post-full,
|
||||
.comments-section,
|
||||
.auth-box,
|
||||
.profile-box,
|
||||
.links-list {
|
||||
background: #fff;
|
||||
border: 1px solid #d8dfe6;
|
||||
padding: 18px 20px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.post-card.sticky { border-left: 4px solid #f60; }
|
||||
.post-title { font-size: 17px; margin-bottom: 6px; line-height: 1.4; }
|
||||
.post-card .post-title a { color: #1c62b0; }
|
||||
.badge { background: #f60; color: #fff; font-size: 11px; padding: 1px 5px; margin-right: 5px; }
|
||||
.post-meta { color: #999; font-size: 12px; margin-bottom: 8px; }
|
||||
.post-excerpt { color: #555; margin-bottom: 8px; }
|
||||
.post-footer { font-size: 12px; }
|
||||
.tag-link { color: #1c62b0; margin-right: 8px; }
|
||||
.post-card.sticky {
|
||||
border-left: 4px solid #f60;
|
||||
}
|
||||
.post-title {
|
||||
font-size: 17px;
|
||||
margin-bottom: 6px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.post-card .post-title a {
|
||||
color: #1c62b0;
|
||||
}
|
||||
.badge {
|
||||
background: #f60;
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
padding: 1px 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.post-meta {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.post-excerpt {
|
||||
color: #555;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.post-footer {
|
||||
font-size: 12px;
|
||||
}
|
||||
.tag-link {
|
||||
color: #1c62b0;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.post-full .post-title { font-size: 22px; color: #1c62b0; }
|
||||
.post-content { margin-top: 10px; font-size: 14px; }
|
||||
.post-content img { max-width: 100%; }
|
||||
.post-content pre { background: #f4f4f4; border: 1px solid #ddd; padding: 10px; overflow: auto; margin: 10px 0; }
|
||||
.post-content blockquote { border-left: 4px solid #1c62b0; padding-left: 12px; color: #666; margin: 10px 0; }
|
||||
.post-content h1, .post-content h2, .post-content h3 { margin: 14px 0 6px; }
|
||||
.post-full .post-title {
|
||||
font-size: 22px;
|
||||
color: #1c62b0;
|
||||
}
|
||||
.post-content {
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.post-content pre,
|
||||
.post-content .codeText,
|
||||
.post-content ol[class^="dp-"] {
|
||||
background: #f4f4f4;
|
||||
border: 1px solid #ddd;
|
||||
border-left: 3px solid #b3cbe1;
|
||||
padding: 10px;
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
margin: 10px 0;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content code {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
word-break: break-all;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: break-spaces;
|
||||
}
|
||||
.post-content pre code {
|
||||
display: block;
|
||||
background: none;
|
||||
padding: 0;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content .codeText li {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
.post-content blockquote {
|
||||
border-left: 4px solid #1c62b0;
|
||||
padding-left: 12px;
|
||||
color: #666;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.post-content h1,
|
||||
.post-content h2,
|
||||
.post-content h3 {
|
||||
margin: 14px 0 6px;
|
||||
}
|
||||
|
||||
.post-cover { margin: -18px -20px 12px; }
|
||||
.post-cover img { width: 100%; display: block; max-height: 320px; object-fit: cover; }
|
||||
.post-cover {
|
||||
margin: -18px -20px 12px;
|
||||
}
|
||||
.post-cover img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
max-height: 320px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.comment { padding: 10px 0; border-bottom: 1px dashed #ddd; }
|
||||
.comment-head { font-size: 12px; margin-bottom: 3px; }
|
||||
.comment-time { color: #999; }
|
||||
.comment-body { font-size: 13px; }
|
||||
.comment-form { margin-top: 12px; }
|
||||
.form-row { margin-bottom: 8px; }
|
||||
.form-row label { display: block; font-size: 12px; margin-bottom: 3px; }
|
||||
.form-row input, .form-row textarea { width: 100%; padding: 6px 8px; border: 1px solid #ccc; font-size: 13px; font-family: inherit; }
|
||||
.honeypot { position: absolute; left: -9999px; opacity: 0; }
|
||||
.btn { background: #1c62b0; color: #fff; border: none; padding: 7px 18px; font-size: 13px; cursor: pointer; }
|
||||
.btn:hover { background: #f60; }
|
||||
.error { color: #c00; font-size: 12px; }
|
||||
.alert { padding: 8px 12px; margin-bottom: 12px; border: 1px solid; }
|
||||
.alert-success { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
|
||||
.alert-error { background: #fdecea; border-color: #f5c6cb; color: #c62828; }
|
||||
.empty { color: #999; text-align: center; padding: 20px 0; }
|
||||
.list-title { font-size: 18px; margin-bottom: 12px; color: #1c62b0; }
|
||||
.comment {
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px dashed #ddd;
|
||||
}
|
||||
.comment-head {
|
||||
font-size: 12px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.comment-time {
|
||||
color: #999;
|
||||
}
|
||||
.comment-body {
|
||||
font-size: 13px;
|
||||
}
|
||||
.comment-form {
|
||||
margin-top: 12px;
|
||||
}
|
||||
.form-row {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.form-row label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.form-row input,
|
||||
.form-row textarea {
|
||||
width: 100%;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid #ccc;
|
||||
font-size: 13px;
|
||||
font-family: inherit;
|
||||
}
|
||||
.honeypot {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
opacity: 0;
|
||||
}
|
||||
.btn {
|
||||
background: #1c62b0;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 7px 18px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn:hover {
|
||||
background: #f60;
|
||||
}
|
||||
.error {
|
||||
color: #c00;
|
||||
font-size: 12px;
|
||||
}
|
||||
.alert {
|
||||
padding: 8px 12px;
|
||||
margin-bottom: 12px;
|
||||
border: 1px solid;
|
||||
}
|
||||
.alert-success {
|
||||
background: #e8f5e9;
|
||||
border-color: #a5d6a7;
|
||||
color: #2e7d32;
|
||||
}
|
||||
.alert-error {
|
||||
background: #fdecea;
|
||||
border-color: #f5c6cb;
|
||||
color: #c62828;
|
||||
}
|
||||
.alert-warning {
|
||||
background: #fff8e1;
|
||||
border-color: #ffe082;
|
||||
color: #8a6d00;
|
||||
}
|
||||
.empty {
|
||||
color: #999;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.list-title {
|
||||
font-size: 18px;
|
||||
margin-bottom: 12px;
|
||||
color: #1c62b0;
|
||||
}
|
||||
|
||||
.view-mode-switcher {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #d8dfe6;
|
||||
}
|
||||
.view-mode-switcher a.active {
|
||||
font-weight: 700;
|
||||
color: #1c62b0;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar { width: 280px; flex-shrink: 0; }
|
||||
.sidebar .searchbox { background: #fff; border: 1px solid #d8dfe6; padding: 10px; margin-bottom: 14px; }
|
||||
.sidebar .searchbox input[type=search] { width: 180px; padding: 4px; border: 1px solid #ccc; }
|
||||
.sidebar .widget { background: #fff; border: 1px solid #d8dfe6; margin-bottom: 14px; }
|
||||
.sidebar .widget h3 { background: #f7f9fb; border-bottom: 1px solid #d8dfe6; font-size: 13px; padding: 7px 12px; color: #1c62b0; }
|
||||
.sidebar .widget ul { list-style: none; padding: 6px 12px; }
|
||||
.sidebar .widget li { padding: 3px 0; font-size: 12px; border-bottom: 1px dotted #eee; }
|
||||
.sidebar .tagcloud { padding: 8px 12px; }
|
||||
.sidebar .tagcloud a { color: #1c62b0; margin-right: 6px; }
|
||||
.sidebar {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
}
|
||||
.sidebar .searchbox {
|
||||
background: #fff;
|
||||
border: 1px solid #d8dfe6;
|
||||
padding: 10px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.sidebar .searchbox input[type="search"] {
|
||||
width: 180px;
|
||||
padding: 4px;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
.sidebar .widget {
|
||||
background: #fff;
|
||||
border: 1px solid #d8dfe6;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.sidebar .widget h3 {
|
||||
background: #f7f9fb;
|
||||
border-bottom: 1px solid #d8dfe6;
|
||||
font-size: 13px;
|
||||
padding: 7px 12px;
|
||||
color: #1c62b0;
|
||||
}
|
||||
.sidebar .widget ul {
|
||||
list-style: none;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.sidebar .widget li {
|
||||
padding: 3px 0;
|
||||
font-size: 12px;
|
||||
border-bottom: 1px dotted #eee;
|
||||
}
|
||||
.sidebar .tagcloud {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.sidebar .tagcloud a {
|
||||
color: #1c62b0;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
/* 兜底页面(归档/标签云/友链/评论/登录等使用默认布局) */
|
||||
.main-layout { display: flex; gap: 18px; align-items: flex-start; padding: 14px 10px; }
|
||||
.main-layout .content { flex: 1; min-width: 0; }
|
||||
.main-layout .sidebar { width: 280px; }
|
||||
.container.main-layout {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.main-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 280px;
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
padding: 14px 10px;
|
||||
}
|
||||
.main-layout .content {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
.main-layout .sidebar {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.pagination-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
|
||||
.pagination-links a, .pagination-links .current, .pagination-links .disabled { padding: 4px 10px; border: 1px solid #d8dfe6; background: #fff; font-size: 12px; }
|
||||
.pagination-links .current { background: #1c62b0; color: #fff; }
|
||||
.pagination {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.pagination-links {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.pagination-info {
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
margin-right: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pagination-links a,
|
||||
.pagination-links .current,
|
||||
.pagination-links .disabled {
|
||||
padding: 2px 7px;
|
||||
border: 1px solid #d8dfe6;
|
||||
background: #fff;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.pagination-links .current {
|
||||
background: #1c62b0;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#footer { clear: both; text-align: center; padding: 14px 0 24px; color: #888; font-size: 12px; }
|
||||
#footer a { color: #1c62b0; }
|
||||
#footer {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
padding: 14px 0 24px;
|
||||
color: #888;
|
||||
font-size: 12px;
|
||||
}
|
||||
#footer a {
|
||||
color: #1c62b0;
|
||||
}
|
||||
|
||||
.archive-year { font-size: 15px; margin: 12px 0 4px; color: #1c62b0; }
|
||||
.archive-list { list-style: none; }
|
||||
.archive-posts { margin: 4px 0 10px 20px; }
|
||||
.archive-year {
|
||||
font-size: 15px;
|
||||
margin: 12px 0 4px;
|
||||
color: #1c62b0;
|
||||
}
|
||||
.archive-list {
|
||||
list-style: none;
|
||||
}
|
||||
.archive-posts {
|
||||
margin: 4px 0 10px 20px;
|
||||
}
|
||||
|
||||
.links-list { list-style: none; }
|
||||
.links-list li { padding: 5px 0; }
|
||||
.link-note { color: #999; }
|
||||
.links-list {
|
||||
list-style: none;
|
||||
}
|
||||
.links-list li {
|
||||
padding: 5px 0;
|
||||
}
|
||||
.link-note {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.tag-cloud.big { line-height: 2.4; }
|
||||
.tag-cloud.big {
|
||||
line-height: 2.4;
|
||||
}
|
||||
|
||||
.auth-layout { display: flex; justify-content: center; padding: 30px 10px; }
|
||||
.auth-box { width: 100%; max-width: 420px; }
|
||||
.auth-alt { margin-top: 12px; font-size: 12px; }
|
||||
.search-form { margin-bottom: 12px; }
|
||||
.search-form input { padding: 5px; border: 1px solid #ccc; width: 220px; }
|
||||
.auth-layout {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 30px 10px;
|
||||
}
|
||||
.auth-box {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
}
|
||||
.auth-alt {
|
||||
margin-top: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.search-form {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.search-form input {
|
||||
padding: 5px;
|
||||
border: 1px solid #ccc;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.inline-form { display: inline; }
|
||||
.link-btn { background: none; border: none; color: #1c62b0; cursor: pointer; font-size: 13px; padding: 0; font-weight: bold; }
|
||||
.inline-form {
|
||||
display: inline;
|
||||
}
|
||||
.link-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #1c62b0;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
padding: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* ============ 移动端适配 ============ */
|
||||
@media (max-width: 768px) {
|
||||
#outmain {
|
||||
width: 100%;
|
||||
}
|
||||
#header {
|
||||
padding: 14px 10px;
|
||||
}
|
||||
.logo a {
|
||||
font-size: 24px;
|
||||
}
|
||||
#nav ul {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
#nav a {
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
#page {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
#content {
|
||||
width: 100%;
|
||||
}
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
.main-layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.main-layout .content {
|
||||
width: 100%;
|
||||
}
|
||||
.main-layout .sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
.sidebar .searchbox input[type="search"] {
|
||||
width: 70%;
|
||||
}
|
||||
.post-card,
|
||||
.post-full,
|
||||
.comments-section {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
.post-cover {
|
||||
margin: -14px -16px 12px;
|
||||
}
|
||||
.post-full .post-title {
|
||||
font-size: 22px;
|
||||
}
|
||||
.archive-posts {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* TOC */
|
||||
.toc {
|
||||
background: #f7f9fb;
|
||||
border: 1px solid #d8dfe6;
|
||||
padding: 10px 14px;
|
||||
margin: 0 0 14px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.toc summary {
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.toc-list {
|
||||
list-style: none;
|
||||
}
|
||||
.toc-list li {
|
||||
padding: 2px 0;
|
||||
}
|
||||
.toc-level-3 {
|
||||
padding-left: 14px;
|
||||
}
|
||||
.toc-level-4,
|
||||
.toc-level-5,
|
||||
.toc-level-6 {
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Paywall */
|
||||
.paywall {
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
padding: 24px 20px;
|
||||
background: #fafafa;
|
||||
text-align: center;
|
||||
}
|
||||
.paywall-cover img {
|
||||
max-width: 100%;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.paywall-title {
|
||||
font-size: 20px;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
.paywall-excerpt {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
margin: 0 0 14px;
|
||||
}
|
||||
.paywall-price {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
color: #f60;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.paywall-hint {
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
.paywall-actions .btn {
|
||||
margin: 0 6px;
|
||||
}
|
||||
.paid-teaser {
|
||||
border: 1px dashed #f5c6cb;
|
||||
background: #fdecea;
|
||||
color: #c62828;
|
||||
border-radius: 6px;
|
||||
padding: 12px 14px;
|
||||
margin: 12px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
.paid-teaser .btn {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
/* 阅读全文链接 */
|
||||
.read-more {
|
||||
display: inline-block;
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
color: #1c62b0;
|
||||
}
|
||||
.read-more:hover {
|
||||
color: #f60;
|
||||
}
|
||||
|
||||
/* 社交账号:横向胶囊列表 */
|
||||
.social-links {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.social-links li {
|
||||
font-size: 12px;
|
||||
background: #f7f9fb;
|
||||
border: 1px solid #d8dfe6;
|
||||
border-radius: 999px;
|
||||
padding: 3px 10px;
|
||||
}
|
||||
|
||||
/* 已解锁的付费内容块 */
|
||||
.paid-content {
|
||||
border: 1px dashed #f5c6cb;
|
||||
border-left: 4px solid #f60;
|
||||
background: #fff8f0;
|
||||
border-radius: 6px;
|
||||
padding: 12px 14px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.paid-content-label {
|
||||
font-size: 12px;
|
||||
color: #f60;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
/* 分类页介绍区 */
|
||||
.category-intro {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
align-items: flex-start;
|
||||
background: #fff;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
padding: 14px 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.category-cover {
|
||||
width: 120px;
|
||||
height: 80px;
|
||||
object-fit: cover;
|
||||
border-radius: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.category-description {
|
||||
margin: 0 0 6px;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.category-meta {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user