MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
第101行: 第101行:
     margin: 0 auto;
     margin: 0 auto;
}
}
/* 政策图标容器:用背景图承载外链 SVG */
.xh-icon {
.xh-icon {
     display: block;
     display: block;
第109行: 第110行:
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-position: center;
     background-position: center;
    line-height: 0;
}
}
.xh-icon-player  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_player.svg'); }
.xh-icon-player  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_player.svg'); }

2026年9月23日 (三) 10:49的版本

/* 这里放置的CSS将应用于所有皮肤 */

.wikitable-routes tr th, .wikitable-routes tr td {
    font-size: 1rem !important;
    padding: 5px 10px 5px 0 !important;
}
.wikitable-routes tr td:first-child {
    border-right: 10px solid white;
}
.wikitable-routes tr td:only-child {
    background-color: #f5f5f5 !important;
}
.wikitable-routes tr th {
    background-color: #eee !important;
}
.page-首页 #p-namespaces,
.page-首页 #p-associated-pages,
.page-首页 #p-views,
.page-首页 #p-cactions {
    display: none !important;
}
.page-首页 #siteSub,
.page-首页 .siteSub {
    display: none !important;
}
.page-首页 #firstHeading,
.page-首页 .firstHeading {
    display: none !important;
}
/* 首页长条头图 */
.xh-banner {
    position: relative;
    height: 260px;                          /* 想改头图高度就改这一行 */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-image: url('https://www.xhcity.top/w/images/xhcity/a/a3/XHSBANNER.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0f8f87;
}

/* 头图上的叠加文字(可选) */
.xh-banner-text {
    position: absolute;
    left: 2rem;
    bottom: 1.5rem;
    right: 2rem;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.xh-banner-text .sub {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.4rem;
}
.xh-banner-text .title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.xh-banner-text .desc {
    font-size: 0.88rem;
    opacity: 0.88;
    margin-top: 0.45rem;
}
/* 通用裁切图片框 —— 任意尺寸图片都塞满并裁切 */
.xh-cover {
    overflow: hidden;
    border-radius: 4px;
    background: #f3f4f6;
    line-height: 0;
}
.xh-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 尺寸变体 —— 按需选用 */
.xh-cover-169 { aspect-ratio: 16 / 9; }   /* 宽幅 */
.xh-cover-32  { aspect-ratio: 3 / 2; }    /* 稍宽 */
.xh-cover-43  { aspect-ratio: 4 / 3; }    /* 常规 */
.xh-cover-11  { aspect-ratio: 1 / 1; }    /* 正方 */


.xh-icon {
    line-height: 0;
    margin-bottom: 0.45rem;
}
.xh-icon img {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto;
}
/* 政策图标容器:用背景图承载外链 SVG */
.xh-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.45rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 0;
}
.xh-icon-player   { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_player.svg'); }
.xh-icon-rules    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_rules.svg'); }
.xh-icon-approve  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_approve.svg'); }
.xh-icon-feedback { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_feedback.svg'); }
.xh-icon-road     { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_road.svg'); }
.xh-icon-station  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_station.svg'); }
.xh-icon-lines    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_lines.svg'); }