MediaWiki:Common.css:修订间差异

来自赛尔号精灵图鉴
跳转到导航 跳转到搜索
无编辑摘要
Len留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 页面最大宽度 + 居中 */
/* ===== 页面整体布局和字体色调 ===== */
html, body {
  background-color: #000 !important;
  color: #f0f0f0 !important;
}
 
/* 限制页面宽度并居中显示 */
.mw-parser-output {
.mw-parser-output {
   max-width: 960px;
   max-width: 960px;
第6行: 第12行:
   font-size: 14px;
   font-size: 14px;
   line-height: 1.7;
   line-height: 1.7;
  color: #f0f0f0;
}
}


/* 所有主要内容模块统一圆角 + 阴影 + 暗色背景 */
/* ===== 全站结构背景 ===== */
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 > * {
.mw-parser-output > * {
   background-color: #1b1b1b !important;
   background-color: #1b1b1b !important;
第18行: 第84行:
}
}


/* 表格样式统一化 */
/* 标题样式 */
.mw-headline {
  font-size: 18px;
  font-weight: bold;
  border-left: 5px solid #888;
  padding-left: 10px;
  margin-bottom: 12px;
}
 
/* ===== 表格统一样式 ===== */
.wikitable {
.wikitable {
   background-color: #111 !important;
   background-color: #111 !important;
第37行: 第112行:
}
}


/* 输入框统一风格:亮灰底 + 暗边框 + 白字 */
/* 表格小屏支持横向滚动 */
.wikitable-container {
  overflow-x: auto;
}
 
/* ===== 输入表单类 ===== */
input[type="text"],
input[type="text"],
input[type="number"],
input[type="number"],
第50行: 第130行:
}
}


/* 按钮风格:深灰底 + 白字 + 悬停高亮 */
/* 按钮样式 */
input[type="button"],
input[type="button"],
input[type="submit"],
input[type="submit"],
第68行: 第148行:
}
}


/* 自动美化计算器区域(含输入框的父容器) */
/* ===== 计算器结构自动适配横排 ===== */
.mw-parser-output > div:has(input[type="number"]) {
.mw-parser-output > div:has(input[type="number"]) {
   display: flex;
   display: flex;
第75行: 第155行:
   gap: 16px;
   gap: 16px;
}
}
/* 四个计算器模块块的样式 */
.mw-parser-output > div:has(input[type="number"]) > div {
.mw-parser-output > div:has(input[type="number"]) > div {
   flex: 1 1 220px;
   flex: 1 1 220px;
第87行: 第165行:
}
}


/* 标题样式统一 */
/* ===== 精灵头像框优化 ===== */
.mw-headline {
.sprite-grid div {
  font-size: 18px;
  font-weight: bold;
  border-left: 5px solid #888;
  padding-left: 10px;
  margin-bottom: 12px;
}
 
/* 表格在小屏上可横向滚动 */
.wikitable-container {
  overflow-x: auto;
}
/* 设置整站页面背景为黑色 */
html, body {
  background-color: #000 !important;
  color: #f0f0f0 !important;
}
 
/* 侧边栏背景 */
#mw-panel {
  background-color: #111 !important;
  color: #f0f0f0 !important;
}
 
/* 左侧菜单链接颜色调整 */
#mw-panel a {
  color: #ccc !important;
}
#mw-panel a:hover {
  color: #fff !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;
}
 
/* 编辑工具栏背景 */
.vector-menu-content {
   background-color: #111 !important;
   background-color: #111 !important;
}
   border: 2px solid #444 !important;
 
/* 页面中不受控元素容器默认背景 */
#content,
#mw-content-text {
  background-color: transparent !important;
}
/* 设置所有主要容器背景为黑色 */
html, body {
  background-color: #000 !important;
  color: #f0f0f0 !important;
}
 
/* Vector 皮肤下:页面容器背景 */
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;
}
 
/* 修复左侧白色边栏背景 */
#mw-panel {
  background-color: #111 !important;
}
#mw-panel a {
  color: #ccc !important;
}
#mw-panel a:hover {
  color: #fff !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;
}
/* 黑色风格的头像方框 */
.sprite-grid div {
  background-color: #111 !important;        /* 深灰背景 */
   border: 2px solid #444 !important;         /* 深边框 */
   border-radius: 8px;
   border-radius: 8px;
   padding: 8px;
   padding: 8px;
第213行: 第180行:
   color: #ccc;
   color: #ccc;
}
}
/* 图片大小统一 */
.sprite-grid img {
.sprite-grid img {
   width: 64px;
   width: 64px;
第220行: 第185行:
   object-fit: cover;
   object-fit: cover;
}
}
/* 名称文字样式 */
.sprite-grid div span {
.sprite-grid div span {
   margin-top: 6px;
   margin-top: 6px;
第227行: 第190行:
   color: #ccc;
   color: #ccc;
}
}
/* 悬停时高亮边框 */
.sprite-grid div:hover {
.sprite-grid div:hover {
   border-color: #888 !important;
   border-color: #888 !important;
}
}

2025年5月27日 (二) 20:12的版本

/* ===== 页面整体布局和字体色调 ===== */
html, body {
  background-color: #000 !important;
  color: #f0f0f0 !important;
}

/* 限制页面宽度并居中显示 */
.mw-parser-output {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 全站结构背景 ===== */
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-grid div {
  background-color: #111 !important;
  border: 2px solid #444 !important;
  border-radius: 8px;
  padding: 8px;
  width: 100px;
  height: 120px;
  box-shadow: 0 0 6px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ccc;
}
.sprite-grid img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.sprite-grid div span {
  margin-top: 6px;
  font-size: 13px;
  color: #ccc;
}
.sprite-grid div:hover {
  border-color: #888 !important;
}