MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ============================================================ | /* ============================================================ | ||
修复 - "更多" 下拉按钮 + "监视" 图标 | |||
============================================================ */ | ============================================================ */ | ||
/* ===== | /* ===== "更多" 下拉按钮 - 修复 ===== */ | ||
#p-cactions .vector-menu-dropdown .vector-menu-heading, | |||
#p-cactions .mw-portlet .vector-menu-heading, | |||
#p-cactions .vector-menu-content .vector-menu-heading, | |||
.vector-dropdown .vector-menu-heading { | |||
color: #aaaaaa !important; | |||
background: transparent !important; | |||
# | |||
# | |||
.mw-portlet . | |||
# | |||
. | |||
. | |||
# | |||
background | |||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
padding: 6px 12px !important; | |||
border-radius: 4px !important; | |||
transition: all 0.25s ease !important; | |||
} | } | ||
#p- | #p-cactions .vector-menu-dropdown .vector-menu-heading:hover, | ||
#p-cactions .mw-portlet .vector-menu-heading:hover, | |||
.vector-dropdown .vector-menu-heading:hover { | |||
#p- | |||
color: #ffd700 !important; | color: #ffd700 !important; | ||
background-color: rgba(255, 215, 0, 0.12) !important; | |||
} | } | ||
/* | /* "更多" 按钮的label */ | ||
#p-cactions-label, | |||
#p-cactions .vector-menu-heading-label { | |||
#p- | |||
#p-cactions | |||
color: #aaaaaa !important; | color: #aaaaaa !important; | ||
background: transparent !important; | |||
} | } | ||
#p- | #p-cactions-label:hover, | ||
#p-cactions | #p-cactions .vector-menu-heading:hover #p-cactions-label { | ||
color: #ffd700 !important; | color: #ffd700 !important; | ||
} | } | ||
/* "更多" 下拉箭头图标 - 金色 */ | |||
#p-cactions | .vector-dropdown .vector-menu-heading::after, | ||
#p-cactions .vector-menu-heading::after { | |||
filter: invert(79%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) !important; | |||
} | } | ||
.vector-dropdown .vector-menu-heading:hover::after, | |||
#p-cactions .vector-menu-heading:hover::after { | |||
filter: invert(83%) sepia(100%) saturate(100%) hue-rotate(0deg) brightness(100%) !important; | |||
} | } | ||
/* ===== "监视" 星星图标 - 修复 ===== */ | |||
#ca-watch a, | |||
#ca-unwatch a, | |||
#ca-watch .vector-menu-heading, | |||
#ca-unwatch .vector-menu-heading { | |||
/* ===== | |||
#ca- | |||
color: #aaaaaa !important; | color: #aaaaaa !important; | ||
background: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
padding: 6px 12px !important; | |||
border-radius: 4px !important; | |||
transition: all 0.25s ease !important; | |||
display: inline-flex !important; | |||
align-items: center !important; | |||
gap: 4px !important; | |||
} | } | ||
#ca- | #ca-watch a:hover, | ||
#ca-unwatch a:hover { | |||
color: #ffd700 !important; | color: #ffd700 !important; | ||
background-color: rgba(255, 215, 0, 0.08) !important; | background-color: rgba(255, 215, 0, 0.08) !important; | ||
} | } | ||
.mw- | /* 监视星星图标 - 如果使用字体图标或SVG */ | ||
#ca-watch .mw-icon, | |||
#ca-unwatch .mw-icon, | |||
#ca-watch .vector-icon, | |||
#ca-unwatch .vector-icon, | |||
.mw-watchlink .mw-icon { | |||
# | |||
color: #aaaaaa !important; | color: #aaaaaa !important; | ||
fill: #aaaaaa !important; | |||
background: transparent !important; | |||
} | } | ||
# | #ca-watch:hover .mw-icon, | ||
#ca-watch a:hover .mw-icon, | |||
#ca-watch .mw-icon:hover { | |||
color: #ffd700 !important; | color: #ffd700 !important; | ||
fill: #ffd700 !important; | |||
} | } | ||
# | /* 如果星星是用Unicode字符 */ | ||
color: # | #ca-watch .mw-ui-icon::before, | ||
#ca-unwatch .mw-ui-icon::before { | |||
color: #aaaaaa !important; | |||
} | } | ||
#ca-watch:hover .mw-ui-icon::before, | |||
#ca-unwatch:hover .mw-ui-icon::before { | |||
.mw- | |||
# | |||
.mw- | |||
color: #ffd700 !important; | color: #ffd700 !important; | ||
} | } | ||
. | /* ===== 整个右侧导航区域统一透明 ===== */ | ||
# | #right-navigation, | ||
color: | #p-cactions, | ||
#p-cactions .vector-menu-content, | |||
#p-cactions .vector-menu-dropdown, | |||
#p-cactions .mw-portlet { | |||
background: transparent !important; | |||
background-color: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | } | ||
/* 下拉菜单展开后的内容面板 */ | |||
.vector-dropdown .vector-menu-content-list { | |||
/* | |||
. | |||
background-color: rgba(32, 32, 32, 0.95) !important; | background-color: rgba(32, 32, 32, 0.95) !important; | ||
border- | border: 1px solid rgba(255, 215, 0, 0.2) !important; | ||
box-shadow: 0 | border-radius: 8px !important; | ||
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important; | |||
} | } | ||
.vector-dropdown .vector-menu-content-list li a { | |||
color: #cccccc !important; | |||
background: transparent !important; | |||
padding: 6px 16px !important; | |||
color: # | transition: all 0.2s ease !important; | ||
padding: | |||
transition: all 0. | |||
} | } | ||
.vector-dropdown .vector-menu-content-list li a:hover { | |||
color: #ffd700 !important; | color: #ffd700 !important; | ||
background-color: rgba(255, 215, 0, 0.1) !important; | |||
} | } | ||
| 第844行: | 第527行: | ||
color: #4caf50; | color: #4caf50; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
2026年7月12日 (日) 17:33的版本
/* ============================================================
修复 - "更多" 下拉按钮 + "监视" 图标
============================================================ */
/* ===== "更多" 下拉按钮 - 修复 ===== */
#p-cactions .vector-menu-dropdown .vector-menu-heading,
#p-cactions .mw-portlet .vector-menu-heading,
#p-cactions .vector-menu-content .vector-menu-heading,
.vector-dropdown .vector-menu-heading {
color: #aaaaaa !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 6px 12px !important;
border-radius: 4px !important;
transition: all 0.25s ease !important;
}
#p-cactions .vector-menu-dropdown .vector-menu-heading:hover,
#p-cactions .mw-portlet .vector-menu-heading:hover,
.vector-dropdown .vector-menu-heading:hover {
color: #ffd700 !important;
background-color: rgba(255, 215, 0, 0.12) !important;
}
/* "更多" 按钮的label */
#p-cactions-label,
#p-cactions .vector-menu-heading-label {
color: #aaaaaa !important;
background: transparent !important;
}
#p-cactions-label:hover,
#p-cactions .vector-menu-heading:hover #p-cactions-label {
color: #ffd700 !important;
}
/* "更多" 下拉箭头图标 - 金色 */
.vector-dropdown .vector-menu-heading::after,
#p-cactions .vector-menu-heading::after {
filter: invert(79%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) !important;
}
.vector-dropdown .vector-menu-heading:hover::after,
#p-cactions .vector-menu-heading:hover::after {
filter: invert(83%) sepia(100%) saturate(100%) hue-rotate(0deg) brightness(100%) !important;
}
/* ===== "监视" 星星图标 - 修复 ===== */
#ca-watch a,
#ca-unwatch a,
#ca-watch .vector-menu-heading,
#ca-unwatch .vector-menu-heading {
color: #aaaaaa !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 6px 12px !important;
border-radius: 4px !important;
transition: all 0.25s ease !important;
display: inline-flex !important;
align-items: center !important;
gap: 4px !important;
}
#ca-watch a:hover,
#ca-unwatch a:hover {
color: #ffd700 !important;
background-color: rgba(255, 215, 0, 0.08) !important;
}
/* 监视星星图标 - 如果使用字体图标或SVG */
#ca-watch .mw-icon,
#ca-unwatch .mw-icon,
#ca-watch .vector-icon,
#ca-unwatch .vector-icon,
.mw-watchlink .mw-icon {
color: #aaaaaa !important;
fill: #aaaaaa !important;
background: transparent !important;
}
#ca-watch:hover .mw-icon,
#ca-watch a:hover .mw-icon,
#ca-watch .mw-icon:hover {
color: #ffd700 !important;
fill: #ffd700 !important;
}
/* 如果星星是用Unicode字符 */
#ca-watch .mw-ui-icon::before,
#ca-unwatch .mw-ui-icon::before {
color: #aaaaaa !important;
}
#ca-watch:hover .mw-ui-icon::before,
#ca-unwatch:hover .mw-ui-icon::before {
color: #ffd700 !important;
}
/* ===== 整个右侧导航区域统一透明 ===== */
#right-navigation,
#p-cactions,
#p-cactions .vector-menu-content,
#p-cactions .vector-menu-dropdown,
#p-cactions .mw-portlet {
background: transparent !important;
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* 下拉菜单展开后的内容面板 */
.vector-dropdown .vector-menu-content-list {
background-color: rgba(32, 32, 32, 0.95) !important;
border: 1px solid rgba(255, 215, 0, 0.2) !important;
border-radius: 8px !important;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}
.vector-dropdown .vector-menu-content-list li a {
color: #cccccc !important;
background: transparent !important;
padding: 6px 16px !important;
transition: all 0.2s ease !important;
}
.vector-dropdown .vector-menu-content-list li a:hover {
color: #ffd700 !important;
background-color: rgba(255, 215, 0, 0.1) !important;
}
/* 图标列 - 自适应宽度 */
.wikitable .icon-cell {
width: 1%;
white-space: nowrap;
text-align: center;
vertical-align: middle;
}
/* 图标容器 - 固定大小并居中裁剪大图 */
.wikitable .icon-cell img {
width: 32px;
height: 32px;
object-fit: contain;
display: block;
margin: 0 auto;
}
/* ===== 战略配备 - 引用卡片样式 ===== */
.stratagem-card {
flex: 1;
border: 2px solid #ffd700;
border-radius: 8px;
padding: 16px 20px;
/* 暖灰深色渐变 - 从深灰到暖黑 */
background: linear-gradient(160deg, #2a2a2a, #1a1a1a, #121212);
color: #fff;
font-family: Arial, sans-serif;
}
.stratagem-badge {
font-size: 18px;
color: #ffd700;
font-weight: bold;
margin-bottom: -6px;
}
.stratagem-title {
font-size: 28px;
font-weight: bold;
margin-top: 8px;
}
.stratagem-desc {
font-size: 14px;
color: #aaa;
}
/* common.css */
.stratagem-table {
border-collapse: collapse;
width: 100%;
font-size: 18px;
}
.stratagem-table td {
padding: 6px 8px;
border: none;
vertical-align: middle;
}
.stratagem-table tr {
border-top: 1px solid #333;
}
.stratagem-table tr:first-child {
border-top: none;
}
/* "数据"和"满级舰船模块"保持灰色 */
.label-main {
color: #888;
}
/* "呼叫时间""使用次数""冷却时间"白色 */
/* 标签颜色条 */
.label-sub {
display: inline-flex;
align-items: center;
vertical-align: middle;
}
.label-sub .color-bar {
display: inline-block;
width: 6px;
height: 1em;
background: #ffffff;
flex-shrink: 0;
margin-right: 4px;
transform: translateY(-1px); /* 上移2px,如果还不够就继续加大数值 */
}
/* 数值列白色加粗 */
.stratagem-table td:nth-child(2),
.stratagem-table td:nth-child(4),
.stratagem-table td:nth-child(6) {
color: #fff;
font-weight: bold;
text-align: right;
}
/* ===== 战略配备弹头属性表格样式 ===== */
.table-stratagem {
width: 100%;
text-align: center;
border-collapse: collapse;
border: 1px solid #ccc;
font-family: 'Segoe UI', Arial, sans-serif;
}
.table-stratagem .header-title {
background-color: #f5f5f5;
color: #222;
font-size: 20px;
font-weight: bold;
padding: 12px 10px;
border-bottom: 2px solid #ccc;
}
.table-stratagem .header-col {
background-color: #e9e9e9;
color: #222;
font-size: 16px;
font-weight: bold;
text-align: center;
padding: 10px 12px;
border-bottom: 1px solid #ccc;
}
.table-stratagem .header-col-left {
border-right: 1px solid #ccc;
}
.table-stratagem .cell-key {
background-color: #f9f9f9;
color: #222;
font-size: 15px;
font-weight: 600;
text-align: center;
padding: 8px 12px;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
}
.table-stratagem .cell-value {
background-color: #ffffff;
color: #222;
font-size: 14px;
text-align: center;
padding: 8px 12px;
border-bottom: 1px solid #eee;
}
.table-stratagem .cell-value .main-value {
font-weight: bold;
}
.table-stratagem .cell-value .desc {
color: #888;
font-size: 12px;
font-weight: 400;
}
/* ===== 伤害属性表格样式 ===== */
.table-damage {
width: 100%;
text-align: center;
border-collapse: collapse;
border: 1px solid #ccc;
font-family: 'Segoe UI', Arial, sans-serif;
}
.table-damage .header-title {
background-color: #f5f5f5;
color: #222;
font-size: 20px;
font-weight: bold;
padding: 12px 10px;
border-bottom: 2px solid #ccc;
}
.table-damage .header-col {
background-color: #e9e9e9;
color: #222;
font-size: 16px;
font-weight: bold;
text-align: center;
padding: 10px 12px;
border-bottom: 1px solid #ccc;
}
.table-damage .header-col-left {
border-right: 1px solid #ccc;
}
.table-damage .cell-key {
background-color: #f9f9f9;
color: #222;
font-size: 15px;
font-weight: 600;
text-align: center;
padding: 8px 12px;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
}
.table-damage .cell-value {
background-color: #ffffff;
color: #222;
font-size: 14px;
text-align: center;
padding: 8px 12px;
border-bottom: 1px solid #eee;
}
.table-damage .cell-value .main-value {
font-weight: bold;
}
.table-damage .cell-value .desc {
color: #888;
font-size: 12px;
font-weight: 400;
}
/* 为伤害数值添加颜色标识(可选) */
.table-damage .cell-value .main-value[data-type="damage"] { color: #d32f2f; }
.table-damage .cell-value .main-value[data-type="penetration"] { color: #1976d2; }
/* ===== 爆炸属性表格样式 ===== */
.table-explosion {
width: 100%;
text-align: center;
border-collapse: collapse;
border: 1px solid #ccc;
font-family: 'Segoe UI', Arial, sans-serif;
}
.table-explosion .header-title {
background-color: #f5f5f5;
color: #222;
font-size: 20px;
font-weight: bold;
padding: 12px 10px;
border-bottom: 2px solid #ccc;
}
.table-explosion .header-col {
background-color: #e9e9e9;
color: #222;
font-size: 16px;
font-weight: bold;
text-align: center;
padding: 10px 12px;
border-bottom: 1px solid #ccc;
}
.table-explosion .header-col-left {
border-right: 1px solid #ccc;
}
.table-explosion .cell-key {
background-color: #f9f9f9;
color: #222;
font-size: 15px;
font-weight: 600;
text-align: center;
padding: 8px 12px;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
}
.table-explosion .cell-value {
background-color: #ffffff;
color: #222;
font-size: 14px;
text-align: center;
padding: 8px 12px;
border-bottom: 1px solid #eee;
}
.table-explosion .cell-value .main-value {
font-weight: bold;
}
.table-explosion .cell-value .desc {
color: #888;
font-size: 12px;
font-weight: 400;
}
/* 为不同数值类型添加颜色标识(可选) */
.table-explosion .cell-value .main-value[data-type="radius"] { color: #1976d2; }
.table-explosion .cell-value .main-value[data-type="boolean"] { color: #2e7d32; }
.table-explosion .cell-value .main-value[data-type="id"] { color: #d32f2f; }
/* 舰船模块升级表格 */
.ship-module-table {
width: 100%;
border-collapse: collapse;
font-size: 15px;
background: linear-gradient(160deg, #2a2a2a, #1a1a1a, #121212);
color: #fff;
border: 2px solid #ffd700;
border-radius: 8px;
overflow: hidden;
text-align: center;
}
.ship-module-table th,
.ship-module-table td {
padding: 10px 12px;
border: none;
background: transparent;
}
.ship-module-table th {
color: #ffd700;
font-weight: bold;
border-bottom: 2px solid #ffd700;
}
.ship-module-table td {
border-bottom: 1px solid #444;
}
.ship-module-table tr:last-child td {
border-bottom: none;
}
.ship-module-table .title-row {
font-size: 22px;
font-weight: bold;
color: #ffd700;
text-align: center;
border-bottom: 2px solid #ffd700;
}
.ship-module-table .col-name {
color: #fff;
font-weight: bold;
}
.ship-module-table .col-effect {
color: #ccc;
}
.ship-module-table .col-type {
color: #ffd700;
}
.ship-module-table .col-center {
text-align: center;
color: #fff;
}
.ship-module-table .col-zero {
text-align: center;
color: #666;
}
.ship-module-table .col-upgrade {
color: #4caf50;
font-weight: bold;
}