MediaWiki:Common.css

来自WikiFur
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox/Safari:按住“Shift”的同时单击“刷新”,或按“Ctrl-F5”或“Ctrl-R”(Mac为“⌘-R”)
  • Google Chrome:按“Ctrl-Shift-R”(Mac为“⌘-Shift-R”)
  • Internet Explorer:按住“Ctrl”的同时单击“刷新”,或按“Ctrl-F5”
  • Opera:在“工具→首选项”中清除缓存
/* 此处的 CSS 将影响所有的界面外观 */
 
div.patrollink {
    font-size: 75%;
    text-align: right;
    position: absolute;
    top: 1.5em;
    right: 3em;
}
 
.allpagesredirect { font-style: italic; }
.allpagesredirect:before { content: "↳"; }
 
/* hiddenStructure es una técnica SUCIA, preferible usar PHP
.hiddenStructure { display: none; speak: none; }
*/
 
/* Remove padding from external links displayed without icon */
#bodyContent .plainlinks a { padding: 0 !important; }
 
/* Follow external links */
a.external { rel: follow !important; }
 
/* Class for links with loudspeaker icon next to them */
.audiolink a {
    /* esta imagen todavía no la tenemos
       background: url("http://pool.wikifur.com/w/images/8/8a/Loudspeaker.svg") center left no-repeat !important; */
    padding-left: 16px !important;
    padding-right: 0 !important;
}
 
/* Icons for medialist templates */
div.listenlist {
    /* esta imagen todavía no la tenemos
       background: url("http://pool.wikifur.com/w/images/a/a6/Gnome-speakernotes.png"); */
    padding-left: 40px;
}
 
/* Style rules for media list templates */
div.medialist {
    min-height: 50px;
    margin: 1em;
    background-position: top left;
    background-repeat: no-repeat;
}
div.medialist ul {
    list-style-type: none;
    list-style-image: none;
    margin: 0;
}
div.medialist ul li {
    padding-bottom: 0.5em;
}
div.medialist ul li li {
    font-size: 91%;
    padding-bottom: 0;
}
 
/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
table.wikitable th,
table.prettytable th {
    background: #f2f2f2;
    text-align: center;
}
table.wikitable caption,
table.prettytable caption {
    margin-left: inherit;
    margin-right: inherit;
    font-weight: bold;
}
 
/* **** Begin import from Wikipedia's Common.css **** */
table.prettytable {
    border-collapse: collapse;
    background: #f9f9f9;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
    vertical-align: top;
}
table.prettytable td,
table.prettytable th {
    border: 1px solid #ccc;
    text-align: left;
}
table.prettytable th {
    background: #FFCC99;
    font-weight: bold;
    text-align: center;
}
 
/* Style for "notices" */
.notice {
    text-align: justify;
    margin: 1em;
    padding: 0.2em;
}
#disambig {
    border-top: 3px double #cccccc;
    border-bottom: 3px double #cccccc;
}
#spoiler {
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}
 
/* Standard talk template style */
.Talk-Notice {
    border: 1px solid #C0C090;
    background-color: #F8EABA;
    margin-bottom: 3px;
    width: 85%;
    border-spacing: 3px;
    margin-left: auto;
    margin-right: auto;
}
.Talk-Notice td {
    background: inherit;
}
 
/* Merge template style */
.messagebox {
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    width: 85%;
    margin: 0 auto 1em auto;
    padding: .2em;
    text-align: justify;
}
.messagebox.merge {
    border: 1px solid #cf9fff;
    background-color: #f5edf5;
    text-align: center;
}
.messagebox.cleanup {
    border: 1px solid #9f9fff;
    background-color: #efefff;
    text-align: center;
}
.messagebox.standard-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
}
 
.infobox {
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    margin-bottom: 0.5em;
    margin-left: 1em;
    padding: .2em;
    float: right;
    clear: right;
}
.infobox tr {
    vertical-align: top;
}
.infobox caption {
    margin-left: inherit;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td, .infobox.bordered th {
    border: 1px solid #aaaaaa;
}
.infobox.sisterproject {
    width: 22em;
}
/* **** End import **** */
 
/* Classes for MU logos */
pre.MU-logo {
    float: right;
    font-size: 5pt;
    line-height: 5pt;
    padding-left: 5px;
    padding: 0px;
    border: none;
    background-color: transparent;
}
 
/* Classes for LJ icon links */
#bodyContent .lj-link a.external {
    text-decoration: underline;
    text-transform: lowercase;
    font-weight: bold;
    color: blue;
}
#bodyContent .lj-userinfo a.external {
    text-decoration: none;
    background: transparent url(http://pool.wikifur.com/w/images/2/27/Userinfo.gif) no-repeat center center !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}
#bodyContent .lj-community a.external {
    text-decoration: none;
    background: transparent url(http://pool.wikifur.com/w/images/0/01/Community.gif) no-repeat center center !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}
 
/* ================= 卡片容器 ================= */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 10px;
}
 
/* ================= 卡片基础样式 ================= */
.card {
    /* 统一过渡动画 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex: 1 0 calc(15% - 35px);
    height: 250px;
    min-width: 80px;
    max-width: calc(15% - 35px);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
}
 
/* ================= 卡片悬停状态 ================= */
.card:hover {
    transform: scale(1.08);
    z-index: 2;
    border: 2px solid blue;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2); /* 只保留一层阴影 */
}
 
.card:hover p {
    color: blue !important;
}
 
/* ================= 卡片图片样式 ================= */
.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;           /* 仅保留一次 */
    border-radius: 12px 12px 0 0;
    object-position: center 10%;
    transition: transform 0.2s;
}
 
/* 悬停时图片缩放 */
.card:hover img {
    transform: scale(1.1);
}
 
/* ================= 卡片内容区域 ================= */
.card-content {
    padding: 10px;
    position: relative;
    z-index: 2;
}
 
/* ================= 响应式断点:大平板 (1024px) ================= */
@media (max-width: 1024px) {
    .card {
        flex: 1 0 calc(16.66% - 20px);
        max-width: calc(16.66% - 20px);
        height: 170px;
    }
    .card img {
        height: 110px;
    }
}
 
/* ================= 响应式断点:平板 (768px) ================= */
@media (max-width: 768px) {
    .card {
        flex: 1 0 calc(20% - 20px);
        max-width: calc(20% - 20px);
        min-width: auto;
        height: 160px;
    }
    .card img {
        height: 100px;
    }
}
 
/* ================= 响应式断点:手机 (480px) ================= */
@media (max-width: 480px) {
    .card {
        flex: 1 0 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
        height: 150px;
    }
    .card img {
        height: 90px;
    }
}
 
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
 
/* ================= 首页祝福 轮播Banner ================= */
#fpSpecBanner {
    position: relative;
    text-align: center;
    font-size: 150%;
    color: #FF6B6B;
    margin: 10px 0;
    overflow: hidden;
    height: 64px;
}
 
.banner-slide {
    position: absolute;
    word-break: keep-all;
    text-wrap-style: balance;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: slide 32s infinite;
    will-change: opacity;
}
 
.banner-slide::after {
    content: "— " attr(data-author);
    position: absolute;
    right: 10px;
    bottom: 1px;
    font-size: 50%;
    color: #43459c;
    opacity: 0.8;
    font-style: italic;
    text-align: right;
    pointer-events: none;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
 
.banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slide:nth-child(2) { animation-delay: 4s; }
.banner-slide:nth-child(3) { animation-delay: 8s; }
.banner-slide:nth-child(4) { animation-delay: 12s; }
.banner-slide:nth-child(5) { animation-delay: 16s; }
.banner-slide:nth-child(6) { animation-delay: 20s; }
.banner-slide:nth-child(7) { animation-delay: 24s; }
.banner-slide:nth-child(8) { animation-delay: 28s; }
 
@keyframes slide {
    0%, 12%, 100% { opacity: 0; }
    2%, 10% { opacity: 1; }
}
 
/* ================= OPPO Sans 4.0 字体加载 ================= */
@font-face {
    font-family: "OPPO Sans";
    src: url('https://zh.wikifur.com/wiki/%E7%89%B9%E6%AE%8A:%E6%96%87%E4%BB%B6%E8%B7%AF%E5%BE%84/OPPO_Sans_4.0.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
 
:root {
    --wiki-font-sans: "OPPO Sans", "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
 
/* 全局字体族(只设置一次,让子元素自动继承) */
body {
    font-family: var(--wiki-font-sans);
}
 
/* 标题、表单控件等默认不继承的,单独补充 */
h1, h2, h3, h4, h5, h6,
#firstHeading,
.firstHeading,
.mw-headline,
input, textarea, select, button,
#wpTextbox1, #wpSummary, #searchInput, .searchInput {
    font-family: var(--wiki-font-sans);
}
 
/* ================= 全局字体大小 ================= */
#bodyContent,
.mw-parser-output {
    font-size: 15px;
    line-height: 1.6;
}
 
/* 移动端适配 */
@media (max-width: 768px) {
    #bodyContent,
    .mw-parser-output {
        font-size: 15px;
    }
}