打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
删除的内容 添加的内容
XP-jia留言 | 贡献
移除样式
Maintenance script留言 | 贡献
首页样式小幅优化(选择器收敛与中间断点)
 
(未显示2个用户的34个中间版本)
第1行: 第1行:
/* 全局字体设置,覆盖中文、日文、韩文等东亚语言 */
/* 全局字体设置,覆盖东亚语言 */
body {
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP", "Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei", "Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
"Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP",
"Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
}
}
/* 全局字体设置,覆盖中文、日文、韩文等东亚语言 */


/* 2026-01-11: load Mainpage-specific styles from dedicated page */
/* 首页样式 */

/* 横幅标语样式 */

.banner {
/* 全站重定向链接样式 */
height: 100px; /* 高度设置为100px */
.mw-redirect {
display: flex; /* 使用Flexbox布局 */
color: #008000 !important; /* 使用 hex 颜色值,提高优先级 */
flex-direction: column; /* 子元素垂直排列 */
font-weight: 500;
justify-content: center; /* 垂直方向居中 */
color: #ff0000; /* 文字颜色设置为红色 */
font-weight: bold; /* 字体加粗 */
border-radius: 10px; /* 圆角 */
padding: 0 20px; /* 内边距 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}
}


/* 重定向链接悬停效果 */
.banner-text {
.mw-redirect:hover {
margin: 0; /* 外边距设置为0 */
color: #006400 !important;
line-height: 1.2; /* 行高 */
text-decoration: underline;
}
}


/* 导航框样式迁移至 Template:Navbox/styles.css */
.banner .chinese-text {

text-align: left; /* 左对齐 */
/* 语言链接样式 */
font-size: 24px; /* 字体大小 */
#p-lang ul {
list-style: none;
padding: 0;
margin: 10px 0;
}
}


#p-lang li {
.banner .english-text {
display: inline-block;
text-align: right; /* 右对齐 */
margin-right: 10px;
font-size: 16px; /* 字体大小 */
}
/* 2026-01-12: 首页样式从 LocalSettings.php 迁移到此处(仅首页生效) */
body.page-Main_Page .banner {
height: auto !important;
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
align-items: center !important;
background: linear-gradient(135deg, #8B0000, #B22222) !important; /* 改进对比度 */
color: white !important;
font-weight: bold !important;
border-radius: 12px !important;
padding: 12px 24px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
text-align: center !important;
margin: 20px 0 !important;
}

body.page-Main_Page .banner-text {
margin: 0 !important;
line-height: 1.4 !important;
}

body.page-Main_Page .banner .chinese-text {
font-size: 24px !important;
font-weight: 700 !important;
}

body.page-Main_Page .banner .english-text {
font-size: 16px !important;
font-weight: 500 !important;
opacity: 0.9 !important;
}

/* 当屏幕宽度大于 768px(如平板和大屏幕设备) */
@media screen and (min-width: 768px) {
body.page-Main_Page .banner .chinese-text {
font-size: 28px !important;
}

body.page-Main_Page .banner .english-text {
font-size: 18px !important;
}
}

/* 当屏幕宽度小于 480px(如手机设备) */
@media screen and (max-width: 480px) {
body.page-Main_Page .banner .chinese-text {
font-size: 20px !important;
}

body.page-Main_Page .banner .english-text {
font-size: 14px !important;
}
}
}


/* 内容块样式 */
/* 内容块样式 */
.content-box {
body.page-Main_Page .content-box {
margin: 10px; /* 外边距 */
margin: 10px !important;
padding: 20px; /* 内边距 */
padding: 20px !important;
border-radius: 10px; /* 圆角 */
border-radius: 10px !important;
border: 1px solid #e0e0e0 !important;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
-webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease !important;
border: 1px solid #e0e0e0; /* 边框 */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */
transition: transform 0.3s ease, box-shadow 0.3s ease !important;
will-change: transform !important; /* 性能优化 */
backface-visibility: hidden !important; /* 性能优化 */
}
}


.content-box:hover {
body.page-Main_Page .content-box:hover {
transform: translateY(-5px); /* 向上移动5px */
-webkit-transform: translateY(-5px) !important;
-moz-transform: translateY(-5px) !important;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
transform: translateY(-5px) !important;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18) !important;
}
}


.content-box h2 {
body.page-Main_Page .content-box:focus {
outline: 2px solid #0066cc !important; /* 可访问性改进 */
position: relative; /* 相对定位 */
outline-offset: 2px !important;
padding-bottom: 10px; /* 下内边距 */
margin-bottom: 10px; /* 下外边距 */
border-bottom: 2px solid #ff0000; /* 下边框 */
/*color: #333; /* 字体颜色 */
}
}


.content-box p {
body.page-Main_Page .content-box h2 {
position: relative !important;
line-height: 1.6; /* 行高 */
padding-bottom: 10px !important;
/*color: #666; /* 字体颜色 */
margin-bottom: 10px !important;
border-bottom: 2px solid red !important;
color: #333333 !important;
}
}


body.page-Main_Page .content-box p {
/* Flex容器样式 */
line-height: 1.6 !important;
.flex-container {
color: #666666 !important;
display: flex; /* 使用Flexbox布局 */
justify-content: space-between; /* 子元素均匀分布 */
gap: 20px; /* 子元素间距 */
}
}


/* Flex 容器 */
.flex-container .content-box {
body.page-Main_Page .flex-container {
flex: 1; /* 伸缩性 */
display: flex !important;
max-width: 33.33%; /* 最大宽度 */
justify-content: space-between !important;
box-sizing: border-box; /* 包括内边距和边框在内计算宽度 */
gap: 20px !important;
flex-wrap: wrap !important;
}
}


body.page-Main_Page .flex-container .content-box {
/* 移动设备优化 */
flex: 1 !important;
min-width: 300px !important;
max-width: 33.33% !important;
box-sizing: border-box !important;
}
/* 中等屏幕优化 */
@media (max-width: 900px) {
body.page-Main_Page .flex-container .content-box {
max-width: 50% !important;
}
}


/* 移动端优化 */
@media (max-width: 768px) {
@media (max-width: 768px) {
.flex-container {
body.page-Main_Page .flex-container {
flex-direction: column; /* 子元素垂直排列 */
flex-direction: column !important;
gap: 15px !important; /* 统一间距 */
}
}


.flex-container .content-box {
body.page-Main_Page .flex-container .content-box {
max-width: 100%; /* 最大宽度 */
max-width: 100% !important; /* 移除限制 */
width: 100% !important;
margin-bottom: 20px; /* 下外边距 */
margin-bottom: 0 !important; /* 统一使用 gap */
}
}


.banner .chinese-text, .banner .english-text {
body.page-Main_Page .banner .chinese-text,
body.page-Main_Page .banner .english-text {
text-align: center; /* 居中对齐 */
text-align: center !important;
font-size: 18px; /* 字体大小 */
}
}


.banner .english-text {
body.page-Main_Page .banner .chinese-text {
font-size: 14px; /* 字体大小 */
font-size: 20px !important;
}

body.page-Main_Page .banner .english-text {
font-size: 14px !important;
}
}
}
}
/* 首页样式 */


/* 为减少动画的用户提供支持 */
/* Template:SoftwareInfo表 */
@media (prefers-reduced-motion: reduce) {
/* 软件信息表格整体布局 */
body.page-Main_Page .content-box {
.software-info {
-webkit-transition: none !important;
display: flex;
transition: none !important;
flex-direction: column; /* 默认移动端纵向排列 */
}
width: 100%;
gap: 10px; /* 组间距 */
align-items: center; /* 水平居中 */
}


body.page-Main_Page .content-box:hover {
/* 每一组的默认样式(移动端:占满整行,并水平居中) */
-webkit-transform: none !important;
.software-info-section {
-moz-transform: none !important;
width: 100%; /* 移动端默认占满 */
display: flex;
transform: none !important;
}
flex-direction: column;
flex-grow: 1;
max-width: 600px; /* 限制移动端最大宽度,防止超宽 */
}
}


/* 暗色模式覆盖(Citizen: night) */
/* 桌面端(大屏幕):按顺序排列,且宽度调整 */
.skin-theme-clientpref-night body.page-Main_Page .banner {
@media (min-width: 768px) {
background: linear-gradient(135deg, #3a0c0c, #5a1a1a) !important;
.software-info {
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
flex-direction: row;
}
flex-wrap: nowrap; /* 一行排列 */
/* justify-content: space-between; /* 让四组均分空间 */
align-items: flex-start; /* 顶端对齐 */
}


.skin-theme-clientpref-night body.page-Main_Page .content-box {
/* 设定每一类的宽度比例 */
border-color: #2f2f2f !important;
.software-info-basic {
background-color: #1c1c1c !important;
width: 20%; /* 基本信息 */
}

.software-info-architecture {
width: 35%; /* 架构与版本(较大) */
}

.software-info-features {
width: 35%; /* 功能与发行(较大) */
}

.software-info-license {
width: 10%; /* 贡献与许可证(较小) */
}
}
}


.skin-theme-clientpref-night body.page-Main_Page .content-box:hover {
/* 让表格填充整个分类块 */
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5) !important;
.software-info-section table {
width: 100%;
border-collapse: collapse;
flex-grow: 1;
}
}


.skin-theme-clientpref-night body.page-Main_Page .content-box:focus {
/* 标题格式 */
outline-color: #5ea0ff !important;
.software-info-section table caption {
font-weight: bold;
text-align: center;
padding: 5px;
}
}


.skin-theme-clientpref-night body.page-Main_Page .content-box h2 {
/* 表格单元格样式 */
border-bottom-color: #b94a4a !important;
.software-info-section th,
color: #ffffff !important;
.software-info-section td {
border: 1px;
padding: 8px;
text-align: left;
min-width: 10ch; /* 至少能容纳五个汉字 */
word-break: break-word; /* 避免内容过长导致溢出 */
}
}


.skin-theme-clientpref-night body.page-Main_Page .content-box p {
/* 让移动端的表格水平居中 */
color: #cccccc !important;
@media (max-width: 768px) {
.software-info-section {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
}
}
/* Template:SoftwareInfo */

2026年1月12日 (一) 23:57的最新版本

/* 全局字体设置,覆盖东亚语言 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
  "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP",
  "Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB",
  "Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
  "Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
}

/* 2026-01-11: load Mainpage-specific styles from dedicated page */


/* 全站重定向链接样式 */
.mw-redirect {
  color: #008000 !important; /* 使用 hex 颜色值,提高优先级 */
  font-weight: 500;
}

/* 重定向链接悬停效果 */
.mw-redirect:hover {
  color: #006400 !important;
  text-decoration: underline;
}

/* 导航框样式迁移至 Template:Navbox/styles.css */

/* 语言链接样式 */
#p-lang ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

#p-lang li {
  display: inline-block;
  margin-right: 10px;
}
/* 2026-01-12: 首页样式从 LocalSettings.php 迁移到此处(仅首页生效) */
body.page-Main_Page .banner {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: linear-gradient(135deg, #8B0000, #B22222) !important; /* 改进对比度 */
  color: white !important;
  font-weight: bold !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-align: center !important;
  margin: 20px 0 !important;
}

body.page-Main_Page .banner-text {
  margin: 0 !important;
  line-height: 1.4 !important;
}

body.page-Main_Page .banner .chinese-text {
  font-size: 24px !important;
  font-weight: 700 !important;
}

body.page-Main_Page .banner .english-text {
  font-size: 16px !important;
  font-weight: 500 !important;
  opacity: 0.9 !important;
}

/* 当屏幕宽度大于 768px(如平板和大屏幕设备) */
@media screen and (min-width: 768px) {
  body.page-Main_Page .banner .chinese-text {
    font-size: 28px !important;
  }

  body.page-Main_Page .banner .english-text {
    font-size: 18px !important;
  }
}

/* 当屏幕宽度小于 480px(如手机设备) */
@media screen and (max-width: 480px) {
  body.page-Main_Page .banner .chinese-text {
    font-size: 20px !important;
  }

  body.page-Main_Page .banner .english-text {
    font-size: 14px !important;
  }
}

/* 内容块样式 */
body.page-Main_Page .content-box {
  margin: 10px !important;
  padding: 20px !important;
  border-radius: 10px !important;
  border: 1px solid #e0e0e0 !important;
  -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  will-change: transform !important; /* 性能优化 */
  backface-visibility: hidden !important; /* 性能优化 */
}

body.page-Main_Page .content-box:hover {
  -webkit-transform: translateY(-5px) !important;
  -moz-transform: translateY(-5px) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18) !important;
}

body.page-Main_Page .content-box:focus {
  outline: 2px solid #0066cc !important; /* 可访问性改进 */
  outline-offset: 2px !important;
}

body.page-Main_Page .content-box h2 {
  position: relative !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
  border-bottom: 2px solid red !important;
  color: #333333 !important;
}

body.page-Main_Page .content-box p {
  line-height: 1.6 !important;
  color: #666666 !important;
}

/* Flex 容器 */
body.page-Main_Page .flex-container {
  display: flex !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

body.page-Main_Page .flex-container .content-box {
  flex: 1 !important;
  min-width: 300px !important;
  max-width: 33.33% !important;
  box-sizing: border-box !important;
}
/* 中等屏幕优化 */
@media (max-width: 900px) {
  body.page-Main_Page .flex-container .content-box {
    max-width: 50% !important;
  }
}


/* 移动端优化 */
@media (max-width: 768px) {
  body.page-Main_Page .flex-container {
    flex-direction: column !important;
    gap: 15px !important; /* 统一间距 */
  }

  body.page-Main_Page .flex-container .content-box {
    max-width: 100% !important; /* 移除限制 */
    width: 100% !important;
    margin-bottom: 0 !important; /* 统一使用 gap */
  }

  body.page-Main_Page .banner .chinese-text,
  body.page-Main_Page .banner .english-text {
    text-align: center !important;
  }

  body.page-Main_Page .banner .chinese-text {
    font-size: 20px !important;
  }

  body.page-Main_Page .banner .english-text {
    font-size: 14px !important;
  }
}

/* 为减少动画的用户提供支持 */
@media (prefers-reduced-motion: reduce) {
  body.page-Main_Page .content-box {
    -webkit-transition: none !important;
    transition: none !important;
  }

  body.page-Main_Page .content-box:hover {
    -webkit-transform: none !important;
    -moz-transform: none !important;
    transform: none !important;
  }
}

/* 暗色模式覆盖(Citizen: night) */
.skin-theme-clientpref-night body.page-Main_Page .banner {
  background: linear-gradient(135deg, #3a0c0c, #5a1a1a) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

.skin-theme-clientpref-night body.page-Main_Page .content-box {
  border-color: #2f2f2f !important;
  background-color: #1c1c1c !important;
}

.skin-theme-clientpref-night body.page-Main_Page .content-box:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5) !important;
}

.skin-theme-clientpref-night body.page-Main_Page .content-box:focus {
  outline-color: #5ea0ff !important;
}

.skin-theme-clientpref-night body.page-Main_Page .content-box h2 {
  border-bottom-color: #b94a4a !important;
  color: #ffffff !important;
}

.skin-theme-clientpref-night body.page-Main_Page .content-box p {
  color: #cccccc !important;
}