MediaWiki:Common.css:修订间差异

来自赛尔号精灵图鉴
跳转到导航 跳转到搜索
无编辑摘要
Len留言 | 贡献
无编辑摘要
 
(未显示同一用户的8个中间版本)
第690行: 第690行:
}
}


/* 评论整体容器(圆角阴影) */
/* ==== 通用评论块样式 ==== */
.cs-comment {
.cs-comment {
   background: rgba(255, 255, 255, 0.03) !important;
   background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 12px !important;
   border: 1px solid rgba(255, 255, 255, 0.08) !important;
   border: 1px solid rgba(255, 255, 255, 0.1) !important;
   border-radius: 10px !important;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  margin: 12px 0 !important;
   margin: 20px 0 !important;
   padding: 12px 16px !important;
   overflow: hidden;
   color: #f0f0f0 !important;
   backdrop-filter: blur(4px) !important;
   backdrop-filter: blur(4px) !important;
}
}


/* 头部栏:深灰渐变 + 文字对齐 */
/* ==== 主评论样式 ==== */
.cs-comment.cs-head-comment {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
 
/* ==== 评论头部(用户 + 时间 + 投票) ==== */
.cs-comment-header {
.cs-comment-header {
  background: linear-gradient(to right, #1c1c1c, #1a1a1a) !important;
  color: #ccc !important;
  font-size: 0.9em !important;
   display: flex;
   display: flex;
   justify-content: space-between;
   justify-content: space-between;
   align-items: center;
   align-items: center;
   padding: 6px 14px !important;
   font-size: 0.85em;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #aaa;
   margin-bottom: 6px;
}
}


/* 评论正文 */
/* ==== 投票按钮区域 ==== */
.cs-comment-body {
  padding: 14px 16px !important;
  color: #eee !important;
  font-size: 1em !important;
  line-height: 1.6 !important;
  background-color: transparent !important;
}
 
/* 回复按钮 */
.cs-comment-reply-button {
  color: #888 !important;
  font-size: 0.85em !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease;
}
.cs-comment-reply-button:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  text-decoration: none !important;
}
 
/* 投票按钮 */
.cs-comment-voting {
.cs-comment-voting {
   color: #888 !important;
   color: #888 !important;
  font-size: 0.9em;
}
}
.cs-comment-voting .cs-vote-up:hover,
.cs-comment-voting .cs-vote-up:hover,
.cs-comment-voting .cs-vote-down:hover {
.cs-comment-voting .cs-vote-down:hover {
   color: #00bfff !important;
   color: #66ccff !important;
  cursor: pointer;
}
}
/* 投票区域整体靠右浮动 */
 
.cs-comment-voting {
/* ==== 评论正文 ==== */
  display: flex;
.cs-comment-body {
  align-items: center;
   color: #f8f8f8 !important;
  gap: 8px;
   font-size: 1em;
  font-size: 0.9em;
   line-height: 1.6;
   color: #aaa !important;
   margin-left: auto;
   margin-right: 6px;
}
}


/* 投票按钮样式 */
/* ==== 回复按钮 ==== */
.cs-vote-up, .cs-vote-down {
.cs-comment-reply-button {
  margin-top: 10px;
  font-size: 0.9em;
  color: #66ccff !important;
  background: none !important;
  border: none !important;
   cursor: pointer;
   cursor: pointer;
  font-size: 1.2em;
  transition: transform 0.2s, color 0.3s;
}
}
 
.cs-comment-reply-button:hover {
/* 点赞图标默认灰色,悬停亮蓝色 */
   text-decoration: underline !important;
.cs-vote-up:hover {
   color: #4aa3ff !important;
  transform: scale(1.2);
}
 
/* 点踩图标默认灰色,悬停亮红色 */
.cs-vote-down:hover {
  color: #ff5f5f !important;
  transform: scale(1.2);
}
}
 
#back-to-home-button {
/* 当前已点赞/点踩状态(可选) */
  position: fixed;
.cs-vote-up.voted {
  bottom: 50px;
   color: #4aa3ff !important;
  left: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
   transition: background 0.3s;
}
}
.cs-vote-down.voted {
#back-to-home-button:hover {
   color: #ff5f5f !important;
   background: rgba(255, 255, 255, 0.2);
}
}

2025年6月21日 (六) 14:00的最新版本

#online-counter {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
}


/* 顶部右上角登录 / 注册链接颜色修正 */
#pt-login a,
#pt-createaccount a {
  color: #6cf !important;
  text-decoration: none;
}

#pt-login a:hover,
#pt-createaccount a:hover {
  color: #9df !important;
  text-decoration: underline;
}


.mw-parser-output {
  max-width: 100% !important;
  width: 100% !important;
  padding: 20px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
  box-sizing: border-box;
}

/* ===== 全站结构背景 ===== */
body.skin-vector #content,
body.skin-vector .mw-body,
body.skin-vector .mw-page-container,
body.skin-vector .mw-content-container,
body.skin-vector .vector-body,
body.skin-vector .vector-page-content {
  background-color: #000 !important;
  color: #f0f0f0 !important;
}

/* 顶部工具栏 */
.vector-header,
.vector-sticky-header,
.vector-header-container {
  background-color: #000 !important;
  color: #f0f0f0 !important;
  border-bottom: 1px solid #222;
}

/* 搜索栏 */
#p-search input {
  background-color: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

/* 顶部用户菜单 */
.vector-user-menu,
.vector-user-menu a {
  color: #ccc !important;
}
.vector-user-menu a:hover {
  color: #fff !important;
}

/* 左侧边栏 */
#mw-panel {
  background-color: #111 !important;
  color: #f0f0f0 !important;
}
#mw-panel a {
  color: #ccc !important;
}
#mw-panel a:hover {
  color: #fff !important;
}

/* 编辑工具栏背景 */
.vector-menu-content {
  background-color: #111 !important;
}

/* 内容块默认背景 */
#content,
#mw-content-text {
  background-color: transparent !important;
}

/* ===== 主内容区模块样式 ===== */

/* 所有内容块:统一圆角+暗色背景+间距 */
.mw-parser-output > * {
  background-color: #1b1b1b !important;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

/* 标题样式 */
.mw-headline {
  font-size: 18px;
  font-weight: bold;
  border-left: 5px solid #888;
  padding-left: 10px;
  margin-bottom: 12px;
}

/* ===== 表格统一样式 ===== */
.wikitable {
  background-color: #111 !important;
  border-collapse: collapse;
  border: 1px solid #444;
  width: 100%;
}
.wikitable th {
  background-color: #222 !important;
  color: #fff !important;
  padding: 6px 10px;
}
.wikitable td {
  background-color: #111 !important;
  color: #ccc !important;
  padding: 6px 10px;
  text-align: center;
}

/* 表格小屏支持横向滚动 */
.wikitable-container {
  overflow-x: auto;
}

/* ===== 输入表单类 ===== */
input[type="text"],
input[type="number"],
select {
  background-color: #2a2a2a !important;
  color: #f0f0f0 !important;
  border: 1px solid #555 !important;
  border-radius: 6px !important;
  padding: 6px 10px;
  width: 100px;
  box-sizing: border-box;
}

/* 按钮样式 */
input[type="button"],
input[type="submit"],
button {
  background-color: #333 !important;
  color: #fff !important;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 6px;
  cursor: pointer;
}
input[type="button"]:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #555 !important;
}

/* ===== 计算器结构自动适配横排 ===== */
.mw-parser-output > div:has(input[type="number"]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.mw-parser-output > div:has(input[type="number"]) > div {
  flex: 1 1 220px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

/* ===== 精灵头像框优化(精简版)===== */

/* 单个头像卡片样式 */
.sprite-box {
  background-color: #111;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 6px;
  width: 90px;
  height: 120px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ccc;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

/* 悬停高亮效果 */
.sprite-box:hover {
  border-color: #00ffff;
  transform: scale(1.04);
}

/* 精灵图片统一尺寸 */
.sprite-box img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* 精灵名字文字样式 */
.sprite-name {
  font-size: 12px;
  white-space: nowrap;
  margin-top: 4px;
  color: #ccc;
}

.sprite-grid {
width: 100%;
max-width: unset;
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: flex-start;
padding: 12px;

}
/* 隐藏整个侧边栏 */
#mw-panel {
    display: none !important;
}

/* 调整内容区宽度占满整个页面 */
#content,
#mw-content-text,
.vector-body {
    margin-left: 0 !important;
}
/* 登录用户也取消左右栏,内容全宽显示 */
body {
  max-width: 100% !important;
}

#content,
#mw-content-text,
.vector-body {
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 去掉右上角的用户工具栏宽度影响 */
.vector-page-tools-container,
.vector-skin .mw-workspace-container {
  max-width: 100% !important;
  width: 100% !important;
}

/* 隐藏侧边栏 */
#mw-panel {
  display: none !important;
}
/* 搜索框文字改亮色 */
input#searchInput {
  background-color: #222 !important;
  color: #fff !important;
  border: 1px solid #666 !important;
}

/* 搜索按钮 */
input#searchButton {
  background-color: #444 !important;
  border: 1px solid #666 !important;
}
input#searchButton:hover {
  background-color: #666 !important;
}

/* 顶部登录/注册链接颜色 */
#pt-login, #pt-createaccount {
  color: #6cf !important; /* 浅蓝色 */
}

/* 鼠标悬浮时更亮一点 */
#pt-login:hover, #pt-createaccount:hover {
  color: #9df !important;
}

/* 编辑按钮、查看历史等 tab 标签颜色 */
.vector-menu-tabs .selected a {
  background: #222 !important;
  color: #fff !important;
  border-color: #f9c !important; /* 粉红色边框 */
}
.vector-menu-tabs li a {
  color: #f9c !important;
}
.vector-menu-tabs li a:hover {
  background-color: #333 !important;
  color: #fff !important;
}

/* 侧边栏链接颜色(如果未隐藏侧边栏) */
#mw-panel a {
  color: #9cf !important;
}
#mw-panel a:hover {
  color: #cff !important;
}
/* 登录用户内容区域强制全宽 */
body {
  max-width: 100% !important;
}

#content,
#mw-content-text,
.vector-body {
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 隐藏右边栏 */
.vector-page-tools-container,
.vector-skin .mw-workspace-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* 如果你启用了 vector-2022 皮肤,这样也能解决 */
body.skin-vector-2022 .mw-content-container {
  max-width: 100% !important;
}

/* 隐藏左边栏(可选) */
#mw-panel {
  display: none !important;
}
/* 标题区美化 */
.firstHeading {
  font-size: 28px !important;
  font-weight: bold;
  border-bottom: 2px solid #666;
  margin-bottom: 16px;
}

/* 精灵头像圆角 + 居中 */
#mw-content-text img[alt$="头像"] {
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  display: block;
  margin: 0 auto 10px auto;
}

/* 卡片式信息框样式 */
.mw-parser-output > .infobox,
.mw-parser-output > .精灵资料,
.mw-parser-output > .wikitable {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
  border: 1px solid #444 !important;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* 精灵资料表格优化 */
.wikitable th {
  background-color: #2c2c2c !important;
  color: #fff !important;
}
.wikitable td {
  background-color: #1e1e1e !important;
  color: #ccc !important;
  text-align: center;
}

/* 计算器输入框优化 */
input[type="number"],
input[type="text"] {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 4px 6px;
}

button,
input[type="submit"] {
  background-color: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
button:hover,
input[type="submit"]:hover {
  background-color: #666;
}
/* 页面统一字体和间距 */
body, .mw-body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif !important;
  line-height: 1.7 !important;
  font-size: 15px;
}

/* 标题区样式 */
.firstHeading {
  font-size: 32px !important;
  font-weight: bold;
  color: #fff;
  border-bottom: 2px solid #666;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 精灵头像圆角 */
#mw-content-text img[alt$="头像"] {
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

/* 信息卡片风格容器 */
.mw-parser-output > div, .mw-parser-output > .card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* 表格优化(技能/种族值) */
.wikitable {
  background: #111 !important;
  color: #ccc;
  border-collapse: collapse;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.wikitable th {
  background: #292933 !important;
  color: #ffcaff !important;
  padding: 8px;
}
.wikitable td {
  background: #181818 !important;
  padding: 8px;
  border-top: 1px solid #333 !important;
}

/* 计算器区域美化 */
input[type="number"],
input[type="text"],
select {
  background: #292929;
  color: #eee;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 5px;
  width: 60px;
  text-align: center;
}
button,
input[type="submit"] {
  background-color: #444;
  color: #fff;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:hover,
input[type="submit"]:hover {
  background-color: #777;
}

/* 进化链头像展示:横向居中 + 圆角 + hover 放大 */
.evolution img {
  border-radius: 12px;
  margin: 0 8px;
  transition: transform 0.2s ease;
}
.evolution img:hover {
  transform: scale(1.1);
}

/* 去掉多余黑色空区块 */
.mw-parser-output > div:empty {
  display: none;
}

/* 小标题美化 */
h2, h3 {
  color: #9cf !important;
  border-left: 4px solid #9cf;
  padding-left: 8px;
  margin-top: 24px;
}
/* 计算器外层统一居中、横排排列 */
.calc-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  background: #111;
  padding: 20px;
  border-radius: 12px;
  gap: 20px;
  margin-top: 10px;
}

/* 每个模块的基础卡片 */
.calc-box {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 160px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  color: #fff;
}

/* 子标题样式 */
.calc-box h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
  color: #fff;
}

/* 表格内项目 */
.calc-box table {
  width: 100%;
  border-collapse: collapse;
}
.calc-box th, .calc-box td {
  padding: 4px 6px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}
.calc-box th {
  color: #fff;
}

/* 输入框统一风格 */
.calc-box input[type="number"],
.calc-box input[type="text"],
.calc-box select {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px;
  width: 60px;
  margin: 4px 0;
  text-align: center;
}

/* 按钮统一风格 */
.calc-box button,
.calc-box input[type="submit"] {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 5px 10px;
  margin: 4px;
  cursor: pointer;
}
.calc-box button:hover,
.calc-box input[type="submit"]:hover {
  background-color: #666;
}

/* 高亮行:绿色 */
.stat-up {
  color: #78ff78 !important;
  font-weight: bold;
}

/* 计算结果为 0 的蓝色 */
.calc-result-zero {
  color: #3cf !important;
}

/* 子区块对齐 */
.calc-box .field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
}
.calc-box .field
/* 顶部导航栏背景统一为深色 */
.vector-header,
.vector-sticky-header,
.vector-header-container {
  background: #000 !important;
  color: #fff !important;
  border-bottom: 1px solid #444 !important;
}

/* 顶部右上角登录/注册链接颜色 */
#pt-login, #pt-createaccount {
  color: #6cf !important;
}
#pt-login:hover, #pt-createaccount:hover {
  color: #9df !important;
  text-decoration: underline;
}

/* 顶部标签页(首页/讨论/阅读/查看源代码等)样式 */
.vector-menu-tabs li {
  background: transparent !important;
}
.vector-menu-tabs li.selected a {
  background-color: #111 !important;
  color: #fff !important;
  border-bottom: 2px solid #f9c !important; /* 粉色下划线 */
}
.vector-menu-tabs li a {
  color: #f9c !important;
}
.vector-menu-tabs li a:hover {
  color: #fff !important;
  background-color: #222 !important;
}

/* 顶部搜索栏优化 */
#p-search input[type="search"],
#searchInput {
  background-color: #222 !important;
  color: #eee !important;
  border: 1px solid #555 !important;
  border-radius: 6px;
  padding: 4px 8px;
}
#searchInput::placeholder {
  color: #888;
}
/* 顶部登录 / 注册菜单项优化 */
.vector-menu-content-list > li#pt-login a,
.vector-menu-content-list > li#pt-createaccount a {
  color: #ddd !important;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 4px;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* 悬停效果 */
.vector-menu-content-list > li#pt-login a:hover,
.vector-menu-content-list > li#pt-createaccount a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}


/* 搜索按钮优化 */
#searchButton {
  background-color: #444 !important;
  border: 1px solid #666 !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 4px 8px;
}
#searchButton:hover {
  background-color: #666 !important;
}

/* ==== 通用评论块样式 ==== */
.cs-comment {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  margin: 12px 0 !important;
  padding: 12px 16px !important;
  color: #f0f0f0 !important;
  backdrop-filter: blur(4px) !important;
}

/* ==== 主评论样式 ==== */
.cs-comment.cs-head-comment {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==== 评论头部(用户 + 时间 + 投票) ==== */
.cs-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 6px;
}

/* ==== 投票按钮区域 ==== */
.cs-comment-voting {
  color: #888 !important;
  font-size: 0.9em;
}
.cs-comment-voting .cs-vote-up:hover,
.cs-comment-voting .cs-vote-down:hover {
  color: #66ccff !important;
  cursor: pointer;
}

/* ==== 评论正文 ==== */
.cs-comment-body {
  color: #f8f8f8 !important;
  font-size: 1em;
  line-height: 1.6;
}

/* ==== 回复按钮 ==== */
.cs-comment-reply-button {
  margin-top: 10px;
  font-size: 0.9em;
  color: #66ccff !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
}
.cs-comment-reply-button:hover {
  text-decoration: underline !important;
}
#back-to-home-button {
  position: fixed;
  bottom: 50px;
  left: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: background 0.3s;
}
#back-to-home-button:hover {
  background: rgba(255, 255, 255, 0.2);
}