MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 标签:已被回退 |
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 标签:手工回退 |
||
| 第1行: | 第1行: | ||
/* 首页核心样式 */ | |||
/* 首页核心样式 | |||
.page-首页 .mw-body-header, | .page-首页 .mw-body-header, | ||
.page-首页 .previewnote, | .page-首页 .previewnote, | ||
| 第9行: | 第5行: | ||
.page-首页 .header-image { | .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-image: linear-gradient(to top, | |||
background-size: cover; | background-size: cover; | ||
background-position: top center; | background-position: top center; | ||
height: 46vh; | height: 46vh; | ||
margin-bottom: -42vh; | margin-bottom: -42vh; | ||
} | } | ||
| 第23行: | 第16行: | ||
} | } | ||
.skin-citizen-dark .adaptive-img img { filter: invert(1)!important; } | .skin-citizen-dark .adaptive-img img { filter: invert(1)!important; } | ||
/* | /* 全局变量 */ | ||
:root { | :root { | ||
--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); | ||
--text-color: # | --text-color: #333; | ||
--dark-text-color: # | --dark-text-color: #ddd; | ||
} | } | ||
/* 评论区样式 | /* 评论区样式 */ | ||
.comments-body { | .comments-body { | ||
margin: 1.5rem auto; | margin: 1.5rem auto; | ||
| 第44行: | 第31行: | ||
width: calc(100% - 60px) !important; | width: calc(100% - 60px) !important; | ||
max-width: 1200px; | max-width: 1200px; | ||
background: var(-- | 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; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| 第54行: | 第40行: | ||
margin-top: 1.2rem; | margin-top: 1.2rem; | ||
padding: 20px 25px 55px; | padding: 20px 25px 55px; | ||
background: var(-- | 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: | border: none !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| 第63行: | 第49行: | ||
.c-comment.f-message { margin-bottom: 15px !important; } | .c-comment.f-message { margin-bottom: 15px !important; } | ||
/* 输入框与排序 | /* 输入框与排序 */ | ||
.comments-body textarea#comment, | .comments-body textarea#comment, | ||
.c-order-select select { | .c-order-select select { | ||
padding: 5px 15px !important; | padding: 5px 15px !important; | ||
border-radius: 15px !important; | border-radius: 15px !important; | ||
border: 1px solid var(- | border: 1px solid var(--border-color-base) !important; | ||
background: | background: var(--color-surface-0) !important; | ||
color: var(--text-color) !important; | color: var(--text-color) !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| 第78行: | 第63行: | ||
padding: 12px 15px !important; | padding: 12px 15px !important; | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
/* 排序区域 | /* 排序区域 */ | ||
.c-order-select { | |||
display: flex !important; | |||
align-items: center !important; | |||
gap: 8px !important; | |||
} | |||
.c-order-select::before { | .c-order-select::before { | ||
content: "排序方式:" !important; | content: "排序方式:" !important; | ||
color: | color: var(--text-color) !important; | ||
font-weight: 600 !important; | font-weight: 600 !important; | ||
white-space: nowrap !important; | white-space: nowrap !important; | ||
} | } | ||
/* 按钮样式 | /* 按钮样式 */ | ||
.c-form-button .site-button, | .c-form-button .site-button, | ||
.c-spy a, | .c-spy a, | ||
| 第96行: | 第86行: | ||
display: inline-block !important; | display: inline-block !important; | ||
padding: 8px 16px !important; | padding: 8px 16px !important; | ||
background: | 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; | ||
} | } | ||
| 第109行: | 第97行: | ||
.c-actions a[rel="nofollow"]:not(.comments-reply-to) { margin-right: 8px !important; } | .c-actions a[rel="nofollow"]:not(.comments-reply-to) { margin-right: 8px !important; } | ||
/* 按钮hover效果 | /* 按钮hover效果 */ | ||
.c-form-button .site-button:hover, | .c-form-button .site-button:hover, | ||
.c-spy a:hover, | .c-spy a:hover, | ||
.c-actions a[rel="nofollow"]:not(.comments-reply-to):hover, | .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: | background: #2855aa !important; | ||
} | } | ||
/* 评论头像 | /* 评论头像 */ | ||
.c-avatar img { | .c-avatar img { | ||
width: 60px !important; | width: 60px !important; | ||
| 第124行: | 第111行: | ||
border-radius: 15px !important; | border-radius: 15px !important; | ||
box-shadow: var(--homecard-box-shadow) !important; | box-shadow: var(--homecard-box-shadow) !important; | ||
border: 2px solid | border: 2px solid var(--color-surface-0) !important; | ||
margin: 5px 0 0 5px !important; | margin: 5px 0 0 5px !important; | ||
} | } | ||
/* | /* 暗色模式 */ | ||
html.skin-citizen-dark { | html.skin-citizen-dark { --text-color: var(--dark-text-color); } | ||
html.skin-citizen-dark .c-item.full { background: #1e1e2e !important; } | |||
} | |||
html.skin-citizen-dark .c-item.full { background: | |||
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: | background: #4a7edb !important; | ||
} | } | ||
html.skin-citizen-dark .c-spy a:hover, | html.skin-citizen-dark .c-spy a:hover, | ||
| 第155行: | 第128行: | ||
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: | background: #3a6bc8 !important; | ||
} | } | ||
html.skin-citizen-dark .c-avatar img { border-color: | html.skin-citizen-dark .c-avatar img { border-color: #1e1e2e !important; } | ||
2025年9月1日 (一) 17:04的版本
/* 首页核心样式 */
.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 { height: 36vh; margin-bottom: -32vh; }
}
.skin-citizen-dark .adaptive-img img { filter: invert(1)!important; }
/* 全局变量 */
:root {
--homecard-box-shadow: 0 3px 6px rgba(0,0,0,0.04), 0 3px 6px rgba(0,0,0,0.0575);
--text-color: #333;
--dark-text-color: #ddd;
}
/* 评论区样式 */
.comments-body {
margin: 1.5rem auto;
padding: 25px 30px;
width: calc(100% - 60px) !important;
max-width: 1200px;
background: var(--color-surface-1);
border-radius: 15px !important;
box-shadow: var(--homecard-box-shadow) !important;
box-sizing: border-box !important;
}
.c-item.full {
margin-top: 1.2rem;
padding: 20px 25px 55px;
background: var(--color-surface-1) !important;
border-radius: 15px !important;
box-shadow: var(--homecard-box-shadow) !important;
border: none !important;
box-sizing: border-box !important;
}
.c-comment.f-message { margin-bottom: 15px !important; }
/* 输入框与排序 */
.comments-body textarea#comment,
.c-order-select select {
padding: 5px 15px !important;
border-radius: 15px !important;
border: 1px solid var(--border-color-base) !important;
background: var(--color-surface-0) !important;
color: var(--text-color) !important;
box-sizing: border-box !important;
}
.comments-body textarea#comment {
padding: 12px 15px !important;
width: 100% !important;
}
/* 排序区域 */
.c-order-select {
display: flex !important;
align-items: center !important;
gap: 8px !important;
}
.c-order-select::before {
content: "排序方式:" !important;
color: var(--text-color) !important;
font-weight: 600 !important;
white-space: nowrap !important;
}
/* 按钮样式 */
.c-form-button .site-button,
.c-spy a,
.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-form-button .site-button { padding: 8px 20px !important; }
.c-actions a[rel="nofollow"]:not(.comments-reply-to) { margin-right: 8px !important; }
/* 按钮hover效果 */
.c-form-button .site-button:hover,
.c-spy a:hover,
.c-actions a[rel="nofollow"]:not(.comments-reply-to):hover,
.c-actions a.comments-reply-to:hover {
background: #2855aa !important;
}
/* 评论头像 */
.c-avatar img {
width: 60px !important;
height: 60px !important;
border-radius: 15px !important;
box-shadow: var(--homecard-box-shadow) !important;
border: 2px solid var(--color-surface-0) !important;
margin: 5px 0 0 5px !important;
}
/* 暗色模式 */
html.skin-citizen-dark { --text-color: var(--dark-text-color); }
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; }