增加配置文件

This commit is contained in:
2026-06-02 13:52:47 +08:00
parent 6117222625
commit aab3aeb5b2
31 changed files with 3326 additions and 198 deletions
+542
View File
@@ -0,0 +1,542 @@
/* 极简主题 - Minimal Theme */
/* 基础样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 16px;
line-height: 1.8;
color: #e0e0e0;
background-color: #121212;
}
a {
color: #64b5f6;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #90caf9;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 0 25px;
}
.wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* 头部样式 */
.header {
background: #1e1e1e;
padding: 40px 0;
border-bottom: 1px solid #333;
margin-bottom: 40px;
}
.site-title {
font-size: 32px;
font-weight: 400;
letter-spacing: 1px;
}
.site-title a {
color: #e0e0e0;
}
.site-title a:hover {
color: #64b5f6;
}
.site-desc {
color: #9e9e9e;
margin-top: 10px;
font-style: italic;
}
.main-nav {
margin-top: 25px;
padding-top: 25px;
border-top: 1px solid #333;
}
.main-nav a {
margin-right: 25px;
color: #9e9e9e;
font-size: 15px;
font-weight: 300;
}
.main-nav a:hover {
color: #64b5f6;
}
/* 主内容区 */
.main {
flex: 1;
}
/* 文章列表 */
.post-list {
display: flex;
flex-direction: column;
gap: 40px;
}
.post-item {
padding-bottom: 40px;
border-bottom: 1px solid #333;
}
.post-item:last-child {
border-bottom: none;
}
.post-title {
font-size: 26px;
margin-bottom: 15px;
font-weight: 400;
}
.post-title a {
color: #e0e0e0;
}
.post-title a:hover {
color: #64b5f6;
}
.top-badge {
display: inline-block;
background: #d32f2f;
color: #fff;
font-size: 11px;
padding: 3px 10px;
border-radius: 3px;
margin-left: 10px;
vertical-align: middle;
font-weight: 400;
}
.post-meta {
color: #757575;
font-size: 14px;
margin-bottom: 20px;
font-style: italic;
}
.post-meta span {
margin-right: 20px;
}
.post-meta a {
color: #9e9e9e;
}
.tag {
display: inline-block;
background: #2c2c2c;
padding: 3px 10px;
border-radius: 3px;
font-size: 12px;
margin-right: 8px;
color: #9e9e9e;
}
.tag:hover {
background: #383838;
color: #64b5f6;
}
.post-summary {
color: #b0b0b0;
line-height: 1.9;
margin-bottom: 20px;
}
.read-more {
display: inline-block;
color: #64b5f6;
font-weight: 400;
border-bottom: 1px solid transparent;
padding-bottom: 2px;
}
.read-more:hover {
border-bottom-color: #64b5f6;
}
/* 文章详情 */
.post-detail {
background: #1e1e1e;
padding: 45px;
border-radius: 4px;
border: 1px solid #333;
}
.post-header {
margin-bottom: 35px;
padding-bottom: 25px;
border-bottom: 1px solid #333;
}
.post-detail .post-title {
font-size: 32px;
margin-bottom: 20px;
font-weight: 400;
line-height: 1.4;
}
.post-body {
line-height: 1.9;
color: #d0d0d0;
}
.post-body h2,
.post-body h3,
.post-body h4 {
margin: 35px 0 20px;
color: #e0e0e0;
font-weight: 400;
}
.post-body h2 {
font-size: 26px;
border-bottom: 1px solid #333;
padding-bottom: 10px;
}
.post-body h3 {
font-size: 22px;
}
.post-body p {
margin-bottom: 20px;
}
.post-body img {
max-width: 100%;
border-radius: 4px;
border: 1px solid #333;
}
.post-body pre {
background: #252525;
padding: 20px;
border-radius: 4px;
overflow-x: auto;
border: 1px solid #333;
margin: 25px 0;
}
.post-body code {
background: #252525;
padding: 3px 8px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-size: 14px;
border: 1px solid #333;
}
.post-body blockquote {
border-left: 3px solid #64b5f6;
padding-left: 20px;
margin: 25px 0;
color: #9e9e9e;
font-style: italic;
}
.post-body ul,
.post-body ol {
margin: 20px 0;
padding-left: 30px;
}
.post-body li {
margin-bottom: 10px;
}
/* 页面 */
.page-detail {
background: #1e1e1e;
padding: 45px;
border-radius: 4px;
border: 1px solid #333;
}
.page-title {
font-size: 32px;
margin-bottom: 25px;
font-weight: 400;
}
.page-body {
line-height: 1.9;
color: #d0d0d0;
}
/* 分页 */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 25px;
margin-top: 50px;
padding: 25px;
}
.pagination a {
padding: 10px 20px;
background: #1e1e1e;
border: 1px solid #333;
border-radius: 4px;
color: #9e9e9e;
transition: all 0.3s ease;
}
.pagination a:hover {
background: #2c2c2c;
border-color: #64b5f6;
color: #64b5f6;
}
.page-info {
color: #757575;
}
/* 评论区 */
.comments-section {
background: #1e1e1e;
padding: 35px;
margin-top: 40px;
border-radius: 4px;
border: 1px solid #333;
}
.comments-section h3 {
margin-bottom: 25px;
font-weight: 400;
font-size: 22px;
color: #e0e0e0;
}
.comment-form {
margin-bottom: 35px;
padding-bottom: 35px;
border-bottom: 1px solid #333;
}
.form-group {
margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
background: #252525;
border: 1px solid #333;
border-radius: 4px;
font-size: 14px;
color: #e0e0e0;
font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #64b5f6;
}
.form-group textarea {
min-height: 120px;
resize: vertical;
}
.comment-form button {
background: #64b5f6;
color: #121212;
border: none;
padding: 12px 30px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background 0.3s ease;
}
.comment-form button:hover {
background: #90caf9;
}
.comments-list {
display: flex;
flex-direction: column;
gap: 25px;
}
.comment-item {
padding: 20px;
background: #252525;
border-radius: 4px;
border: 1px solid #333;
}
.comment-item.child {
margin-left: 35px;
margin-top: 15px;
background: #2a2a2a;
}
.comment-header {
margin-bottom: 12px;
font-size: 14px;
}
.comment-author {
font-weight: 500;
color: #e0e0e0;
}
.comment-author a {
color: #64b5f6;
}
.comment-date {
color: #757575;
margin-left: 12px;
}
.comment-content {
color: #b0b0b0;
line-height: 1.7;
}
.no-comments {
color: #757575;
text-align: center;
padding: 40px;
}
/* 空状态 */
.empty {
text-align: center;
padding: 80px;
color: #757575;
background: #1e1e1e;
border-radius: 4px;
border: 1px solid #333;
}
/* 底部 */
.footer {
background: #1e1e1e;
padding: 35px 0;
margin-top: 60px;
text-align: center;
color: #757575;
border-top: 1px solid #333;
}
/* 文章导航 - 上一篇/下一篇 */
.post-navigation {
display: flex;
justify-content: space-between;
gap: 25px;
margin: 35px 0;
padding: 25px;
background: #1e1e1e;
border-radius: 4px;
border: 1px solid #333;
}
.nav-prev,
.nav-next {
flex: 1;
}
.nav-next {
text-align: right;
}
.nav-link {
display: flex;
flex-direction: column;
padding: 15px;
border-radius: 4px;
transition: background-color 0.3s;
}
.nav-link:hover {
background-color: #252525;
}
.nav-link.disabled {
color: #757575;
cursor: not-allowed;
}
.nav-link.disabled:hover {
background-color: transparent;
}
.nav-label {
font-size: 13px;
color: #757575;
margin-bottom: 8px;
}
.nav-title {
font-size: 15px;
font-weight: 400;
color: #e0e0e0;
line-height: 1.5;
}
.nav-link:hover .nav-title {
color: #64b5f6;
}
/* 响应式 */
@media (max-width: 768px) {
.site-title {
font-size: 26px;
}
.post-detail,
.page-detail {
padding: 25px;
}
.post-detail .post-title {
font-size: 24px;
}
.post-meta span {
display: block;
margin: 8px 0;
}
.post-navigation {
flex-direction: column;
gap: 20px;
}
.nav-next {
text-align: left;
}
.comment-item.child {
margin-left: 20px;
}
}
+56
View File
@@ -0,0 +1,56 @@
/* mytheme Theme */
/* 在此添加你的样式 */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.header {
background: #fff;
padding: 20px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-title {
margin: 0;
}
.site-title a {
color: #333;
text-decoration: none;
}
.site-desc {
color: #666;
margin: 10px 0 0;
}
.main-nav {
margin-top: 15px;
}
.main-nav a {
margin-right: 15px;
color: #666;
text-decoration: none;
}
.main {
padding: 30px 0;
min-height: 500px;
}
.footer {
background: #f5f5f5;
padding: 20px 0;
text-align: center;
color: #999;
}
+207 -1
View File
@@ -23,11 +23,208 @@ a:hover {
}
.container {
max-width: 900px;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* 内容区域布局 */
.content-wrapper {
display: flex;
gap: 30px;
align-items: flex-start;
}
.main-content {
flex: 1;
min-width: 0;
}
/* 侧边栏 */
.sidebar {
width: 300px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 20px;
}
.sidebar-widget {
background: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.widget-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #1890ff;
color: #333;
}
/* 博客信息 */
.blog-info {
text-align: center;
}
.blog-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
margin-bottom: 10px;
}
.blog-name {
font-size: 16px;
font-weight: 600;
color: #333;
margin-bottom: 8px;
}
.blog-description {
font-size: 14px;
color: #666;
line-height: 1.6;
}
.blog-stats {
display: flex;
justify-content: space-around;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 20px;
font-weight: 600;
color: #1890ff;
}
.stat-label {
font-size: 12px;
color: #999;
margin-top: 4px;
}
/* 搜索框 */
.search-form {
display: flex;
gap: 8px;
}
.search-input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
.search-input:focus {
border-color: #1890ff;
}
.search-btn {
padding: 8px 16px;
background: #1890ff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background 0.2s;
}
.search-btn:hover {
background: #40a9ff;
}
/* 分类列表 */
.category-list {
list-style: none;
}
.category-item {
margin-bottom: 8px;
}
.category-link {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
color: #666;
border-radius: 4px;
transition: all 0.2s;
}
.category-link:hover {
background: #f0f9ff;
color: #1890ff;
}
.category-count {
background: #f0f0f0;
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
color: #999;
}
/* 标签云 */
.tag-cloud {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag-item {
display: inline-block;
padding: 4px 12px;
background: #f0f0f0;
color: #666;
border-radius: 4px;
font-size: 13px;
transition: all 0.2s;
}
.tag-item:hover {
background: #1890ff;
color: #fff;
}
/* 系统菜单 */
.system-menu {
list-style: none;
}
.system-menu-item {
margin-bottom: 8px;
}
.system-menu-link {
display: block;
padding: 8px 12px;
color: #666;
border-radius: 4px;
transition: all 0.2s;
}
.system-menu-link:hover {
background: #f0f9ff;
color: #1890ff;
}
/* 头部样式 */
.header {
background: #fff;
@@ -441,4 +638,13 @@ a:hover {
.nav-next {
text-align: left;
}
/* 移动端 sidebar 隐藏或置底 */
.content-wrapper {
flex-direction: column;
}
.sidebar {
width: 100%;
}
}