MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第249行: | 第249行: | ||
} | } | ||
/* | /* 强制清除主页卡片内的所有 MediaWiki 默认边框和图标 */ | ||
. | .hp-clean-card, .hp-clean-card *, .hp-cat-item a { | ||
border: none !important; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
box-shadow: none; | |||
} | |||
/* 移除链接右侧的外部链接或分类图标 */ | |||
.hp-clean-card a.external, .hp-clean-card a.image, .hp-cat-item a { | |||
background-image: none !important; | |||
padding-right: 0 !important; | |||
} | |||
/* 分类小卡片核心样式 */ | |||
.hp-cat-grid { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 12px; | |||
} | } | ||
.hp- | .hp-cat-item a { | ||
border: | display: block !important; /* 让整个链接区域填满父容器 */ | ||
padding: 15px 5px !important; | |||
border-radius: 10px !important; | |||
text-align: center !important; | |||
transition: all 0.3s ease; | |||
font-weight: bold; | |||
} | } | ||
/* | |||
.hp- | /* 具体的卡片配色 */ | ||
.hp-cat-teacher a { background: #f0f7ff !important; color: #1e40af !important; } | |||
.hp-cat-student a { background: #fff7ed !important; color: #9a3412 !important; } | |||
.hp-cat-meme a { background: #f0fdf4 !important; color: #166534 !important; } | |||
box-shadow: | .hp-cat-campus a { background: #faf5ff !important; color: #6b21a8 !important; } | ||
/* 悬停效果 */ | |||
.hp-cat-item a:hover { | |||
transform: translateY(-3px); | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; | |||
filter: brightness(0.95); | |||
} | } | ||