MediaWiki:Common.css:修订间差异

Admin留言 | 贡献
创建页面,内容为“* This is the CSS for all skins (for both mobile and desktop) on MediaWiki.org. * Styling inside .mw-parser-output should generally use TemplateStyles.:​ Force lining numbers in headers (for fonts like Georgia):​ h1, h2, .firstHeading { font-variant-numeric: lining-nums; } Consistent size for sub/sup:​ .mw-body sub, .mw-body sup { font-size: 80%; } Public Domain background in the Help namespace:​ .action-view.ns-12 #bodyContent {…”
 
Admin留言 | 贡献
无编辑摘要
 
(未显示同一用户的10个中间版本)
第76行: 第76行:
.page-Project_Support_desk #ca-talk a.mw-redirect {
.page-Project_Support_desk #ca-talk a.mw-redirect {
display: none;
display: none;
}
.wikitable td {
    text-align: center !important;
    vertical-align: middle; /* 确保垂直居中 */
}
.center-text {
    text-align: center !important;
}
/* 定义一个用于缩略图的CSS类 */
.thumb-220px {
    width: 220px; /* 固定宽度 */
    height: auto; /* 自动调整高度以保持纵横比 */
    display: block; /* 确保图片是块级元素 */
    margin: auto; /* 居中显示 */
    margin-bottom: 10px; /* 增加底部间距 */
}
.novel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.novel-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    width: calc(20% - 8px); /* Adjust the percentage for different column counts */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.novel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.novel-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}
.novel-item a:hover {
    color: #06c;
}
}