打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 贴近 zh.minecraft.wiki 浅色风格 */
/* =========================
.outrex-container {
  OUTREX 首页 - Citizen 皮肤适配
    display: flex;
  建议放到 MediaWiki:Citizen.css
    gap: 20px;
  ========================= */
    max-width: 1200px;
 
    margin: 20px auto;
/* 让首页内容更接近整站宽度 */
    padding: 0 10px;
.page-Main_Page .mw-body,
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
.page-主页 .mw-body,
    color: #222;
.page-首页 .mw-body {
max-width: 1600px;
}
 
/* 首页主容器 */
.outrex-home {
display: grid;
grid-template-columns: minmax(0, 1fr) 320px;
gap: 20px;
align-items: start;
margin: 20px 0 32px;
}
}


/* 左主区 */
.outrex-main {
.outrex-main {
    width: 72%;
min-width: 0;
}
 
/* 右侧栏 */
.outrex-side {
min-width: 0;
}
}


.outrex-sidebar {
/* 通用卡片 */
    width: 28%;
.outrex-card {
background: var(--background-color-base, #fff);
border: 1px solid var(--border-color-subtle, #dadde3);
border-radius: 16px;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
overflow: hidden;
}
 
/* 卡片标题 */
.outrex-card-head {
padding: 14px 18px;
font-size: 15px;
font-weight: 700;
border-bottom: 1px solid var(--border-color-muted, #eaecf0);
background: var(--background-color-neutral-subtle, #f8f9fa);
}
 
/* 卡片内容 */
.outrex-card-body {
padding: 18px;
}
}


/* 顶部双卡片 */
/* 顶部双卡片 */
.outrex-topcards {
.outrex-topcards {
    display: flex;
display: grid;
    gap: 16px;
grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
gap: 16px;
margin-bottom: 16px;
}
}


.card {
.outrex-hero-card {
    flex: 1;
position: relative;
    background: #f8f9fa;
min-height: 220px;
    border: 1px solid #c8ccd1;
background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 2px;
color: #fff;
    padding: 16px;
border-radius: 18px;
overflow: hidden;
text-decoration: none;
display: block;
}
 
.outrex-hero-card:hover {
text-decoration: none;
transform: translateY(-2px);
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
transition: all 0.2s ease;
}
 
.outrex-hero-inner {
position: relative;
z-index: 2;
padding: 22px;
}
 
.outrex-hero-title {
font-size: 24px;
font-weight: 800;
line-height: 1.2;
margin-bottom: 8px;
color: #fff;
}
 
.outrex-hero-desc {
font-size: 14px;
line-height: 1.6;
color: rgba(255,255,255,0.82);
max-width: 90%;
}
 
.outrex-hero-meta {
margin-top: 14px;
font-size: 12px;
color: rgba(255,255,255,0.72);
}
}


/* 公告条 */
/* 公告条 */
.outrex-banner {
.outrex-banner {
    background: #eaf3ff;
margin: 0 0 16px;
    border: 1px solid #c8ccd1;
padding: 14px 18px;
    padding: 10px 14px;
border-radius: 14px;
    margin-bottom: 20px;
background: linear-gradient(90deg, #2f9e44 0%, #37b24d 100%);
    text-align: center;
color: #fff;
    font-weight: bold;
font-weight: 700;
    color: #2a4b8d;
font-size: 14px;
box-shadow: 0 8px 24px rgba(55, 178, 77, 0.2);
}
}


/* 图标宫格 */
.outrex-banner a {
color: #fff;
text-decoration: none;
}
 
/* 8格入口 */
.outrex-grid {
.outrex-grid {
    display: grid;
display: grid;
    grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
gap: 14px;
    margin-bottom: 20px;
margin-bottom: 16px;
}
}


.grid-item {
.outrex-grid .grid-item {
    background: #f8f9fa;
display: flex;
    border: 1px solid #c8ccd1;
flex-direction: column;
    padding: 16px;
align-items: center;
    text-align: center;
justify-content: center;
min-height: 108px;
padding: 14px 10px;
border-radius: 16px;
background: var(--background-color-base, #fff);
border: 1px solid var(--border-color-subtle, #dadde3);
text-decoration: none;
color: var(--color-base, #202122);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
box-sizing: border-box;
}
}
.grid-item:hover {
 
    background: #eaf3ff;
.outrex-grid .grid-item:hover {
transform: translateY(-3px);
text-decoration: none;
border-color: var(--border-color-progressive, #6485d1);
box-shadow: 0 12px 28px rgba(0,0,0,0.08);
background: var(--background-color-interactive-subtle--hover, #eaecf0);
}
 
.outrex-grid .grid-item img {
width: 38px;
height: 38px;
margin-bottom: 8px;
object-fit: contain;
}
 
.outrex-grid .grid-item span {
font-size: 14px;
font-weight: 600;
line-height: 1.4;
text-align: center;
color: inherit;
}
}


/* 文章模块 */
/* 文章模块 */
.outrex-articles {
.outrex-columns {
    display: flex;
display: grid;
    gap: 16px;
grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
gap: 16px;
margin-bottom: 16px;
}
 
.outrex-article {
background: var(--background-color-base, #fff);
border: 1px solid var(--border-color-subtle, #dadde3);
border-radius: 16px;
overflow: hidden;
}
}


.article {
.outrex-article-head {
    flex: 1;
padding: 14px 18px;
    background: #ffffff;
font-size: 15px;
    border: 1px solid #c8ccd1;
font-weight: 700;
    padding: 16px;
border-bottom: 1px solid var(--border-color-muted, #eaecf0);
background: var(--background-color-neutral-subtle, #f8f9fa);
}
 
.outrex-article-body {
padding: 18px;
font-size: 14px;
line-height: 1.8;
color: var(--color-base, #202122);
}
}


/* 底部小入口 */
/* 底部小入口 */
.outrex-smallgrid {
.outrex-smallgrid {
    display: grid;
display: grid;
    grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
gap: 12px;
}
 
.outrex-smallgrid a {
display: flex;
align-items: center;
justify-content: center;
min-height: 78px;
padding: 12px;
border-radius: 14px;
background: var(--background-color-base, #fff);
border: 1px solid var(--border-color-subtle, #dadde3);
text-decoration: none;
color: var(--color-base, #202122);
font-weight: 600;
transition: all 0.2s ease;
}
 
.outrex-smallgrid a:hover {
text-decoration: none;
transform: translateY(-2px);
box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
 
/* 右侧栏卡片 */
.outrex-side .outrex-card {
margin-bottom: 14px;
}
 
.outrex-logo-wrap {
text-align: center;
padding: 22px 18px 12px;
}
 
.outrex-logo-wrap img {
max-width: 180px;
height: auto;
}
 
.outrex-site-desc {
margin-top: 12px;
font-size: 13px;
line-height: 1.7;
color: var(--color-subtle, #54595d);
text-align: left;
}
 
.outrex-join-btn {
display: block;
width: 100%;
padding: 14px 16px;
border-radius: 12px;
background: linear-gradient(90deg, #2f9e44 0%, #37b24d 100%);
color: #fff;
text-align: center;
font-weight: 800;
text-decoration: none;
box-sizing: border-box;
}
}
.outrex-smallgrid > div {
 
    background: #f8f9fa;
.outrex-join-btn:hover {
    border: 1px solid #c8ccd1;
text-decoration: none;
    padding: 12px;
filter: brightness(1.03);
    text-align: center;
}
}


/* 右侧模块 */
/* 右侧社交按钮 */
.box {
.outrex-socials {
    background: #f8f9fa;
display: grid;
    border: 1px solid #c8ccd1;
grid-template-columns: repeat(3, 1fr);
    padding: 14px;
gap: 10px;
    margin-bottom: 12px;
}
}


.box.join {
.outrex-socials a {
    background: #36c;
display: flex;
    color: white;
align-items: center;
    font-weight: bold;
justify-content: center;
    text-align: center;
min-height: 44px;
    border-color: #36c;
border-radius: 12px;
background: var(--background-color-interactive, #eaecf0);
color: var(--color-base, #202122);
text-decoration: none;
font-weight: 700;
}
}
.box.join:hover {
 
    background: #447ff5;
.outrex-socials a:hover {
background: var(--background-color-interactive--hover, #dadde3);
text-decoration: none;
}
 
/* 列表区 */
.outrex-list {
margin: 0;
padding: 0;
list-style: none;
}
 
.outrex-list li {
padding: 10px 0;
border-bottom: 1px solid var(--border-color-muted, #eaecf0);
font-size: 14px;
line-height: 1.6;
}
 
.outrex-list li:last-child {
border-bottom: 0;
}
 
/* 数据块 */
.outrex-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
 
.outrex-stat {
padding: 12px;
border-radius: 12px;
background: var(--background-color-neutral-subtle, #f8f9fa);
border: 1px solid var(--border-color-muted, #eaecf0);
text-align: center;
}
 
.outrex-stat-num {
display: block;
font-size: 18px;
font-weight: 800;
line-height: 1.2;
}
 
.outrex-stat-label {
display: block;
margin-top: 4px;
font-size: 12px;
color: var(--color-subtle, #54595d);
}
 
/* 暗色模式 */
body.wgl-theme-dark .outrex-hero-card {
background: linear-gradient(135deg, #1c2430 0%, #11161f 100%);
}
 
body.wgl-theme-dark .outrex-card,
body.wgl-theme-dark .outrex-article,
body.wgl-theme-dark .outrex-grid .grid-item,
body.wgl-theme-dark .outrex-smallgrid a {
box-shadow: none;
}
 
body.wgl-theme-dark .outrex-grid .grid-item:hover,
body.wgl-theme-dark .outrex-smallgrid a:hover {
box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
 
/* Citizen 下首页正文通常有默认间距,压一压 */
.page-Main_Page #mw-content-text > .mw-parser-output > *:first-child,
.page-主页 #mw-content-text > .mw-parser-output > *:first-child,
.page-首页 #mw-content-text > .mw-parser-output > *:first-child {
margin-top: 0;
}
 
/* 平板 */
@media screen and (max-width: 1100px) {
.outrex-home {
grid-template-columns: 1fr;
}
 
.outrex-side {
order: 2;
}
 
.outrex-main {
order: 1;
}
}
 
/* 小屏 */
@media screen and (max-width: 720px) {
.outrex-topcards,
.outrex-columns,
.outrex-grid,
.outrex-smallgrid,
.outrex-stats,
.outrex-socials {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
 
.outrex-hero-card {
min-height: 180px;
}
 
.outrex-hero-title {
font-size: 20px;
}
}
 
/* 手机 */
@media screen and (max-width: 520px) {
.outrex-topcards,
.outrex-columns {
grid-template-columns: 1fr;
}
 
.outrex-grid,
.outrex-smallgrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
 
.outrex-grid .grid-item {
min-height: 94px;
padding: 10px 8px;
}
 
.outrex-grid .grid-item img {
width: 30px;
height: 30px;
}
 
.outrex-grid .grid-item span {
font-size: 13px;
}
}
}

2026年4月11日 (六) 20:18的版本

/* =========================
   OUTREX 首页 - Citizen 皮肤适配
   建议放到 MediaWiki:Citizen.css
   ========================= */

/* 让首页内容更接近整站宽度 */
.page-Main_Page .mw-body,
.page-主页 .mw-body,
.page-首页 .mw-body {
	max-width: 1600px;
}

/* 首页主容器 */
.outrex-home {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
	margin: 20px 0 32px;
}

/* 左主区 */
.outrex-main {
	min-width: 0;
}

/* 右侧栏 */
.outrex-side {
	min-width: 0;
}

/* 通用卡片 */
.outrex-card {
	background: var(--background-color-base, #fff);
	border: 1px solid var(--border-color-subtle, #dadde3);
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

/* 卡片标题 */
.outrex-card-head {
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 700;
	border-bottom: 1px solid var(--border-color-muted, #eaecf0);
	background: var(--background-color-neutral-subtle, #f8f9fa);
}

/* 卡片内容 */
.outrex-card-body {
	padding: 18px;
}

/* 顶部双卡片 */
.outrex-topcards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.outrex-hero-card {
	position: relative;
	min-height: 220px;
	background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
	color: #fff;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	display: block;
}

.outrex-hero-card:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
	transition: all 0.2s ease;
}

.outrex-hero-inner {
	position: relative;
	z-index: 2;
	padding: 22px;
}

.outrex-hero-title {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 8px;
	color: #fff;
}

.outrex-hero-desc {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255,255,255,0.82);
	max-width: 90%;
}

.outrex-hero-meta {
	margin-top: 14px;
	font-size: 12px;
	color: rgba(255,255,255,0.72);
}

/* 公告条 */
.outrex-banner {
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 14px;
	background: linear-gradient(90deg, #2f9e44 0%, #37b24d 100%);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(55, 178, 77, 0.2);
}

.outrex-banner a {
	color: #fff;
	text-decoration: none;
}

/* 8格入口 */
.outrex-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.outrex-grid .grid-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 108px;
	padding: 14px 10px;
	border-radius: 16px;
	background: var(--background-color-base, #fff);
	border: 1px solid var(--border-color-subtle, #dadde3);
	text-decoration: none;
	color: var(--color-base, #202122);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.outrex-grid .grid-item:hover {
	transform: translateY(-3px);
	text-decoration: none;
	border-color: var(--border-color-progressive, #6485d1);
	box-shadow: 0 12px 28px rgba(0,0,0,0.08);
	background: var(--background-color-interactive-subtle--hover, #eaecf0);
}

.outrex-grid .grid-item img {
	width: 38px;
	height: 38px;
	margin-bottom: 8px;
	object-fit: contain;
}

.outrex-grid .grid-item span {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	color: inherit;
}

/* 文章模块 */
.outrex-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.outrex-article {
	background: var(--background-color-base, #fff);
	border: 1px solid var(--border-color-subtle, #dadde3);
	border-radius: 16px;
	overflow: hidden;
}

.outrex-article-head {
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 700;
	border-bottom: 1px solid var(--border-color-muted, #eaecf0);
	background: var(--background-color-neutral-subtle, #f8f9fa);
}

.outrex-article-body {
	padding: 18px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--color-base, #202122);
}

/* 底部小入口 */
.outrex-smallgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.outrex-smallgrid a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 78px;
	padding: 12px;
	border-radius: 14px;
	background: var(--background-color-base, #fff);
	border: 1px solid var(--border-color-subtle, #dadde3);
	text-decoration: none;
	color: var(--color-base, #202122);
	font-weight: 600;
	transition: all 0.2s ease;
}

.outrex-smallgrid a:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* 右侧栏卡片 */
.outrex-side .outrex-card {
	margin-bottom: 14px;
}

.outrex-logo-wrap {
	text-align: center;
	padding: 22px 18px 12px;
}

.outrex-logo-wrap img {
	max-width: 180px;
	height: auto;
}

.outrex-site-desc {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--color-subtle, #54595d);
	text-align: left;
}

.outrex-join-btn {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	background: linear-gradient(90deg, #2f9e44 0%, #37b24d 100%);
	color: #fff;
	text-align: center;
	font-weight: 800;
	text-decoration: none;
	box-sizing: border-box;
}

.outrex-join-btn:hover {
	text-decoration: none;
	filter: brightness(1.03);
}

/* 右侧社交按钮 */
.outrex-socials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.outrex-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 12px;
	background: var(--background-color-interactive, #eaecf0);
	color: var(--color-base, #202122);
	text-decoration: none;
	font-weight: 700;
}

.outrex-socials a:hover {
	background: var(--background-color-interactive--hover, #dadde3);
	text-decoration: none;
}

/* 列表区 */
.outrex-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.outrex-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color-muted, #eaecf0);
	font-size: 14px;
	line-height: 1.6;
}

.outrex-list li:last-child {
	border-bottom: 0;
}

/* 数据块 */
.outrex-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.outrex-stat {
	padding: 12px;
	border-radius: 12px;
	background: var(--background-color-neutral-subtle, #f8f9fa);
	border: 1px solid var(--border-color-muted, #eaecf0);
	text-align: center;
}

.outrex-stat-num {
	display: block;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.outrex-stat-label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--color-subtle, #54595d);
}

/* 暗色模式 */
body.wgl-theme-dark .outrex-hero-card {
	background: linear-gradient(135deg, #1c2430 0%, #11161f 100%);
}

body.wgl-theme-dark .outrex-card,
body.wgl-theme-dark .outrex-article,
body.wgl-theme-dark .outrex-grid .grid-item,
body.wgl-theme-dark .outrex-smallgrid a {
	box-shadow: none;
}

body.wgl-theme-dark .outrex-grid .grid-item:hover,
body.wgl-theme-dark .outrex-smallgrid a:hover {
	box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

/* Citizen 下首页正文通常有默认间距,压一压 */
.page-Main_Page #mw-content-text > .mw-parser-output > *:first-child,
.page-主页 #mw-content-text > .mw-parser-output > *:first-child,
.page-首页 #mw-content-text > .mw-parser-output > *:first-child {
	margin-top: 0;
}

/* 平板 */
@media screen and (max-width: 1100px) {
	.outrex-home {
		grid-template-columns: 1fr;
	}

	.outrex-side {
		order: 2;
	}

	.outrex-main {
		order: 1;
	}
}

/* 小屏 */
@media screen and (max-width: 720px) {
	.outrex-topcards,
	.outrex-columns,
	.outrex-grid,
	.outrex-smallgrid,
	.outrex-stats,
	.outrex-socials {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.outrex-hero-card {
		min-height: 180px;
	}

	.outrex-hero-title {
		font-size: 20px;
	}
}

/* 手机 */
@media screen and (max-width: 520px) {
	.outrex-topcards,
	.outrex-columns {
		grid-template-columns: 1fr;
	}

	.outrex-grid,
	.outrex-smallgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.outrex-grid .grid-item {
		min-height: 94px;
		padding: 10px 8px;
	}

	.outrex-grid .grid-item img {
		width: 30px;
		height: 30px;
	}

	.outrex-grid .grid-item span {
		font-size: 13px;
	}
}