fix: modern 主题补全默认视图组件样式(侧边栏 widget/标签云/搜索框/profile/表格/付费提示等),修复切换后错位;header 补搜索框
This commit is contained in:
@@ -29,6 +29,7 @@ a:hover { opacity: 0.8; }
|
||||
.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 { display: flex; gap: 32px; align-items: flex-start; max-width: 1080px; margin: 0 auto; padding: 36px 20px; }
|
||||
@@ -103,3 +104,40 @@ a:hover { opacity: 0.8; }
|
||||
.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); }
|
||||
.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,.08); border: 1px dashed var(--accent); border-radius: 8px; padding: 12px 16px; color: var(--muted); font-size: 14px; margin: 12px 0; }
|
||||
|
||||
Reference in New Issue
Block a user