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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
 
(未显示同一用户的30个中间版本)
第32行: 第32行:
--homecard-box-shadow: 0 3px 6px rgba(0,0,0,0.04), 0 3px 6px rgba(0,0,0,0.0575);
--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);
--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;
}
.c-spy a:hover {
    background: #2980b9 !important; /* 首页按钮hover加深色 */
    transform: none !important;
    opacity: 1 !important;
}
/* 7. 新增:评论回复按钮(和刷新按钮统一) */
.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-left: 8px !important; /* 和固定链接保持间距 */
}
.c-actions a.comments-reply-to:hover {
    background: #2980b9 !important; /* 首页按钮hover加深色 */
    transform: none !important;
    opacity: 1 !important;
}
/* 8. 新增:评论头像(15px圆角,贴合卡片) */
.c-avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 15px !important; /* 15px圆角,和卡片呼应 */
    box-shadow: var(--homecard-box-shadow) !important;
    border: 2px solid var(--color-surface-0) !important; /* 复用卡片背景色,避免突兀 */
}
/* 9. 新增:暗色模式适配(对齐首页暗色风格) */
html.skin-citizen-dark .c-spy a,
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.comments-reply-to:hover {
    background: #357abd !important; /* 首页暗色模式按钮hover色 */
}
html.skin-citizen-dark .c-avatar img {
    border-color: #1e1e2e !important; /* 暗色模式下头像边框用卡片背景色 */
}
}

2025年9月1日 (一) 18:10的最新版本

/* 由 御坂秋生 于 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);
}