打开/关闭菜单
59
83
13
872
诺布百科 · Noblecraft Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
Baneq留言 | 贡献
无编辑摘要
标签已被回退
Baneq留言 | 贡献
无编辑摘要
标签已被回退
第1行: 第1行:
/* ============================================ */
/*  Noblecraft Wiki · Common.css                */
/* ============================================ */
/* —— Noblecraft 格式面板美化(编辑器下拉菜单)—— */
.wikiEditor-ui-toolbar .booklet .index div {
border-radius: 4px 4px 0 0;
font-weight: bold;
}
.wikiEditor-ui-toolbar .booklet .index .current {
background: #0f4c5c !important;
color: #fff !important;
}
.wikiEditor-ui-toolbar .booklet .pages .page-characters span {
display: inline-block;
margin: 4px;
padding: 4px 12px !important;
border: 1px solid #c8c2b4;
border-radius: 4px;
background: #faf7f2;
cursor: pointer;
font-size: 13px;
transition: all .15s;
width: auto !important;
}
.wikiEditor-ui-toolbar .booklet .pages .page-characters span:hover {
background: #0f4c5c;
color: #fff;
border-color: #0f4c5c;
}
.wikiEditor-ui-toolbar .booklet .pages span.nc-红  { color:#c0392b; border-color:#e8b5ad; }
.wikiEditor-ui-toolbar .booklet .pages span.nc-绿  { color:#27866b; border-color:#a9d6c8; }
.wikiEditor-ui-toolbar .booklet .pages span.nc-蓝  { color:#2c6fb3; border-color:#aecbe8; }
.wikiEditor-ui-toolbar .booklet .pages span.nc-橙  { color:#d35400; border-color:#f0c2a0; }
.wikiEditor-ui-toolbar .booklet .pages span.nc-高亮 { color:#b8860b; border-color:#e8d9a0; }
/* —— 全站页面背景 —— */
body {
background:
radial-gradient(circle at 18% 15%, #ffffff 0%, transparent 45%),
radial-gradient(circle at 85% 12%, #f0f1f4 0%, transparent 45%),
radial-gradient(circle at 75% 92%, #eceef1 0%, transparent 48%),
linear-gradient(150deg,#f5f6f8,#eaecf0) !important;
background-attachment:fixed !important;
}
/* ============================================ */
/*  首页 · 素玻璃(白 + 灰)                    */
/* ============================================ */
.nc-stage {
margin:14px 0 0;
padding:0;
background:transparent;
}
.nc-cards { display:flex; flex-wrap:wrap; gap:18px; align-items:stretch; position:relative; z-index:1; }
.nc-card {
flex:1; min-width:215px;
background:rgba(255,255,255,.55);
backdrop-filter:blur(22px) saturate(140%);
-webkit-backdrop-filter:blur(22px) saturate(140%);
border:1px solid rgba(255,255,255,.7);
box-shadow:
inset 0 1px 0 rgba(255,255,255,.8),
0 10px 30px -14px rgba(60,65,80,.40);
transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
display:flex; flex-direction:column;
}
.nc-card:hover {
transform:translateY(-4px);
box-shadow:
inset 0 1px 0 rgba(255,255,255,.9),
0 18px 40px -16px rgba(60,65,80,.50);
}
.nc-card ul { list-style:none !important; margin:0 !important; padding:7px 0 !important; }
.nc-card li { margin:0 !important; }
.nc-card li a {
display:block; padding:9px 18px; color:#3a3d42; text-decoration:none;
transition:all .15s ease; font-size:.97em;
}
.nc-card li a:hover { background:rgba(120,130,150,.14); padding-left:24px; }
/* 标题条:多色斜向渐变 + 悬停流动 */
.nc-card-head {
color:#fff; font-weight:700; font-size:1.06em; padding:15px 18px;
letter-spacing:.5px;
border:none; border-radius:0;
background-size:220% 220% !important;
background-position:0% 50%;
transition:background-position .8s ease, filter .4s ease;
}
.nc-card-head.nc-c-lobby { background-image:linear-gradient(135deg,#f0b94a,#e89038,#d9772e) !important; }
.nc-card-head.nc-c-play  { background-image:linear-gradient(135deg,#4a6fd4,#5ec5d4,#6a4ed4) !important; }
.nc-card-head.nc-c-comm  { background-image:linear-gradient(135deg,#7d4ed4,#c44ec4,#4a6fd4) !important; }
.nc-card-head.nc-c-apply { background-image:linear-gradient(135deg,#d44a5e,#e0723a,#c44e8a) !important; }
.nc-card:hover .nc-card-head {
background-position:100% 50% !important;
filter:brightness(1.12) saturate(1.15);
}
/* ===== CommentStreams 评论区美化 ===== */
/* 标题:弱化成小号次要文字(压住可能的 h 标签样式) */
.cs-comment-title,
.cs-comment-title * {
font-size: 0.92em !important;
font-weight: 600 !important;
color: #666 !important;
margin: 0 0 2px 0 !important;
line-height: 1.4 !important;
}
/* 头部:去掉背景,标题作者贴紧 */
.cs-comment-header {
background: transparent !important;
padding: 0 !important;
}
/* 正文:主体,正常黑字 */
.cs-comment-body {
font-size: 1em !important;
color: #202122 !important;
margin: 4px 0 8px 0 !important;
padding: 0 !important;
line-height: 1.65 !important;
}
/* 整条评论:浅灰圆角框 */
.cs-comment {
background: #fafbfc !important;
border: 1px solid #e3e6e8 !important;
border-radius: 6px !important;
padding: 10px 14px !important;
margin: 8px 0 !important;
}
/* 作者与时间:小灰字 */
.cs-comment-details,
.cs-comment-author,
.cs-comment-author-anonymous {
font-size: 0.82em !important;
color: #888 !important;
}
/* 回复(子评论):缩进 + 左侧竖线表示层级 */
.cs-reply-comment {
margin-left: 28px !important;
border-left: 3px solid #d0d7de !important;
background: #ffffff !important;
}
/* Noblecraft homepage polish. Append after the current homepage CSS in MediaWiki:Common.css */
/* Noblecraft homepage polish. Append after the current homepage CSS in MediaWiki:Common.css */


第168行: 第7行:
margin-left: auto;
margin-left: auto;
margin-right: auto;
margin-right: auto;
}
.nc-mascot {
max-width: 1180px;
margin: 0 auto 10px;
text-align: center;
}
.nc-mascot img {
max-width: min(560px, 88vw);
height: auto;
filter: drop-shadow(0 18px 28px rgba(45,52,68,.18));
}
}


第188行: 第39行:
font-size: 1.45rem;
font-size: 1.45rem;
line-height: 1.35;
line-height: 1.35;
}
.nc-home-subtitle {
margin: -4px 0 14px;
color: #75808c;
font-size: .96rem;
font-weight: 700;
}
}


第196行: 第54行:
}
}


.nc-home-actions {
.nc-home-meta {
display: flex;
max-width: 1180px;
flex-wrap: wrap;
margin: -4px auto 12px;
gap: 8px;
padding: 10px 14px;
margin-top: 18px;
background: rgba(255,255,255,.46);
border: 1px solid rgba(210,216,222,.78);
color: #56616d;
font-size: .94rem;
font-weight: 620;
box-shadow: 0 10px 24px -24px rgba(45,52,68,.45);
}
}


.nc-home-actions a {
.nc-home-meta a {
display: inline-flex;
color: #0f4c5c;
align-items: center;
font-weight: 800;
justify-content: center;
text-decoration: none;
min-height: 32px;
padding: 0 13px;
background: rgba(255,255,255,.54);
border: 1px solid rgba(196,205,214,.82);
border-radius: 6px;
color: #3e4752 !important;
font-size: .92rem;
font-weight: 680;
text-decoration: none !important;
box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 18px -18px rgba(20,30,45,.55);
transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
}


.nc-home-actions a:first-child {
/* Make the original four-card layout feel more deliberate. */
background: linear-gradient(135deg,#0f4c5c,#176273);
.nc-cards {
border-color: rgba(15,76,92,.92);
display: grid !important;
color: #fff !important;
grid-template-columns: repeat(4, minmax(0, 1fr));
box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px -16px rgba(15,76,92,.75);
gap: 16px;
margin-top: 18px;
align-items: stretch;
}
}


.nc-home-actions a:hover {
.nc-card {
transform: translateY(-1px);
position: relative;
background: rgba(255,255,255,.86);
min-width: 230px;
border-color: rgba(143,166,173,.95);
min-height: 520px;
color: #20303a !important;
border-color: rgba(225,229,234,.95);
overflow: hidden;
align-self: stretch;
}
}


.nc-home-actions a:first-child:hover {
.nc-card ul {
background: linear-gradient(135deg,#123f4c,#0f4c5c);
padding-bottom: 84px !important;
border-color: rgba(18,63,76,.95);
color: #fff !important;
}
}


/* Noblecraft homepage polish. Append after the current homepage CSS in MediaWiki:Common.css */
.nc-card::after {
 
content: "";
/* Keep polish scoped to the existing homepage pieces. */
position: absolute;
.nc-stage,
left: 0;
.nc-cards {
right: 0;
max-width: 1180px;
bottom: 0;
margin-left: auto;
height: 6px;
margin-right: auto;
opacity: .42;
}
}


/* A compact intro panel for the current homepage text area. */
.nc-card-lobby::after { background: #d89038; }
.nc-home-intro {
.nc-card-play::after { background: #4c8fbd; }
max-width: 1180px;
.nc-card-comm::after { background: #8d62b8; }
margin: 8px auto 18px;
.nc-card-apply::after { background: #c85c70; }
padding: 20px 24px;
background: rgba(255,255,255,.58);
border: 1px solid rgba(255,255,255,.82);
box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 42px -30px rgba(45,52,68,.55);
backdrop-filter: blur(18px) saturate(135%);
-webkit-backdrop-filter: blur(18px) saturate(135%);
}


.nc-home-intro h2 {
.nc-card-head {
margin-top: 0;
position: relative;
border-bottom: 0;
padding: 14px 18px 13px;
color: #24282f;
letter-spacing: 0;
font-size: 1.45rem;
line-height: 1.35;
}
}


.nc-home-intro p {
.nc-card-head::after {
color: #4f5663;
content: "";
font-size: 1.02rem;
position: absolute;
line-height: 1.75;
left: 18px;
right: 18px;
bottom: 0;
height: 1px;
background: rgba(255,255,255,.45);
}
}


.nc-home-actions {
.nc-card li a {
display: flex;
position: relative;
flex-wrap: wrap;
padding: 8px 18px 8px 28px;
gap: 8px;
font-weight: 620;
margin-top: 18px;
}
}


.nc-home-actions a {
.nc-card li a::before {
display: inline-flex;
content: "";
align-items: center;
position: absolute;
justify-content: center;
left: 16px;
min-height: 32px;
top: 50%;
padding: 0 13px;
width: 4px;
background: rgba(255,255,255,.54);
height: 4px;
border: 1px solid rgba(196,205,214,.82);
margin-top: -2px;
border-radius: 6px;
background: #9aa4ad;
color: #3e4752 !important;
font-size: .92rem;
font-weight: 680;
text-decoration: none !important;
box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 18px -18px rgba(20,30,45,.55);
transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
}


.nc-home-actions a:first-child {
.nc-card li a:hover {
background: linear-gradient(135deg,#0f4c5c,#176273);
padding-left: 32px;
border-color: rgba(15,76,92,.92);
background: rgba(86,102,118,.12);
color: #fff !important;
box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px -16px rgba(15,76,92,.75);
}
}


.nc-home-actions a:hover {
.nc-card li a:hover::before {
transform: translateY(-1px);
background: #0f4c5c;
background: rgba(255,255,255,.86);
border-color: rgba(143,166,173,.95);
color: #20303a !important;
}
}


.nc-home-actions a:first-child:hover {
/* Softer status boxes if you keep {{成功}} near the top. */
background: linear-gradient(135deg,#123f4c,#0f4c5c);
.mw-parser-output .successbox,
border-color: rgba(18,63,76,.95);
.mw-parser-output .mw-message-box-success {
color: #fff !important;
border-color: #bdd8c8;
background: rgba(246,252,248,.72);
}
}


/* Make the original four-card layout feel more deliberate. */
/* Mobile: keep the mascot useful, not overwhelming. */
.nc-cards {
@media (max-width: 760px) {
display: grid !important;
.nc-mascot img {
grid-template-columns: repeat(4, minmax(0, 1fr));
max-width: min(360px, 86vw);
gap: 16px;
}
margin-top: 18px;
.nc-home-intro {
align-items: stretch;
padding: 16px;
}
.nc-home-intro h2 {
font-size: 1.22rem;
}
.nc-card {
min-width: 100%;
}
}
}


.nc-card {
@media (max-width: 1080px) {
min-width: 230px;
.nc-cards {
min-height: 480px;
grid-template-columns: repeat(2, minmax(0, 1fr));
border-color: rgba(225,229,234,.95);
}
overflow: hidden;
align-self: stretch;
}
}


.nc-card ul {
@media (max-width: 760px) {
padding-bottom: 46px !important;
.nc-cards {
grid-template-columns: 1fr;
}
}
}

2026年6月3日 (三) 12:56的版本

/* Noblecraft homepage polish. Append after the current homepage CSS in MediaWiki:Common.css */

/* Keep polish scoped to the existing homepage pieces. */
.nc-stage,
.nc-cards {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
}

.nc-mascot {
	max-width: 1180px;
	margin: 0 auto 10px;
	text-align: center;
}

.nc-mascot img {
	max-width: min(560px, 88vw);
	height: auto;
	filter: drop-shadow(0 18px 28px rgba(45,52,68,.18));
}

/* A compact intro panel for the current homepage text area. */
.nc-home-intro {
	max-width: 1180px;
	margin: 8px auto 18px;
	padding: 20px 24px;
	background: rgba(255,255,255,.58);
	border: 1px solid rgba(255,255,255,.82);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 42px -30px rgba(45,52,68,.55);
	backdrop-filter: blur(18px) saturate(135%);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
}

.nc-home-intro h2 {
	margin-top: 0;
	border-bottom: 0;
	color: #24282f;
	font-size: 1.45rem;
	line-height: 1.35;
}

.nc-home-subtitle {
	margin: -4px 0 14px;
	color: #75808c;
	font-size: .96rem;
	font-weight: 700;
}

.nc-home-intro p {
	color: #4f5663;
	font-size: 1.02rem;
	line-height: 1.75;
}

.nc-home-meta {
	max-width: 1180px;
	margin: -4px auto 12px;
	padding: 10px 14px;
	background: rgba(255,255,255,.46);
	border: 1px solid rgba(210,216,222,.78);
	color: #56616d;
	font-size: .94rem;
	font-weight: 620;
	box-shadow: 0 10px 24px -24px rgba(45,52,68,.45);
}

.nc-home-meta a {
	color: #0f4c5c;
	font-weight: 800;
	text-decoration: none;
}

/* Make the original four-card layout feel more deliberate. */
.nc-cards {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
	align-items: stretch;
}

.nc-card {
	position: relative;
	min-width: 230px;
	min-height: 520px;
	border-color: rgba(225,229,234,.95);
	overflow: hidden;
	align-self: stretch;
}

.nc-card ul {
	padding-bottom: 84px !important;
}

.nc-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	opacity: .42;
}

.nc-card-lobby::after { background: #d89038; }
.nc-card-play::after { background: #4c8fbd; }
.nc-card-comm::after { background: #8d62b8; }
.nc-card-apply::after { background: #c85c70; }

.nc-card-head {
	position: relative;
	padding: 14px 18px 13px;
	letter-spacing: 0;
}

.nc-card-head::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 0;
	height: 1px;
	background: rgba(255,255,255,.45);
}

.nc-card li a {
	position: relative;
	padding: 8px 18px 8px 28px;
	font-weight: 620;
}

.nc-card li a::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	background: #9aa4ad;
}

.nc-card li a:hover {
	padding-left: 32px;
	background: rgba(86,102,118,.12);
}

.nc-card li a:hover::before {
	background: #0f4c5c;
}

/* Softer status boxes if you keep {{成功}} near the top. */
.mw-parser-output .successbox,
.mw-parser-output .mw-message-box-success {
	border-color: #bdd8c8;
	background: rgba(246,252,248,.72);
}

/* Mobile: keep the mascot useful, not overwhelming. */
@media (max-width: 760px) {
	.nc-mascot img {
		max-width: min(360px, 86vw);
	}
	.nc-home-intro {
		padding: 16px;
	}
	.nc-home-intro h2 {
		font-size: 1.22rem;
	}
	.nc-card {
		min-width: 100%;
	}
}

@media (max-width: 1080px) {
	.nc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.nc-cards {
		grid-template-columns: 1fr;
	}
}