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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
删除的内容 添加的内容
XP-jia留言 | 贡献
测试
标签已被回退
XP-jia留言 | 贡献
小处修改
标签已被回退
第16行: 第16行:
align-items: center; /* 居中对齐 */
align-items: center; /* 居中对齐 */
background: linear-gradient(to right, #a50000, #e64545); /* 渐变背景 */
background: linear-gradient(to right, #a50000, #e64545); /* 渐变背景 */
box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 阴影 */
color: white; /* 白色字体,提升对比度 */
color: white; /* 白色字体,提升对比度 */
font-weight: bold;
font-weight: bold;
第70行: 第71行:
transition: transform 0.3s ease, box-shadow 0.3s ease;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}

/* 改善阅读体验 */
.content-box h2 { font-size: 1.25rem; }
.content-box p { font-size: 0.95rem; color: #333; }


.content-box:hover {
.content-box:hover {
第80行: 第85行:
padding-bottom: 10px;
padding-bottom: 10px;
margin-bottom: 10px;
margin-bottom: 10px;
border-bottom: 2px solid red;
border-bottom: 2px solid #b30000;

}
}


第91行: 第97行:
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
gap: 20px;
gap: 24px;
}
}


第124行: 第130行:
/* 让重定向的内链变成绿色 */
/* 让重定向的内链变成绿色 */
.mw-redirect {
.mw-redirect {
color: green;
color: #009944;
}
}

2025年10月9日 (四) 13:45的版本

/* 全局字体设置,覆盖东亚语言 */
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";
}

/* 横幅标语 */
.banner {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* 居中对齐 */
  background: linear-gradient(to right, #a50000, #e64545); /* 渐变背景 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 阴影 */
  color: white; /* 白色字体,提升对比度 */
  font-weight: bold;
  border-radius: 12px; /* 圆角优化 */
  padding: 12px 24px; /* 增加上下 padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 更柔和的阴影 */
  text-align: center;
}

.banner-text {
  margin: 0;
  line-height: 1.4; /* 让文本更易读 */
}

.banner .chinese-text {
  font-size: 24px; /* 默认大小 */
  font-weight: 700;
}

.banner .english-text {
  font-size: 16px; /* 默认大小 */
  font-weight: 500;
  opacity: 0.9;
}

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

  .banner .english-text {
    font-size: 18px;
  }
}

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

  .banner .english-text {
    font-size: 14px;
  }
}

/* 内容块样式 */
.content-box {
  margin: 10px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 改善阅读体验 */
.content-box h2 { font-size: 1.25rem; }
.content-box p { font-size: 0.95rem; color: #333; }

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.content-box h2 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #b30000;

}

.content-box p {
  line-height: 1.6;
}

/* Flex 容器 */
.flex-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.flex-container .content-box {
  flex: 1;
  max-width: 33.33%;
  box-sizing: border-box;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }

  .flex-container .content-box {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .banner .chinese-text,
  .banner .english-text {
    text-align: center;
    font-size: 18px;
  }

  .banner .english-text {
    font-size: 14px;
  }
}

/* 让重定向的内链变成绿色 */
.mw-redirect {
    color: #009944;
}