mirror of
https://github.com/comeonzhj/Auto-Redbook-Skills.git
synced 2026-03-27 12:49:27 +08:00
refactor md2Redbook skill with themes and paging
This commit is contained in:
170
assets/themes/default.css
Normal file
170
assets/themes/default.css
Normal file
@@ -0,0 +1,170 @@
|
||||
/* ============================================
|
||||
Default - 默认风格
|
||||
小红书原生风格,渐变紫色背景
|
||||
适配小红书卡片渲染
|
||||
============================================ */
|
||||
|
||||
/* 配色定义
|
||||
背景色: #FFFFFF (白色卡片)
|
||||
前景色: #475569 (中性灰)
|
||||
主色: #6366f1 (靛蓝紫)
|
||||
浅紫: #8b5cf6 (紫罗兰)
|
||||
灰色: #64748b (石板灰)
|
||||
边框: #e2e8f0 (浅灰边框)
|
||||
*/
|
||||
|
||||
.card-content {
|
||||
color: #475569;
|
||||
background-color: #ffffff;
|
||||
font-size: 42px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
/* 标题样式 */
|
||||
.card-content h1 {
|
||||
font-size: 72px;
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
margin-bottom: 40px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.card-content h2 {
|
||||
font-size: 56px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
margin: 50px 0 25px 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.card-content h3 {
|
||||
font-size: 48px;
|
||||
font-weight: 600;
|
||||
color: #475569;
|
||||
margin: 40px 0 20px 0;
|
||||
}
|
||||
|
||||
/* 段落 */
|
||||
.card-content p {
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
/* 粗体 */
|
||||
.card-content strong,
|
||||
.card-content b {
|
||||
font-weight: 700;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
/* 斜体 */
|
||||
.card-content em,
|
||||
.card-content i {
|
||||
font-style: italic;
|
||||
color: #6366f1;
|
||||
}
|
||||
|
||||
/* 链接 */
|
||||
.card-content a {
|
||||
color: #6366f1;
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid #6366f1;
|
||||
}
|
||||
|
||||
/* 列表 */
|
||||
.card-content ul,
|
||||
.card-content ol {
|
||||
margin: 30px 0;
|
||||
padding-left: 60px;
|
||||
}
|
||||
|
||||
.card-content li {
|
||||
margin-bottom: 20px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 引用块 */
|
||||
.card-content blockquote {
|
||||
border-left: 8px solid #6366f1;
|
||||
padding-left: 40px;
|
||||
background: #f1f5f9;
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
padding-right: 30px;
|
||||
margin: 35px 0;
|
||||
color: #64748b;
|
||||
font-style: italic;
|
||||
border-radius: 0 12px 12px 0;
|
||||
}
|
||||
|
||||
.card-content blockquote p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 行内代码 */
|
||||
.card-content code {
|
||||
background: #f1f5f9;
|
||||
padding: 6px 16px;
|
||||
border-radius: 8px;
|
||||
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
||||
font-size: 38px;
|
||||
color: #6366f1;
|
||||
}
|
||||
|
||||
/* 代码块 */
|
||||
.card-content pre {
|
||||
background: #1e293b;
|
||||
color: #e2e8f0;
|
||||
padding: 40px;
|
||||
border-radius: 16px;
|
||||
margin: 35px 0;
|
||||
overflow-x: visible;
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
font-size: 36px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.card-content pre code {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
/* 图片 */
|
||||
.card-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 16px;
|
||||
margin: 35px auto;
|
||||
display: block;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 分割线 */
|
||||
.card-content hr {
|
||||
border: none;
|
||||
height: 2px;
|
||||
background: #e2e8f0;
|
||||
margin: 50px 0;
|
||||
}
|
||||
|
||||
/* Tags 标签样式 */
|
||||
.tags-container {
|
||||
margin-top: 50px;
|
||||
padding-top: 30px;
|
||||
border-top: 2px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
||||
color: white;
|
||||
padding: 12px 28px;
|
||||
border-radius: 30px;
|
||||
font-size: 34px;
|
||||
margin: 10px 15px 10px 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
Reference in New Issue
Block a user