MediaWiki:Common.css:修订间差异

来自赛尔号精灵图鉴
跳转到导航 跳转到搜索
无编辑摘要
Len留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 黑色主背景 */
/*************************
* 全局主题:暗黑背景
*************************/
html, body {
html, body {
   background-color: #000 !important;
   background-color: #000 !important;
第5行: 第7行:
}
}


/* 内容区块暗灰背景 + 阴影 */
/*************************
* 内容区块:暗灰卡片样式
*************************/
.mw-parser-output > * {
.mw-parser-output > * {
   background-color: #1a1a1a !important;
   background-color: #1a1a1a !important;
第13行: 第17行:
   border-radius: 12px;
   border-radius: 12px;
   box-shadow: 0 0 10px rgba(0,0,0,0.4);
   box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
}


/* 表格视觉层次 */
/*************************
* 表格美化(wikitable)
*************************/
.wikitable {
.wikitable {
   background-color: #111 !important;
   background-color: #111 !important;
第31行: 第36行:
}
}


/* 顶部区域保持纯黑,但文字亮一点 */
/*************************
* 顶部区域 + 左侧边栏
*************************/
.vector-header,
.vector-header,
.vector-sticky-header,
.vector-sticky-header,
第40行: 第47行:
}
}


/* 左侧边栏改为深灰 */
#mw-panel {
#mw-panel {
   background-color: #111 !important;
   background-color: #111 !important;
第47行: 第53行:
}
}


/* 卡片 hover 提亮 */
/*************************
* 鼠标悬停高亮(整体卡片 hover 效果)
*************************/
.mw-parser-output > *:hover {
.mw-parser-output > *:hover {
   background-color: #222 !important;
   background-color: #222 !important;
   box-shadow: 0 0 12px rgba(255,255,255,0.05);
   box-shadow: 0 0 12px rgba(255,255,255,0.05);
   transition: background-color 0.2s ease;
   transition: background-color 0.2s ease;
}
/* 首页头像块整体容器优化(居中显示) */
.mw-parser-output > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}
/* 单个头像卡片 */
.mw-parser-output > div > div {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 6px;
  width: 90px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 头像卡片悬停高亮 */
.mw-parser-output > div > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}
}


/* 卡片内头像图片 */
/*************************
.mw-parser-output > div > div img {
* 首页头像区域排版(.sprite-grid)
  border-radius: 8px;
*************************/
  width: 100%;
  height: auto;
}
.sprite-grid {
.sprite-grid {
   display: grid;
   display: grid;
第95行: 第75行:
}
}


.sprite-grid > div {
/*************************
   background-color: #1a1a1a;
* 精灵卡片样式
*************************/
.sprite-grid > div,
.mw-parser-output > div > div {
   background-color: #1a1a1a !important;
   border: 1px solid #444;
   border: 1px solid #444;
   border-radius: 10px;
   border-radius: 12px;
   padding: 6px 4px;
  padding: 10px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
   width: 100px;
   width: 100px;
   text-align: center;
   text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
   transition: transform 0.2s ease;
   transition: transform 0.2s ease;
}
}


.sprite-grid > div:hover {
.sprite-grid > div:hover,
.mw-parser-output > div > div:hover {
   transform: translateY(-4px);
   transform: translateY(-4px);
   box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
   box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
}


.sprite-grid img {
/*************************
  border-radius: 8px;
* 图片外框(白色背景改为灰色)
  width: 100%;
*************************/
  height: auto;
}
.sprite-grid > div {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  width: 110px;
  text-align: center;
}
 
.sprite-grid > div img {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 4px;
  width: 100%;
  height: auto;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.sprite-name {
  margin-top: 4px;
  background: transparent !important;
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px #000;
}
/* 外层卡片背景:深灰 */
.mw-parser-output > div > div {
  background-color: #1a1a1a !important;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  width: 90px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
 
/* 替换图片外框容器的默认白色背景 */
.mw-parser-output a.image {
.mw-parser-output a.image {
   background-color: #2a2a2a !important;
   background-color: #2a2a2a !important;
第163行: 第108行:
}
}


/* 彻底移除图片自身的白背景、阴影和边框 */
/*************************
.mw-parser-output a.image img {
* 图片自身(去白底和阴影)
*************************/
.mw-parser-output a.image img,
.sprite-grid img {
   background: transparent !important;
   background: transparent !important;
  border: none !important;
   box-shadow: none !important;
   box-shadow: none !important;
  border: none !important;
   border-radius: 6px;
   border-radius: 6px;
  width: 100%;
  height: auto;
}
}


/* 精灵名称文本微调(置中 + 色彩) */
/*************************
* 精灵名称样式
*************************/
.mw-parser-output > div > div br + span,
.mw-parser-output > div > div br + span,
.mw-parser-output > div > div br + div {
.mw-parser-output > div > div br + div,
.sprite-name {
   color: #f0f0f0 !important;
   color: #f0f0f0 !important;
   font-size: 14px;
   font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  background: transparent !important;
  text-shadow: 0 1px 2px #000;
}
}

2025年5月26日 (一) 21:32的版本

/*************************
 * 全局主题:暗黑背景
 *************************/
html, body {
  background-color: #000 !important;
  color: #f0f0f0 !important;
}

/*************************
 * 内容区块:暗灰卡片样式
 *************************/
.mw-parser-output > * {
  background-color: #1a1a1a !important;
  color: #f0f0f0 !important;
  padding: 16px 24px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/*************************
 * 表格美化(wikitable)
 *************************/
.wikitable {
  background-color: #111 !important;
  border: 1px solid #444 !important;
  color: #ccc !important;
}
.wikitable th {
  background-color: #222 !important;
  color: #fff !important;
}
.wikitable td {
  background-color: #111 !important;
  color: #ccc !important;
}

/*************************
 * 顶部区域 + 左侧边栏
 *************************/
.vector-header,
.vector-sticky-header,
.vector-header-container {
  background-color: #000 !important;
  color: #eee !important;
  border: none !important;
}

#mw-panel {
  background-color: #111 !important;
  border-right: 1px solid #333 !important;
  color: #eee !important;
}

/*************************
 * 鼠标悬停高亮(整体卡片 hover 效果)
 *************************/
.mw-parser-output > *:hover {
  background-color: #222 !important;
  box-shadow: 0 0 12px rgba(255,255,255,0.05);
  transition: background-color 0.2s ease;
}

/*************************
 * 首页头像区域排版(.sprite-grid)
 *************************/
.sprite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px 24px;
  justify-items: center;
  padding: 20px;
  margin: 0 auto;
  max-width: 1400px;
}

/*************************
 * 精灵卡片样式
 *************************/
.sprite-grid > div,
.mw-parser-output > div > div {
  background-color: #1a1a1a !important;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  width: 100px;
  text-align: center;
  transition: transform 0.2s ease;
}

.sprite-grid > div:hover,
.mw-parser-output > div > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/*************************
 * 图片外框(白色背景改为灰色)
 *************************/
.mw-parser-output a.image {
  background-color: #2a2a2a !important;
  display: inline-block;
  padding: 4px;
  border-radius: 8px;
  box-shadow: none !important;
  border: none !important;
}

/*************************
 * 图片自身(去白底和阴影)
 *************************/
.mw-parser-output a.image img,
.sprite-grid img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 6px;
  width: 100%;
  height: auto;
}

/*************************
 * 精灵名称样式
 *************************/
.mw-parser-output > div > div br + span,
.mw-parser-output > div > div br + div,
.sprite-name {
  color: #f0f0f0 !important;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  background: transparent !important;
  text-shadow: 0 1px 2px #000;
}