MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 |
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 |
||
| 第88行: | 第88行: | ||
} | } | ||
/* 6. | /* 6. 评论自动刷新按钮(对齐首页按钮风格,上移位置) */ | ||
.c-spy a { | .c-spy a { | ||
display: inline-block !important; | display: inline-block !important; | ||
| 第94行: | 第94行: | ||
background: #3498db !important; /* 首页按钮蓝色 */ | background: #3498db !important; /* 首页按钮蓝色 */ | ||
color: white !important; | color: white !important; | ||
border-radius: 8px !important; /* | border-radius: 8px !important; /* 8px圆角,按需求调整 */ | ||
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; /* 字体加粗 */ | ||
transition: background 0.3s ease !important; | transition: background 0.3s ease !important; | ||
margin-top: -3px !important; /* 上移3px,贴合需求 */ | |||
} | } | ||
.c-spy a:hover { | .c-spy a:hover { | ||
| 第106行: | 第107行: | ||
} | } | ||
/* 7. | /* 7. 评论操作区(固定链接+回复按钮):整体上移,统一样式 */ | ||
.c-actions { | |||
margin-top: -5px !important; /* 操作区整体上移5px,靠近评论内容 */ | |||
} | |||
/* 固定链接:改成蓝色圆角按钮,和回复按钮统一 */ | |||
.c-actions a[rel="nofollow"]:not(.comments-reply-to) { | |||
display: inline-block !important; | |||
padding: 8px 16px !important; /* 和回复按钮同内边距 */ | |||
background: #3498db !important; /* 同款蓝色 */ | |||
color: white !important; /* 白色文字 */ | |||
border-radius: 8px !important; /* 8px圆角,按需求调整 */ | |||
box-shadow: var(--homecard-box-shadow) !important; | |||
text-decoration: none !important; | |||
font-weight: 600 !important; | |||
transition: background 0.3s ease !important; | |||
margin-right: 8px !important; /* 和回复按钮保持间距 */ | |||
} | |||
.c-actions a[rel="nofollow"]:not(.comments-reply-to):hover { | |||
background: #2980b9 !important; /* hover加深色 */ | |||
} | |||
/* 回复按钮:上移微调,和固定链接对齐 */ | |||
.c-actions a.comments-reply-to { | .c-actions a.comments-reply-to { | ||
display: inline-block !important; | display: inline-block !important; | ||
padding: 8px 16px !important; /* | padding: 8px 16px !important; /* 同固定链接内边距 */ | ||
background: #3498db !important; /* | background: #3498db !important; /* 同款蓝色 */ | ||
color: white !important; | color: white !important; | ||
border-radius: 8px !important; /* | border-radius: 8px !important; /* 8px圆角 */ | ||
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; | ||
transition: background 0.3s ease !important; | transition: background 0.3s ease !important; | ||
margin- | margin-top: 0 !important; /* 取消多余间距,和固定链接对齐 */ | ||
} | } | ||
.c-actions a.comments-reply-to:hover { | .c-actions a.comments-reply-to:hover { | ||
background: #2980b9 !important; /* | background: #2980b9 !important; /* hover加深色 */ | ||
transform: none !important; | transform: none !important; | ||
opacity: 1 !important; | opacity: 1 !important; | ||
} | } | ||
/* 8. | /* 8. 评论头像:放大尺寸+15px圆角(按需求调整) */ | ||
.c-avatar img { | .c-avatar img { | ||
width: | width: 50px !important; /* 头像宽度放大到50px(可按需改) */ | ||
height: | height: 50px !important; /* 正方形,避免变形 */ | ||
border-radius: 15px !important; /* | border-radius: 15px !important; /* 15px圆角,按需求调整 */ | ||
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; /* 贴合卡片背景 */ | ||
margin-right: 12px !important; /* 增加和评论内容的间距 */ | |||
} | } | ||
/* 9. | /* 9. 暗色模式适配(对齐首页暗色风格) */ | ||
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.comments-reply-to { | html.skin-citizen-dark .c-actions a.comments-reply-to { | ||
background: #4a90e2 !important; /* 首页暗色模式按钮蓝 */ | background: #4a90e2 !important; /* 首页暗色模式按钮蓝 */ | ||
} | } | ||
html.skin-citizen-dark .c-spy a:hover, | 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-actions a.comments-reply-to:hover { | ||
background: #357abd !important; /* 首页暗色模式按钮hover色 */ | background: #357abd !important; /* 首页暗色模式按钮hover色 */ | ||
2025年8月31日 (日) 21:18的版本
/* 由 御坂秋生 于 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;
}
/* Powered By HydCraft Wiki and Aurora_Lemon */
: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; /* 强制用首页15px圆角 */
box-shadow: var(--homecard-box-shadow) !important; /* 强制用首页卡片阴影 */
}
/* 2. 单条评论卡片 */
.c-item.full {
margin-top: 1rem;
padding: 15px; /* 复用首页卡片内边距 */
background: var(--color-surface-1); /* 复用首页卡片背景色 */
border-radius: 15px !important; /* 15px圆角,和首页一致 */
box-shadow: var(--homecard-box-shadow) !important; /* 首页同款阴影 */
border: none !important; /* 去掉扩展默认边框 */
}
/* 3. 评论输入框区域 */
.comments-body textarea#comment {
padding: 12px;
border-radius: 15px !important; /* 输入框15px圆角 */
border: 1px solid var(--border-color-base) !important; /* 复用首页边框色 */
background: var(--color-surface-0) !important; /* 浅一度背景,区分层级 */
}
/* 4. 评论提交/预览按钮 */
.c-form-button {
margin-top: 1rem;
padding: 8px 0;
}
.c-form-button .site-button {
padding: 8px 20px;
border-radius: 15px !important; /* 按钮15px圆角 */
background: var(--color-base) !important; /* 复用首页按钮主色调 */
color: #fff !important; /* 白色文字 */
border: none !important;
}
.c-form-button .site-button:hover {
opacity: 0.8 !important; /* 复用首页按钮hover透明度 */
}
/* 5. 评论排序下拉框 */
.c-order-select select {
padding: 5px 10px;
border-radius: 15px !important; /* 下拉框15px圆角 */
border: 1px solid var(--border-color-base) !important;
background: var(--color-surface-0) !important;
}
/* 6. 评论自动刷新按钮(对齐首页按钮风格,上移位置) */
.c-spy a {
display: inline-block !important;
padding: 8px 16px !important; /* 首页按钮同款内边距 */
background: #3498db !important; /* 首页按钮蓝色 */
color: white !important;
border-radius: 8px !important; /* 8px圆角,按需求调整 */
box-shadow: var(--homecard-box-shadow) !important; /* 首页卡片阴影 */
text-decoration: none !important;
font-weight: 600 !important; /* 字体加粗 */
transition: background 0.3s ease !important;
margin-top: -3px !important; /* 上移3px,贴合需求 */
}
.c-spy a:hover {
background: #2980b9 !important; /* 首页按钮hover加深色 */
transform: none !important;
opacity: 1 !important;
}
/* 7. 评论操作区(固定链接+回复按钮):整体上移,统一样式 */
.c-actions {
margin-top: -5px !important; /* 操作区整体上移5px,靠近评论内容 */
}
/* 固定链接:改成蓝色圆角按钮,和回复按钮统一 */
.c-actions a[rel="nofollow"]:not(.comments-reply-to) {
display: inline-block !important;
padding: 8px 16px !important; /* 和回复按钮同内边距 */
background: #3498db !important; /* 同款蓝色 */
color: white !important; /* 白色文字 */
border-radius: 8px !important; /* 8px圆角,按需求调整 */
box-shadow: var(--homecard-box-shadow) !important;
text-decoration: none !important;
font-weight: 600 !important;
transition: background 0.3s ease !important;
margin-right: 8px !important; /* 和回复按钮保持间距 */
}
.c-actions a[rel="nofollow"]:not(.comments-reply-to):hover {
background: #2980b9 !important; /* hover加深色 */
}
/* 回复按钮:上移微调,和固定链接对齐 */
.c-actions a.comments-reply-to {
display: inline-block !important;
padding: 8px 16px !important; /* 同固定链接内边距 */
background: #3498db !important; /* 同款蓝色 */
color: white !important;
border-radius: 8px !important; /* 8px圆角 */
box-shadow: var(--homecard-box-shadow) !important;
text-decoration: none !important;
font-weight: 600 !important;
transition: background 0.3s ease !important;
margin-top: 0 !important; /* 取消多余间距,和固定链接对齐 */
}
.c-actions a.comments-reply-to:hover {
background: #2980b9 !important; /* hover加深色 */
transform: none !important;
opacity: 1 !important;
}
/* 8. 评论头像:放大尺寸+15px圆角(按需求调整) */
.c-avatar img {
width: 50px !important; /* 头像宽度放大到50px(可按需改) */
height: 50px !important; /* 正方形,避免变形 */
border-radius: 15px !important; /* 15px圆角,按需求调整 */
box-shadow: var(--homecard-box-shadow) !important;
border: 2px solid var(--color-surface-0) !important; /* 贴合卡片背景 */
margin-right: 12px !important; /* 增加和评论内容的间距 */
}
/* 9. 暗色模式适配(对齐首页暗色风格) */
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 {
background: #4a90e2 !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 {
background: #357abd !important; /* 首页暗色模式按钮hover色 */
}
html.skin-citizen-dark .c-avatar img {
border-color: #1e1e2e !important; /* 暗色模式下头像边框用卡片背景色 */
}