跳转到内容

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

来自中文精神分析知识库
Maintenance script​(留言 | 贡献)
首页隐藏侧栏标签
Maintenance script​(留言 | 贡献)
恢复桌面端首页原样
 
(未显示同一用户的6个中间版本)
第62行: 第62行:
/* ===== 设计方案B:现代留白 ===== */
/* ===== 设计方案B:现代留白 ===== */
/* 链接暖棕色(替代默认蓝) */
/* 链接暖棕色(替代默认蓝) */
.mw-body-content a { color: #8a5a3b; }
 
.mw-body-content a:hover { color: #6d452b; }
.mw-body-content a:visited { color: #9a6b4a; }
/* 首页两个入口卡片化 */
/* 首页两个入口卡片化 */
.page-首页 .home-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
@media screen and (min-width: 769px) {
@media screen and (min-width: 769px) {
    .page-首页 .home-card {
         }
         transition: transform .2s, box-shadow .2s;
    }
    .page-首页 .home-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }
}
/* 首页隐藏侧栏和标签栏(接近B方案mockup) */
/* 首页隐藏侧栏和标签栏(接近B方案mockup) */
.page-首页 #mw-panel { display: none !important; }
@media screen and (max-width: 768px) {
.page-首页 .vector-page-toolbar, .page-首页 #p-views, .page-首页 #p-actions { display: none !important; }
        }
.page-首页 .mw-page-container { max-width: 900px !important; margin: 0 auto !important; }
 
/* 首页头部与内容连成整体:去掉灰底分隔 */
 
/* 去掉空公告的空白分隔 */
#siteNotice:empty { margin: 0 !important; }
 
/* 站点头衔单行显示 */
.mw-logo-wordmark { white-space: nowrap !important; }
 
/* 首页打破Vector网格,用block布局 */

2026年10月11日 (日) 15:57的最新版本

/* 站点头衔样式:与像素猫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; }
}
/* ===== 设计方案B:现代留白 ===== */
/* 链接暖棕色(替代默认蓝) */

/* 首页两个入口卡片化 */
@media screen and (min-width: 769px) {
        }
/* 首页隐藏侧栏和标签栏(接近B方案mockup) */
@media screen and (max-width: 768px) {
        }

/* 首页头部与内容连成整体:去掉灰底分隔 */

/* 去掉空公告的空白分隔 */
#siteNotice:empty { margin: 0 !important; }

/* 站点头衔单行显示 */
.mw-logo-wordmark { white-space: nowrap !important; }

/* 首页打破Vector网格,用block布局 */