跳转到内容

MediaWiki:Vector-2022.css:修订间差异

来自中文精神分析知识库
Maintenance script​(留言 | 贡献)
移动端重构
Maintenance script​(留言 | 贡献)
手机端头部优化
第47行: 第47行:
     /* 页脚精简 */
     /* 页脚精简 */
     .mw-footer .mw-poweredby { display: none !important; }
     .mw-footer .mw-poweredby { display: none !important; }
}
/* 手机端头部:logo与标题协调 */
@media screen and (max-width: 768px) {
    .mw-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px !important; }
    .mw-logo { display: flex !important; align-items: center !important; gap: 8px; }
    .mw-logo-icon { height: 36px !important; width: 36px !important; flex-shrink: 0; }
    .mw-logo-wordmark { font-size: 1.05em !important; white-space: nowrap; line-height: 1.2; }
    .mw-logo-tagline { display: none !important; }
    /* 搜索框紧凑 */
    .vector-search-box { flex: 1; min-width: 0; }
    /* 隐藏工具下拉菜单(手机端无用) */
    #p-cactions, .vector-page-tools, #vector-page-tools-dropdown { display: none !important; }
}
}

2026年10月11日 (日) 12:45的版本

/* 站点头衔样式:与像素猫logo协调 */
.mw-logo-wordmark {
    color: #3a3226 !important;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    font-size: 1.35em !important;
}
a.mw-logo:hover .mw-logo-wordmark {
    color: #5a4e38 !important;
    text-decoration: none !important;
}
/* 案例分类页:隐藏自动子分类列表,只显示手动分组 */
.page-分类_案例分类 .mw-category-generated {
    display: none;
}
/* 隐藏历史标签 */
#ca-history { display: none !important; }
/* 去掉右侧外观栏 */
#vector-appearance, .vector-appearance, div[id*="appearance"], div[class*="appearance"] { display: none !important; }
/* 禁用搜索建议下拉框 */
.suggestions, .mw-search-suggest, [role="listbox"] { display: none !important; }

/* ===== 移动端适配(参考游戏wiki:单列+汉堡菜单+触控友好) ===== */
@media screen and (max-width: 768px) {
    /* 正文排版 */
    .mw-body-content { font-size: 17px; line-height: 1.9; padding: 0 4px; overflow-wrap: break-word; word-break: break-word; }
    .mw-body-content p { margin: 0 0 1.1em 0; }
    .mw-body-content h1 { font-size: 1.45em; line-height: 1.3; margin: 0.8em 0 0.5em; }
    .mw-body-content h2 { font-size: 1.25em; margin: 1.2em 0 0.5em; padding-bottom: 0.3em; border-bottom: 1px solid #eaecf0; }
    .mw-body-content img { max-width: 100%; height: auto; }
    /* 侧栏收起:目录和导航默认隐藏,点汉堡菜单展开 */
    #mw-panel { display: none !important; }
    .vector-toc { display: none !important; }
    /* 内容占满宽度 */
    .mw-page-container { max-width: 100% !important; padding: 0 12px !important; }
    .mw-content-container { max-width: 100% !important; }
    /* 紧凑页眉 */
    .mw-logo-wordmark { font-size: 1em !important; }
    .mw-logo-icon { height: 34px !important; width: 34px !important; display: inline-block !important; }
    /* 分类页单列 */
    .mw-category-columns { columns: 1 !important; }
    /* 触控友好:链接和按钮最小44px高度 */
    .mw-body-content a { min-height: 24px; display: inline-block; }
    /* 表格横向滚动不撑破布局 */
    .mw-body-content table { display: block; overflow-x: auto; max-width: 100%; }
    /* 页脚精简 */
    .mw-footer .mw-poweredby { display: none !important; }
}
/* 手机端头部:logo与标题协调 */
@media screen and (max-width: 768px) {
    .mw-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px !important; }
    .mw-logo { display: flex !important; align-items: center !important; gap: 8px; }
    .mw-logo-icon { height: 36px !important; width: 36px !important; flex-shrink: 0; }
    .mw-logo-wordmark { font-size: 1.05em !important; white-space: nowrap; line-height: 1.2; }
    .mw-logo-tagline { display: none !important; }
    /* 搜索框紧凑 */
    .vector-search-box { flex: 1; min-width: 0; }
    /* 隐藏工具下拉菜单(手机端无用) */
    #p-cactions, .vector-page-tools, #vector-page-tools-dropdown { display: none !important; }
}