MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
/* | /* 页面最大宽度 + 居中 */ | ||
.mw-parser-output { | .mw-parser-output { | ||
max-width: | max-width: 960px; | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 20px; | padding: 20px; | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1.7; | line-height: 1.7; | ||
color: #f0f0f0; | |||
} | } | ||
/* | /* 所有主要内容模块统一圆角 + 阴影 + 暗色背景 */ | ||
.mw-parser-output > * { | .mw-parser-output > * { | ||
background-color: # | background-color: #1b1b1b !important; | ||
padding: 20px; | |||
padding: | |||
margin-bottom: 24px; | margin-bottom: 24px; | ||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 0 0 | box-shadow: 0 0 8px rgba(255, 255, 255, 0.05); | ||
} | } | ||
/* | /* 表格样式统一化 */ | ||
.wikitable { | .wikitable { | ||
background-color: #111 !important; | background-color: #111 !important; | ||
border: | border-collapse: collapse; | ||
border: 1px solid #444; | |||
width: 100%; | width: 100%; | ||
} | } | ||
.wikitable th { | .wikitable th { | ||
background-color: #222 !important; | background-color: #222 !important; | ||
color: #fff; | color: #fff !important; | ||
padding: 6px 10px; | padding: 6px 10px; | ||
} | } | ||
.wikitable td { | .wikitable td { | ||
background-color: #111 !important; | background-color: #111 !important; | ||
color: #ccc !important; | |||
padding: 6px 10px; | padding: 6px 10px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* | /* 输入框统一风格:亮灰底 + 暗边框 + 白字 */ | ||
input[type="text"], | |||
input[type="number"], | |||
select { | |||
input[type="text"], input[type="number"], | |||
background-color: #2a2a2a !important; | background-color: #2a2a2a !important; | ||
color: #f0f0f0 !important; | color: #f0f0f0 !important; | ||
border: 1px solid #555 !important; | border: 1px solid #555 !important; | ||
border-radius: 6px !important; | border-radius: 6px !important; | ||
padding: | padding: 6px 10px; | ||
width: 100px; | width: 100px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* | /* 按钮风格:深灰底 + 白字 + 悬停高亮 */ | ||
input[type="button"], input[type="submit"], button { | input[type="button"], | ||
background-color: # | input[type="submit"], | ||
button { | |||
background-color: #333 !important; | |||
color: #fff !important; | color: #fff !important; | ||
border: none; | border: none; | ||
padding: 6px 12px; | padding: 6px 12px; | ||
border-radius: 6px; | border-radius: 6px; | ||
margin-top: 6px; | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
input[type="button"]:hover, input[type="submit"]:hover, button:hover { | input[type="button"]:hover, | ||
background-color: # | input[type="submit"]:hover, | ||
button:hover { | |||
background-color: #555 !important; | |||
} | } | ||
/* | /* 自动美化计算器区域(含输入框的父容器) */ | ||
.mw-parser-output > div:has(input[type="number"]) { | .mw-parser-output > div:has(input[type="number"]) { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: space-between; | |||
gap: 16px; | gap: 16px; | ||
} | } | ||
/* | /* 四个计算器模块块的样式 */ | ||
. | .mw-parser-output > div:has(input[type="number"]) > div { | ||
background-color: # | flex: 1 1 220px; | ||
border- | 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; | |||
} | } | ||
/* 标题样式统一 */ | |||
.mw-headline { | |||
font-size: 18px; | |||
font-weight: bold; | |||
. | border-left: 5px solid #888; | ||
padding-left: 10px; | |||
margin-bottom: 12px; | |||
} | } | ||
/* | /* 表格在小屏上可横向滚动 */ | ||
. | .wikitable-container { | ||
overflow-x: auto; | |||
} | } |
2025年5月27日 (二) 20:05的版本
/* 页面最大宽度 + 居中 */
.mw-parser-output {
max-width: 960px;
margin: 0 auto;
padding: 20px;
font-size: 14px;
line-height: 1.7;
color: #f0f0f0;
}
/* 所有主要内容模块统一圆角 + 阴影 + 暗色背景 */
.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);
}
/* 表格样式统一化 */
.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;
}
/* 输入框统一风格:亮灰底 + 暗边框 + 白字 */
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;
}
/* 标题样式统一 */
.mw-headline {
font-size: 18px;
font-weight: bold;
border-left: 5px solid #888;
padding-left: 10px;
margin-bottom: 12px;
}
/* 表格在小屏上可横向滚动 */
.wikitable-container {
overflow-x: auto;
}