MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 |
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* 由 御坂秋生 于 2024-02-09 14:00 开始编写,参考 StarCitizen Wiki、HydCraft Wiki 排版及 CSS 样式 */ | /* 由 御坂秋生 于 2024-02-09 14:00 开始编写,参考 StarCitizen Wiki、HydCraft Wiki 排版及 CSS 样式 */ | ||
/* | /* 首页核心样式 */ | ||
.page-首页 .mw-body-header, | .page-首页 .mw-body-header, | ||
.page-首页 .previewnote, | .page-首页 .previewnote, | ||
| 第27行: | 第27行: | ||
} | } | ||
/* | /* 全局变量 */ | ||
:root { | :root { | ||
--box-shadow-plist: 0 3px 10px rgb(0 0 0 / 4%), 0 -3px 10px rgb(0 0 0 / 4%); | --box-shadow-plist: 0 3px 10px rgb(0 0 0 / 4%), 0 -3px 10px rgb(0 0 0 / 4%); | ||
| 第34行: | 第34行: | ||
} | } | ||
/* 评论核心样式(精简版) */ | |||
/* | |||
/* 1. 评论区整体卡片 */ | /* 1. 评论区整体卡片 */ | ||
.comments-body { | .comments-body { | ||
margin: 1.5rem 0; | margin: 1.5rem 0; | ||
padding: 15px; | padding: 15px; | ||
background: var(--color-surface-1); | background: var(--color-surface-1); | ||
border-radius: 15px !important; | border-radius: 15px !important; | ||
box-shadow: var(--homecard-box-shadow) !important; | box-shadow: var(--homecard-box-shadow) !important; | ||
} | } | ||
/* 2. | /* 2. 单条评论卡片(完整覆盖按钮) */ | ||
.c-item.full { | .c-item.full { | ||
margin-top: 1rem; | margin-top: 1rem; | ||
padding: 15px; | padding: 15px; | ||
padding-bottom: | padding-bottom: 15px !important; /* 恢复默认底部内边距 */ | ||
background: var(--color-surface-1) !important; | background: var(--color-surface-1) !important; | ||
border-radius: 15px !important; | border-radius: 15px !important; | ||
box-shadow: var(--homecard-box-shadow) !important; | box-shadow: var(--homecard-box-shadow) !important; | ||
border: none !important; | border: none !important; | ||
} | } | ||
/* 3. | /* 3. 评论输入框 */ | ||
.comments-body textarea#comment { | .comments-body textarea#comment { | ||
padding: 12px; | padding: 12px; | ||
border-radius: 15px !important; | border-radius: 15px !important; | ||
border: 1px solid var(--border-color-base) !important; | border: 1px solid var(--border-color-base) !important; | ||
background: var(--color-surface-0) !important; | background: var(--color-surface-0) !important; | ||
} | } | ||
/* 4. | /* 4. 排序下拉框 */ | ||
.c- | .c-order-select select { | ||
padding: 5px 10px; | |||
border-radius: 15px !important; | |||
border: 1px solid var(--border-color-base) !important; | |||
background: var(--color-surface-0) !important; | |||
} | } | ||
/* 5. 所有按钮样式(#3366cc蓝色,默认位置) */ | |||
/* 提交/预览按钮 */ | |||
.c-form-button .site-button { | .c-form-button .site-button { | ||
padding: 8px 20px; | padding: 8px 20px; | ||
border-radius: 15px !important; | border-radius: 15px !important; | ||
background: #3366cc !important; | background: #3366cc !important; | ||
color: #fff !important; | color: #fff !important; | ||
border: none !important; | border: none !important; | ||
} | } | ||
.c-form-button .site-button:hover { | .c-form-button .site-button:hover { | ||
background: #2855aa !important; | background: #2855aa !important; | ||
} | } | ||
/* | /* 自动刷新按钮 */ | ||
.c-spy a { | .c-spy a { | ||
display: inline-block !important; | display: inline-block !important; | ||
padding: 8px 16px !important; | padding: 8px 16px !important; | ||
background: #3366cc !important; | background: #3366cc !important; | ||
color: | color: #fff !important; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
box-shadow: var(--homecard-box-shadow) !important; | box-shadow: var(--homecard-box-shadow) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
font-weight: 600 !important; | font-weight: 600 !important; | ||
} | } | ||
.c-spy a:hover { | .c-spy a:hover { | ||
background: #2855aa | background: #2855aa !important; | ||
} | } | ||
/* | /* 固定链接+回复按钮 */ | ||
.c-actions a[rel="nofollow"]:not(.comments-reply-to), | |||
.c-actions a.comments-reply-to { | |||
.c-actions a[rel="nofollow"]:not(.comments-reply-to) { | |||
display: inline-block !important; | display: inline-block !important; | ||
padding: 8px 16px !important; | padding: 8px 16px !important; | ||
background: #3366cc !important; | background: #3366cc !important; | ||
color: | color: #fff !important; | ||
border-radius: 8px !important; | border-radius: 8px !important; | ||
box-shadow: var(--homecard-box-shadow) !important; | box-shadow: var(--homecard-box-shadow) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
font-weight: 600 !important; | font-weight: 600 !important; | ||
} | } | ||
.c-actions a[rel="nofollow"]:not(.comments-reply-to) | .c-actions a[rel="nofollow"]:not(.comments-reply-to) { | ||
margin-right: 8px !important; | |||
} | } | ||
.c-actions a[rel="nofollow"]:not(.comments-reply-to):hover, | |||
.c-actions a.comments-reply-to:hover { | .c-actions a.comments-reply-to:hover { | ||
background: #2855aa | background: #2855aa !important; | ||
} | } | ||
/* | /* 6. 评论头像(恢复默认大小) */ | ||
.c-avatar img { | .c-avatar img { | ||
border-radius: 15px !important; /* 仅保留15px圆角,尺寸恢复默认 */ | |||
border-radius: 15px !important; /* | |||
box-shadow: var(--homecard-box-shadow) !important; | box-shadow: var(--homecard-box-shadow) !important; | ||
border: 2px solid var(--color-surface-0) !important; | border: 2px solid var(--color-surface-0) !important; | ||
} | } | ||
/* | /* 7. 暗色模式适配 */ | ||
html.skin-citizen-dark .c-item.full { | |||
background: #1e1e2e !important; | |||
} | |||
html.skin-citizen-dark .c-spy a, | html.skin-citizen-dark .c-spy a, | ||
html.skin-citizen-dark .c-actions a[rel="nofollow"]:not(.comments-reply-to), | html.skin-citizen-dark .c-actions a[rel="nofollow"]:not(.comments-reply-to), | ||
html.skin-citizen-dark .c-actions a.comments-reply-to, | html.skin-citizen-dark .c-actions a.comments-reply-to, | ||
html.skin-citizen-dark .c-form-button .site-button { | html.skin-citizen-dark .c-form-button .site-button { | ||
background: #4a7edb !important; | background: #4a7edb !important; | ||
} | } | ||
html.skin-citizen-dark .c-spy a:hover, | html.skin-citizen-dark .c-spy a:hover, | ||
| 第181行: | 第140行: | ||
html.skin-citizen-dark .c-actions a.comments-reply-to:hover, | html.skin-citizen-dark .c-actions a.comments-reply-to:hover, | ||
html.skin-citizen-dark .c-form-button .site-button:hover { | html.skin-citizen-dark .c-form-button .site-button:hover { | ||
background: #3a6bc8 !important; | background: #3a6bc8 !important; | ||
} | } | ||
html.skin-citizen-dark .c-avatar img { | html.skin-citizen-dark .c-avatar img { | ||
border-color: #1e1e2e !important; | border-color: #1e1e2e !important; | ||
} | } | ||
2025年8月31日 (日) 21:27的版本
/* 由 御坂秋生 于 2024-02-09 14:00 开始编写,参考 StarCitizen Wiki、HydCraft Wiki 排版及 CSS 样式 */
/* 首页核心样式 */
.page-首页 .mw-body-header,
.page-首页 .previewnote,
.page-首页 .page-info {
display: none;
}
.page-首页 .header-image {
background-image: linear-gradient(to top,var(--color-surface-0),transparent 150%),url(https://wiki.hokubu.cn/w/images/3/3d/Xujiang2.jpeg);
background-size: cover;
background-position: top center;
height: 46vh;
margin-bottom: -42vh;
}
@media (max-width: 720px) {
.page-首页 .header-image {
background-position: top;
height: 36vh;
margin-bottom: -32vh;
}
}
.skin-citizen-dark .adaptive-img img {
filter: invert(1)!important;
}
/* 全局变量 */
:root {
--box-shadow-plist: 0 3px 10px rgb(0 0 0 / 4%), 0 -3px 10px rgb(0 0 0 / 4%);
--homecard-box-shadow: 0 3px 6px rgba(0,0,0,0.04), 0 3px 6px rgba(0,0,0,0.0575);
--box-shadow-cardhover: 0 10px 20px rgba(0,0,0,0.0475), 0 6px 6px rgba(0,0,0,0.0575);
}
/* 评论核心样式(精简版) */
/* 1. 评论区整体卡片 */
.comments-body {
margin: 1.5rem 0;
padding: 15px;
background: var(--color-surface-1);
border-radius: 15px !important;
box-shadow: var(--homecard-box-shadow) !important;
}
/* 2. 单条评论卡片(完整覆盖按钮) */
.c-item.full {
margin-top: 1rem;
padding: 15px;
padding-bottom: 15px !important; /* 恢复默认底部内边距 */
background: var(--color-surface-1) !important;
border-radius: 15px !important;
box-shadow: var(--homecard-box-shadow) !important;
border: none !important;
}
/* 3. 评论输入框 */
.comments-body textarea#comment {
padding: 12px;
border-radius: 15px !important;
border: 1px solid var(--border-color-base) !important;
background: var(--color-surface-0) !important;
}
/* 4. 排序下拉框 */
.c-order-select select {
padding: 5px 10px;
border-radius: 15px !important;
border: 1px solid var(--border-color-base) !important;
background: var(--color-surface-0) !important;
}
/* 5. 所有按钮样式(#3366cc蓝色,默认位置) */
/* 提交/预览按钮 */
.c-form-button .site-button {
padding: 8px 20px;
border-radius: 15px !important;
background: #3366cc !important;
color: #fff !important;
border: none !important;
}
.c-form-button .site-button:hover {
background: #2855aa !important;
}
/* 自动刷新按钮 */
.c-spy a {
display: inline-block !important;
padding: 8px 16px !important;
background: #3366cc !important;
color: #fff !important;
border-radius: 8px !important;
box-shadow: var(--homecard-box-shadow) !important;
text-decoration: none !important;
font-weight: 600 !important;
}
.c-spy a:hover {
background: #2855aa !important;
}
/* 固定链接+回复按钮 */
.c-actions a[rel="nofollow"]:not(.comments-reply-to),
.c-actions a.comments-reply-to {
display: inline-block !important;
padding: 8px 16px !important;
background: #3366cc !important;
color: #fff !important;
border-radius: 8px !important;
box-shadow: var(--homecard-box-shadow) !important;
text-decoration: none !important;
font-weight: 600 !important;
}
.c-actions a[rel="nofollow"]:not(.comments-reply-to) {
margin-right: 8px !important;
}
.c-actions a[rel="nofollow"]:not(.comments-reply-to):hover,
.c-actions a.comments-reply-to:hover {
background: #2855aa !important;
}
/* 6. 评论头像(恢复默认大小) */
.c-avatar img {
border-radius: 15px !important; /* 仅保留15px圆角,尺寸恢复默认 */
box-shadow: var(--homecard-box-shadow) !important;
border: 2px solid var(--color-surface-0) !important;
}
/* 7. 暗色模式适配 */
html.skin-citizen-dark .c-item.full {
background: #1e1e2e !important;
}
html.skin-citizen-dark .c-spy a,
html.skin-citizen-dark .c-actions a[rel="nofollow"]:not(.comments-reply-to),
html.skin-citizen-dark .c-actions a.comments-reply-to,
html.skin-citizen-dark .c-form-button .site-button {
background: #4a7edb !important;
}
html.skin-citizen-dark .c-spy a:hover,
html.skin-citizen-dark .c-actions a[rel="nofollow"]:not(.comments-reply-to):hover,
html.skin-citizen-dark .c-actions a.comments-reply-to:hover,
html.skin-citizen-dark .c-form-button .site-button:hover {
background: #3a6bc8 !important;
}
html.skin-citizen-dark .c-avatar img {
border-color: #1e1e2e !important;
}