跳转到内容

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

来自中文精神分析知识库
Maintenance script​(留言 | 贡献)
移动端精致适配
Maintenance script​(留言 | 贡献)
恢复桌面端首页原样
 
(未显示同一用户的14个中间版本)
第15行: 第15行:
     display: none;
     display: none;
}
}
/* 移动端适配 */
/* 隐藏历史标签 */
/* 隐藏历史标签 */
#ca-history { display: none !important; }
#ca-history { display: none !important; }
/* 移动端隐藏页脚MediaWiki logo */
/* 去掉右侧外观栏 */
/* 移动端确保logo显示 */
#vector-appearance, .vector-appearance, div[id*="appearance"], div[class*="appearance"] { display: none !important; }
.mw-body-content {
/* 禁用搜索建议下拉框 */
    font-size: clamp(16px, 2.5vw, 18px);
.suggestions, .mw-search-suggest, [role="listbox"] { display: none !important; }
    line-height: 1.8;
}
/* 平板 */
/* 手机 */
/* 隐藏历史标签 */
#ca-history { display: none !important; }
/* 案例分类页隐藏自动列表 */
.page-分类_案例分类 .mw-category-generated { display: none; }


/* ===== 移动端精致适配 ===== */
/* ===== 移动端适配(参考游戏wiki:单列+汉堡菜单+触控友好) ===== */
@media screen and (max-width: 768px) {
@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 { 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 p { margin: 0 0 1.1em 0; }
第38行: 第30行:
     .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 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-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-wordmark { font-size: 1em !important; }
     .mw-logo-icon { height: 34px !important; width: 34px !important; display: inline-block !important; }
     .mw-logo-icon { height: 34px !important; width: 34px !important; display: inline-block !important; }
    /* 分类页单列 */
     .mw-category-columns { columns: 1 !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; }
     .mw-footer .mw-poweredby { display: none !important; }
}
}
#ca-history { display: none !important; }
/* 手机端头部:logo与标题协调 */
.page-分类_案例分类 .mw-category-generated { display: none; }
@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布局 */

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布局 */