MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 |
目白光明Mejiro Bright(留言 | 贡献) 无编辑摘要 |
||
| 第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 { | |||
margin: 1.5rem 0; | |||
padding: 1.2rem; | |||
background: var(--color-surface-0); | |||
border-radius: var(--h2-mp-card--border-radius); /* 复用首页卡片圆角 */ | |||
box-shadow: var(--homecard-box-shadow); /* 复用首页卡片阴影 */ | |||
} | |||
/* 2. 评论输入框卡片 */ | |||
.comments-form textarea { | |||
width: 100%; | |||
min-height: 7rem; | |||
margin-bottom: 0.8rem; | |||
padding: 1rem; | |||
border: 1px solid var(--color-surface-2); | |||
border-radius: var(--h2-mp-card--border-radius); | |||
background: var(--color-surface-0); | |||
resize: vertical; | |||
} | |||
/* 3. 提交按钮 */ | |||
.comments-form button[type="submit"] { | |||
padding: 0.6rem 1.2rem; | |||
border: none; | |||
border-radius: var(--h2-mp-card--border-radius); | |||
background: hsl(var(--color-primary__h), var(--color-primary__s), var(--color-primary__l)); | |||
color: white; | |||
cursor: pointer; | |||
} | |||
/* 4. 单条评论卡片 */ | |||
.comment-item { | |||
margin-top: 1rem; | |||
padding: 1rem; | |||
background: var(--color-surface-0); | |||
border-radius: var(--h2-mp-card--border-radius); | |||
box-shadow: var(--homecard-box-shadow); | |||
border: 1px solid var(--color-surface-2); | |||
} | |||
/* 5. 评论时间戳(弱化处理) */ | |||
.comment-timestamp { | |||
font-size: 0.8rem; | |||
color: var(--color-surface-3); | |||
} | } | ||
2025年8月31日 (日) 21:06的版本
/* 由 御坂秋生 于 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 {
margin: 1.5rem 0;
padding: 1.2rem;
background: var(--color-surface-0);
border-radius: var(--h2-mp-card--border-radius); /* 复用首页卡片圆角 */
box-shadow: var(--homecard-box-shadow); /* 复用首页卡片阴影 */
}
/* 2. 评论输入框卡片 */
.comments-form textarea {
width: 100%;
min-height: 7rem;
margin-bottom: 0.8rem;
padding: 1rem;
border: 1px solid var(--color-surface-2);
border-radius: var(--h2-mp-card--border-radius);
background: var(--color-surface-0);
resize: vertical;
}
/* 3. 提交按钮 */
.comments-form button[type="submit"] {
padding: 0.6rem 1.2rem;
border: none;
border-radius: var(--h2-mp-card--border-radius);
background: hsl(var(--color-primary__h), var(--color-primary__s), var(--color-primary__l));
color: white;
cursor: pointer;
}
/* 4. 单条评论卡片 */
.comment-item {
margin-top: 1rem;
padding: 1rem;
background: var(--color-surface-0);
border-radius: var(--h2-mp-card--border-radius);
box-shadow: var(--homecard-box-shadow);
border: 1px solid var(--color-surface-2);
}
/* 5. 评论时间戳(弱化处理) */
.comment-timestamp {
font-size: 0.8rem;
color: var(--color-surface-3);
}