打开/关闭菜单
60
73
29
1.1K
武外梗百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
第249行: 第249行:
}
}


/* 移除主页内所有链接的虚线或实线边框 */
/* 强制清除主页卡片内的所有 MediaWiki 默认边框和图标 */
.homepage-container a, .homepage-container a:hover, .homepage-container a:active {
.hp-clean-card, .hp-clean-card *, .hp-cat-item a {
    border: none !important;
     text-decoration: none !important;
     text-decoration: none !important;
     border: none !important;
     box-shadow: none;
     outline: none !important;
}
 
/* 移除链接右侧的外部链接或分类图标 */
.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;
}
}
/* 强行抹除 MediaWiki 内部可能生成的 div 边框 */
 
.hp-clean-card div, .hp-clean-card table, .hp-clean-card td {
.hp-cat-item a {
     border: none !important;
    display: block !important; /* 让整个链接区域填满父容器 */
     background: transparent !important;
    padding: 15px 5px !important;
     border-radius: 10px !important;
     text-align: center !important;
    transition: all 0.3s ease;
    font-weight: bold;
}
}
/* 针对“关于本站”这种嵌入页面的特殊处理,去除其可能带有的 mbox 样式 */
 
.hp-about-content > div {
/* 具体的卡片配色 */
    border: none !important;
.hp-cat-teacher a { background: #f0f7ff !important; color: #1e40af !important; }
    margin: 0 !important;
.hp-cat-student a { background: #fff7ed !important; color: #9a3412 !important; }
    padding: 0 !important;
.hp-cat-meme a    { background: #f0fdf4 !important; color: #166534 !important; }
     box-shadow: none !important;
.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);
}
}