MediaWiki:Vector.css:修订间差异

来自格里芬Wiki
无编辑摘要
无编辑摘要
第1行: 第1行:
/* =========================================================
/* MediaWiki:Vector.css
  Griffin Wiki
   Griffin Wiki - Vector 2022 Clean Theme
  MediaWiki:Vector.css
   Part 1/2
 
*/
   Vector 2022 Custom Theme
   Clean Edition
  ========================================================= */
 


/* =========================================================
/* ================================
   01. GLOBAL
   1. Global
   ========================================================= */
   ================================ */


html {
html {
     scroll-behavior: smooth;
     scroll-behavior:smooth;
}
}


body {
body {
     background: #ffffff;
     background:#fff;
     color: #202122;
     color:#202122;
}
}


a {
    transition:color .2s ease,background-color .2s ease,transform .15s ease;
}


/* 全局过渡 */
a:hover {
 
     color:#3366cc;
a,
button,
input,
.vector-dropdown-label {
     transition:
        color .2s ease,
        background-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}
}




 
/* ================================
/* =========================================================
   2. Header
   02. HEADER
   ================================ */
   ========================================================= */
 


.vector-header-container {
.vector-header-container {
 
     background:#fff;
     background:
     border-bottom:1px solid #eaecf0;
        #ffffff !important;
     transition:box-shadow .25s ease;
 
     border-bottom:
        1px solid #eaecf0;
 
     transition:
        box-shadow .25s ease,
        background-color .25s ease;
}
}


.vector-header-container:hover {
.vector-header-container:hover {
 
     box-shadow:0 3px 15px rgba(0,0,0,.06);
     box-shadow:
        0 3px 15px rgba(0,0,0,.06);
}
}




/* Logo */


/* =========================================================
.vector-header-start {
  03. LOGO AREA
    transition:transform .2s ease;
  ========================================================= */
}
 
 
.vector-header-start button {


    transition:
.vector-header-start:hover {
        transform .15s ease,
    transform:translateY(-1px);
        background-color .2s ease;
}
}




.vector-header-start button:hover {
/* 左侧主菜单按钮 */


    transform:
.vector-header-start .mw-ui-icon {
        translateY(-1px);
     transition:transform .15s ease;
 
     background:
        rgba(51,102,255,.06);
 
    border-radius:
        6px;
}
}


 
.vector-header-start button:hover .mw-ui-icon {
.vector-header-start button:active {
     transform:scale(1.08);
 
     transform:
        translateY(-2px)
        scale(.97);
}
}




 
/* ================================
/* =========================================================
   3. Right Header Functions
   04. RIGHT HEADER FUNCTIONS
   ================================ */
   ========================================================= */
 
 
/*
  右侧:
  搜索
  外观
  工具
  用户菜单
 
  只做轻微交互
*/
 


.vector-header-end .vector-dropdown-label {
.vector-header-end .vector-dropdown-label {
 
     border-radius:6px;
     transform:
     transition:
        translateY(0);
         transform .15s ease,
 
        background-color .2s ease;
     border-radius:
         6px;
}
}


 
.vector-header-end .vector-dropdown-label:hover {
.vector-header-end
     transform:translateY(-1px);
.vector-dropdown-label:hover {
     background:rgba(51,102,204,.06);
 
     transform:
        translateY(-1px);
 
     background:
        rgba(51,102,255,.05);
}
}


 
.vector-header-end .vector-dropdown-label:active {
.vector-header-end
     transform:translateY(-1px) scale(.98);
.vector-dropdown-label:active {
 
     transform:
        translateY(-1.5px);
}
}




/* 打开状态 */
/* 搜索按钮 */
 
.vector-header-end
.vector-dropdown[aria-expanded="true"]
.vector-dropdown-label {
 
    transform:
        translateY(-1px);
}
 
 
 
/* =========================================================
  05. DROPDOWN ANIMATION
  ========================================================= */
 
 
.vector-header-end
.vector-dropdown-content {
 
 
    opacity:
        0;
 
 
    transform:
 
        translateY(-4px)
        scale(.98);
 
 
    transform-origin:
        top right;
 


.vector-search-box-input {
    border-radius:8px;
     transition:
     transition:
 
         border-color .2s ease,
         opacity .18s ease,
         box-shadow .2s ease;
        transform .18s ease;
 
}
 
 
 
.vector-header-end
.vector-dropdown[aria-expanded="true"]
.vector-dropdown-content {
 
 
    opacity:
        1;
 
 
    transform:
 
        translateY(0)
        scale(1);
 
}
 
 
 
/* 菜单项目 */
 
 
.vector-header-end
.vector-dropdown-content
.mw-list-item a {
 
 
    transition:
 
        background-color .15s ease,
         transform .15s ease;
 
}
}


 
.vector-search-box-input:focus {
 
     border-color:#3366cc;
.vector-header-end
     box-shadow:0 0 0 2px rgba(51,102,204,.15);
.vector-dropdown-content
.mw-list-item a:hover {
 
 
     transform:
        translateX(3px);
 
 
     background:
        rgba(51,102,255,.05);
 
}
}




 
/* ================================
/* =========================================================
   4. Sidebar
   06. SIDEBAR
   ================================ */
   ========================================================= */
 


.vector-sidebar {
.vector-sidebar {
 
     background:#fff;
     background:
        #fbfbfb !important;
 
    border-right:
        1px solid #eaecf0;
}
}


 
.vector-sidebar .vector-menu-heading {
 
     border-radius:6px;
.vector-sidebar
.vector-menu-heading {
 
 
     border-radius:
        6px;
 
 
    cursor:
        pointer;
 
 
     transition:
     transition:
         background-color .2s ease,
         background-color .2s ease,
         padding-left .2s ease;
         padding-left .15s ease;
 
}
}


 
.vector-sidebar .vector-menu-heading:hover {
 
     background:rgba(51,102,204,.06);
.vector-sidebar
     padding-left:4px;
.vector-menu-heading:hover {
 
 
     background:
 
        rgba(51,102,255,.06);
 
 
     padding-left:
        4px;
 
}
}




 
.vector-sidebar .vector-menu-content a {
/* Sidebar 链接 */
    border-radius:6px;
 
 
.vector-sidebar
a {
 
 
     transition:
     transition:
 
         background-color .15s ease,
         transform .15s ease,
         transform .15s ease;
         color .15s ease;
 
}
}


 
.vector-sidebar .vector-menu-content a:hover {
 
    background:rgba(51,102,204,.05);
.vector-sidebar
     transform:translateX(3px);
a:hover {
 
 
     transform:
        translateX(3px);
 
}
}




/* ================================
  5. Sidebar Logo Area
  ================================ */


/* =========================================================
.mw-logo {
  07. SIDEBAR MENU MOTION
  ========================================================= */
 
 
.vector-sidebar
.vector-menu-content {
 
 
     transition:
     transition:
 
         transform .25s ease,
         opacity .25s ease,
         filter .25s ease;
         transform .25s ease;
 
}
}


 
.mw-logo:hover {
 
     transform:translateY(-2px);
/*
     filter:drop-shadow(0 4px 8px rgba(0,0,0,.15));
  不改变 display
  避免破坏 Vector JS
*/
 
 
.vector-sidebar
.vector-menu-content {
 
 
     opacity:
        .98;
 
     transform:
        translateX(0);
 
}
}




/* ================================
  6. Page Container
  ================================ */


/* =========================================================
.mw-page-container {
  08. PAGE FADE
     animation:griffinFade .25s ease-out;
  ========================================================= */
 
 
.mw-page-container,
.mw-content-container {
 
 
     animation:
 
        griffinFade .3s ease-out;
 
}
}


@keyframes griffinFade {
@keyframes griffinFade {
     from {
     from {
 
         opacity:0;
         opacity:
        transform:translateY(5px);
            0;
 
     }
     }
     to {
     to {
 
         opacity:1;
         opacity:
        transform:translateY(0);
            1;
 
     }
     }
}
}




 
/* ================================
/* =========================================================
   7. Headings
   09. HEADINGS
   ================================ */
   ========================================================= */
 


.mw-first-heading {
.mw-first-heading {
    position:relative;
    padding-bottom:10px;
}


.mw-first-heading:after {
    content:"";
    display:block;
    width:70px;
    height:3px;
    margin-top:8px;
    border-radius:3px;
    background:linear-gradient(90deg,#3366cc,#6f7cff,#ff4fa3);
}


     position:
.mw-parser-output h2 {
        relative;
     border-bottom:1px solid #eaecf0;
 
     padding-bottom:6px;
     padding-bottom:
        10px;
 
}
}




/* ================================
  8. Tools Menu Safe Animation
  ================================ */


.mw-first-heading::after {


/* 只影响工具项目,不修改菜单显示 */


     content:
#p-tb .mw-list-item a,
         "";
.vector-page-tools .mw-list-item a {
     border-radius:6px;
    transition:
        background-color .15s ease,
         transform .15s ease;
}


     display:
#p-tb .mw-list-item a:hover,
        block;
.vector-page-tools .mw-list-item a:hover {
     background:rgba(51,102,204,.06);
    transform:translateX(3px);
}




    width:
/* 当前项目 */
        60px;


#p-tb .selected a,
.vector-page-tools .selected a {
    background:rgba(51,102,204,.1);
    color:#3366cc;
    font-weight:600;
}


    height:
        3px;


/* ================================
  9. Dropdown Button
  ================================ */


    margin-top:
.vector-dropdown-label {
        8px;
     cursor:pointer;
 
 
    border-radius:
        3px;
 
 
     background:
 
        linear-gradient(
            90deg,
            #3366cc,
            #6f7cff,
            #ff4fa3
        );
 
}
}


 
.vector-dropdown-label:hover {
 
     background:rgba(51,102,204,.05);
.mw-parser-output h2 {
 
 
     border-bottom:
        1px solid #eaecf0;
 
    padding-bottom:
        6px;
 
}
}
/* =========================================================
/* ================================
   10. INFOBOX
   10. Infobox
   ========================================================= */
   ================================ */
 


.infobox {
.infobox {
 
     background:#f8f9fa;
     background:
     border:1px solid #c8ccd1;
        #f8f9fa !important;
     border-radius:8px;
 
    overflow:hidden;
 
     box-shadow:0 2px 8px rgba(0,0,0,.05);
     border:
        1px solid #c8ccd1;
 
 
     border-radius:
        8px;
 
 
     box-shadow:
 
        0 2px 8px rgba(0,0,0,.05);
 
 
    overflow:
        hidden;
 
 
     transition:
     transition:
         transform .25s ease,
         transform .25s ease,
         box-shadow .25s ease,
         box-shadow .25s ease;
        border-color .25s ease;
 
}
}


.infobox:hover {
.infobox:hover {
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.1);
}


 
.infobox th {
     transform:
     background:#eaecf0;
 
        translateY(-2px);
 
 
    border-color:
 
        #b8c2d9;
 
 
    box-shadow:
 
        0 8px 22px rgba(0,0,0,.10);
 
}
}




/* 顶部装饰 */


/* Infobox 顶部装饰线 */
.infobox:first-child {
 
     border-top:3px solid #3366cc;
 
.infobox::before {
 
 
     content:
        "";
 
 
    display:
        block;
 
 
    height:
        3px;
 
 
    background:
 
        linear-gradient(
            90deg,
            #3366cc,
            #6f7cff,
            #ff4fa3
        );
 
}
}




 
/* ================================
 
   11. Tables
/* =========================================================
   ================================ */
   11. TABLE
   ========================================================= */
 


.wikitable {
.wikitable {
 
     border:1px solid #c8ccd1;
 
     border-radius:8px;
     border:
     overflow:hidden;
 
     box-shadow:0 2px 8px rgba(0,0,0,.04);
        1px solid #c8ccd1;
 
 
     border-radius:
 
        8px;
 
 
     overflow:
 
        hidden;
 
 
     box-shadow:
 
        0 2px 8px rgba(0,0,0,.04);
 
}
}


.wikitable th {
.wikitable th {
 
     background:#f8f9fa;
 
     background:
 
        #f8f9fa;
 
 
    font-weight:
 
        600;
 
}
}


.wikitable tr {
.wikitable tr {
 
     transition:background-color .15s ease;
 
     transition:
 
        background-color .15s ease;
 
}
}


.wikitable tr:hover {
.wikitable tr:hover {
 
     background:rgba(51,102,204,.04);
 
     background:
 
        rgba(51,102,255,.035);
 
}
}




 
/* ================================
 
   12. Images
/* =========================================================
   ================================ */
   12. IMAGES
   ========================================================= */
 


.thumbinner {
.thumbinner {
 
     background:#fff;
 
     border:1px solid #eaecf0;
     background:
     border-radius:8px;
 
     box-shadow:0 2px 8px rgba(0,0,0,.05);
        #ffffff;
 
 
     border:
 
        1px solid #eaecf0;
 
 
     border-radius:
 
        8px;
 
 
     box-shadow:
 
        0 2px 8px rgba(0,0,0,.05);
 
 
     transition:
     transition:
         transform .25s ease,
         transform .25s ease,
         box-shadow .25s ease;
         box-shadow .25s ease;
}
}


.thumbinner:hover {
.thumbinner:hover {
 
     transform:translateY(-3px);
 
     box-shadow:0 8px 20px rgba(0,0,0,.1);
     transform:
 
        translateY(-3px);
 
 
     box-shadow:
 
        0 8px 20px rgba(0,0,0,.10);
 
}
}


 
.thumbimage img {
 
     transition:transform .25s ease;
.thumbinner img {
 
 
     transition:
 
        transform .25s ease;
 
}
}


 
.thumbimage:hover img {
 
     transform:scale(1.02);
.thumbinner:hover img {
 
 
     transform:
 
        scale(1.02);
 
}
}




 
/* ================================
 
   13. Table of Contents
/* =========================================================
   ================================ */
   13. TOC
   ========================================================= */
 


.toc {
.toc {
 
     background:#f8f9fa;
 
     border:1px solid #eaecf0;
     background:
     border-radius:8px;
 
     box-shadow:0 2px 8px rgba(0,0,0,.04);
        #f8f9fa;
 
 
     border:
 
        1px solid #eaecf0;
 
 
     border-radius:
 
        8px;
 
 
     box-shadow:
 
        0 2px 8px rgba(0,0,0,.04);
 
}
}


.toc a:hover {
.toc a:hover {
 
     color:#3366cc;
 
     color:
 
        #3366cc;
 
}
}




 
/* ================================
 
   14. Code
/* =========================================================
   ================================ */
   14. CODE BLOCK
   ========================================================= */
 


pre,
pre,
.mw-code {
.mw-code {
 
     background:#f8f9fa;
 
     border:1px solid #eaecf0;
     background:
     border-radius:8px;
 
     padding:12px;
        #f8f9fa;
 
 
     border:
 
        1px solid #eaecf0;
 
 
     border-radius:
 
        8px;
 
 
     padding:
 
        12px;
 
}
}


code {
code {
 
     background:#f8f9fa;
 
     border:1px solid #eaecf0;
     background:
     border-radius:4px;
 
     padding:2px 5px;
        #f8f9fa;
 
 
     border:
 
        1px solid #eaecf0;
 
 
     border-radius:
 
        4px;
 
 
     padding:
 
        2px 5px;
 
}
}




 
/* ================================
 
   15. Main Page Banner
/* =========================================================
   ================================ */
   15. MAIN PAGE BANNER
   ========================================================= */
 


/*
/*
  使用方法:
使用:
 
<div class="mainpage-banner">
  <div class="mainpage-banner">
...
      <h1>标题</h1>
</div>
      <p>介绍</p>
  </div>
 
 
  修改下面 URL 为你的图片
*/
*/


.mainpage-banner {
.mainpage-banner {
 
     position:relative;
 
     overflow:hidden;
     position:
     min-height:220px;
 
     margin:20px 0;
        relative;
     padding:60px 30px;
 
     display:flex;
 
     flex-direction:column;
     overflow:
     justify-content:center;
 
     align-items:center;
        hidden;
     text-align:center;
 
     color:#fff;
 
     border-radius:14px;
     min-height:
     background:#1f2a44;
 
     box-shadow:0 8px 28px rgba(0,0,0,.12);
        220px;
 
 
     margin:
 
        20px 0;
 
 
     padding:
 
        60px 30px;
 
 
     display:
 
        flex;
 
 
     flex-direction:
 
        column;
 
 
     justify-content:
 
        center;
 
 
     align-items:
 
        center;
 
 
     text-align:
 
        center;
 
 
     color:
 
        white;
 
 
     border-radius:
 
        14px;
 
 
     background:
 
        #1f2a44;
 
 
     box-shadow:
 
        0 8px 28px rgba(0,0,0,.12);
 
}
}


 
.mainpage-banner:before {
 
     content:"";
 
     position:absolute;
.mainpage-banner::before {
     inset:0;
 
     background-image:url("https://example.com/banner.jpg");
 
     background-size:cover;
     content:
     background-position:center;
 
     filter:brightness(.65);
        "";
     transition:transform 8s ease;
 
 
     position:
 
        absolute;
 
 
     inset:
 
        0;
 
 
     background-image:
 
 
        url("https://example.com/banner.jpg");
 
 
 
     background-size:
 
        cover;
 
 
     background-position:
 
        center;
 
 
     filter:
 
        brightness(.65);
 
 
     transition:
 
        transform 8s ease;
 
}
}


 
.mainpage-banner:hover:before {
 
     transform:scale(1.06);
.mainpage-banner:hover::before {
 
 
     transform:
 
        scale(1.06);
 
}
}


 
.mainpage-banner:after {
 
     content:"";
 
     position:absolute;
.mainpage-banner::after {
     inset:0;
 
     background:linear-gradient(
 
        180deg,
     content:
        rgba(0,0,0,.25),
 
        rgba(0,0,0,.65)
        "";
    );
 
 
     position:
 
        absolute;
 
 
     inset:
 
        0;
 
 
     background:
 
        linear-gradient(
 
            180deg,
 
            rgba(0,0,0,.2),
 
            rgba(0,0,0,.6)
 
        );
 
}
}


 
.mainpage-banner>* {
 
     position:relative;
 
     z-index:2;
.mainpage-banner > * {
 
 
     position:
 
        relative;
 
 
     z-index:
 
        2;
 
}
}


.mainpage-banner h1 {
.mainpage-banner h1 {
 
    margin:0 0 10px;
 
     font-size:2.8em;
     font-size:
     color:#fff;
 
     text-shadow:0 3px 12px rgba(0,0,0,.5);
        2.8em;
 
 
    margin:
 
        0 0 10px;
 
 
     color:
 
        #ffffff;
 
 
     text-shadow:
 
        0 3px 12px rgba(0,0,0,.5);
 
}
}




 
/* ================================
 
   16. Main Page Modules
 
   ================================ */
/* =========================================================
   16. MAIN PAGE MODULE
   ========================================================= */
 


.mainpage-module {
.mainpage-module {
 
     background:#fff;
 
     border:1px solid #eaecf0;
     background:
     border-radius:10px;
 
     padding:18px;
        #ffffff;
     margin-bottom:18px;
 
     box-shadow:0 2px 8px rgba(0,0,0,.04);
 
     border:
 
        1px solid #eaecf0;
 
 
     border-radius:
 
        10px;
 
 
     padding:
 
        18px;
 
 
     margin-bottom:
 
        18px;
 
 
     box-shadow:
 
        0 2px 8px rgba(0,0,0,.04);
 
 
     transition:
     transition:
         transform .25s ease,
         transform .25s ease,
         box-shadow .25s ease;
         box-shadow .25s ease;
}
}


.mainpage-module:hover {
.mainpage-module:hover {
 
     transform:translateY(-3px);
 
     box-shadow:0 8px 22px rgba(0,0,0,.08);
     transform:
 
        translateY(-3px);
 
 
     box-shadow:
 
        0 8px 22px rgba(0,0,0,.08);
 
}
}




 
/* ================================
 
   17. Category Links
/* =========================================================
   ================================ */
   17. CATEGORY / NOTICE
   ========================================================= */
 


.catlinks {
.catlinks {
 
     background:#f8f9fa;
 
     border:1px solid #eaecf0;
     background:
     border-radius:8px;
 
     padding:8px 12px;
        #f8f9fa;
 
 
     border:
 
        1px solid #eaecf0;
 
 
     border-radius:
 
        8px;
 
 
     padding:
 
        8px 12px;
 
}
}




 
/* ================================
 
   18. Scrollbar
 
   ================================ */
/* =========================================================
   18. SCROLLBAR
   ========================================================= */
 


::-webkit-scrollbar {
::-webkit-scrollbar {
 
     width:9px;
 
     width:
 
        9px;
 
}
}


::-webkit-scrollbar-track {
::-webkit-scrollbar-track {
 
     background:#f8f9fa;
 
     background:
 
        #f8f9fa;
 
}
}


::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
 
     background:#c8ccd1;
 
     border-radius:10px;
     background:
 
        #c8ccd1;
 
 
     border-radius:
 
        10px;
 
}
}


::-webkit-scrollbar-thumb:hover {
::-webkit-scrollbar-thumb:hover {
 
     background:#a2a9b1;
 
     background:
 
        #a2a9b1;
 
}
}




/* ================================
  19. Responsive
  ================================ */


 
@media(max-width:900px) {
 
/* =========================================================
  19. RESPONSIVE
  ========================================================= */
 
 
@media(max-width:900px){
 
 
     .mainpage-banner {
     .mainpage-banner {
 
        min-height:170px;
 
         padding:45px 20px;
         padding:
 
            45px 20px;
 
     }
     }


     .mainpage-banner h1 {
     .mainpage-banner h1 {
 
         font-size:2.2em;
 
         font-size:
 
            2.2em;
 
     }
     }
}
}


 
@media(max-width:640px) {
 
 
 
@media(max-width:640px){
 
 
    .infobox {
 
 
        max-width:
 
            100%;
 
    }
 
 
 
     .mainpage-banner {
     .mainpage-banner {
 
         min-height:140px;
 
         padding:35px 15px;
         min-height:
 
            160px;
 
 
         padding:
 
            35px 15px;
 
     }
     }


     .mainpage-banner h1 {
     .mainpage-banner h1 {
        font-size:1.8em;
    }


 
    .infobox {
         font-size:
         max-width:100%;
 
            1.8em;
 
     }
     }
}
}




/* ================================
  20. Reduced Motion
  ================================ */


 
@media(prefers-reduced-motion:reduce) {
/* =========================================================
  20. REDUCED MOTION
  ========================================================= */
 
 
@media(prefers-reduced-motion:reduce){
 
 
     *,
     *,
     *::before,
     *:before,
     *::after {
     *:after {
 
         animation:none!important;
 
         transition:none!important;
         animation:
 
            none !important;
 
 
         transition:
 
            none !important;
 
     }
     }
}
/* =========================================================
  Vector 2022 Tool Menu Animation
  工具栏 / 操作菜单 / 查看源代码
  ========================================================= */
/* =========================================================
  01. 工具栏容器
  ========================================================= */
.vector-page-tools,
.vector-page-tools-dropdown,
.vector-menu {
    transition:
        opacity .2s ease,
        transform .2s ease;
}
/* =========================================================
  02. 工具菜单标题
  Tools / 操作
  ========================================================= */
.vector-menu-heading,
.vector-dropdown-label {
    border-radius:
        6px;
    transition:
        background-color .18s ease,
        transform .15s ease,
        color .18s ease;
}
.vector-menu-heading:hover,
.vector-dropdown-label:hover {
    background:
        rgba(51,102,255,.06);
    transform:
        translateX(2px);
}
/* 点击 */
.vector-menu-heading:active,
.vector-dropdown-label:active {
    transform:
        translateX(2px)
        scale(.98);
}
/* =========================================================
  03. 菜单展开动画
  ========================================================= */
/* 普通 Vector 菜单 */
.vector-menu-content,
.vector-dropdown-content {
    opacity:
        0;
    transform:
        translateY(-5px)
        scale(.98);
    transform-origin:
        top;
    transition:
        opacity .18s ease,
        transform .18s ease;
}
/* 打开状态 */
.vector-menu-open
.vector-menu-content,
.vector-dropdown[aria-expanded="true"]
.vector-dropdown-content {
    opacity:
        1;
    transform:
        translateY(0)
        scale(1);
}
/* =========================================================
  04. 工具列表项目
  ========================================================= */
.vector-menu-content
.mw-list-item,
.vector-dropdown-content
.mw-list-item {
    position:
        relative;
    transition:
        transform .15s ease,
        background-color .15s ease;
}
.vector-menu-content
.mw-list-item:hover,
.vector-dropdown-content
.mw-list-item:hover {
    transform:
        translateX(4px);
    background:
        rgba(51,102,255,.05);
}
/* =========================================================
  05. 当前选中项目
  ========================================================= */
/*
  例如:
  查看源代码
  当前保护状态
  当前工具
*/
.vector-menu-content
.selected,
.vector-dropdown-content
.selected {
    background:
        rgba(51,102,255,.10);
    border-radius:
        6px;
}
.vector-menu-content
.selected a,
.vector-dropdown-content
.selected a {
    color:
        #3366cc;
    font-weight:
        600;
}
/* =========================================================
  06. 菜单项目左侧强调线
  ========================================================= */
.vector-menu-content
.mw-list-item::before,
.vector-dropdown-content
.mw-list-item::before {
    content:
        "";
    position:
        absolute;
    left:
        0;
    top:
        20%;
    height:
        60%;
    width:
        0;
    border-radius:
        4px;
    background:
        linear-gradient(
            180deg,
            #3366cc,
            #ff4fa3
        );
    transition:
        width .15s ease;
}
.vector-menu-content
.mw-list-item:hover::before,
.vector-dropdown-content
.mw-list-item:hover::before {
    width:
        3px;
}
/* =========================================================
  07. 页面工具按钮
  查看源代码等
  ========================================================= */
.vector-page-tools
a {
    transition:
        transform .15s ease,
        color .15s ease,
        background-color .15s ease;
}
.vector-page-tools
a:hover {
    transform:
        translateX(3px);
    background:
        rgba(51,102,255,.05);
}
/* =========================================================
  08. 小屏幕优化
  ========================================================= */
@media(max-width:900px){
    .vector-menu-content
    .mw-list-item:hover,
    .vector-dropdown-content
    .mw-list-item:hover {
        transform:
            translateX(2px);
    }
}
}
/* =========================================================
  END OF VECTOR.CSS
  ========================================================= */

2026年8月7日 (五) 05:57的版本

/* MediaWiki:Vector.css
   Griffin Wiki - Vector 2022 Clean Theme
   Part 1/2
*/

/* ================================
   1. Global
   ================================ */

html {
    scroll-behavior:smooth;
}

body {
    background:#fff;
    color:#202122;
}

a {
    transition:color .2s ease,background-color .2s ease,transform .15s ease;
}

a:hover {
    color:#3366cc;
}


/* ================================
   2. Header
   ================================ */

.vector-header-container {
    background:#fff;
    border-bottom:1px solid #eaecf0;
    transition:box-shadow .25s ease;
}

.vector-header-container:hover {
    box-shadow:0 3px 15px rgba(0,0,0,.06);
}


/* Logo */

.vector-header-start {
    transition:transform .2s ease;
}

.vector-header-start:hover {
    transform:translateY(-1px);
}


/* 左侧主菜单按钮 */

.vector-header-start .mw-ui-icon {
    transition:transform .15s ease;
}

.vector-header-start button:hover .mw-ui-icon {
    transform:scale(1.08);
}


/* ================================
   3. Right Header Functions
   ================================ */

.vector-header-end .vector-dropdown-label {
    border-radius:6px;
    transition:
        transform .15s ease,
        background-color .2s ease;
}

.vector-header-end .vector-dropdown-label:hover {
    transform:translateY(-1px);
    background:rgba(51,102,204,.06);
}

.vector-header-end .vector-dropdown-label:active {
    transform:translateY(-1px) scale(.98);
}


/* 搜索按钮 */

.vector-search-box-input {
    border-radius:8px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.vector-search-box-input:focus {
    border-color:#3366cc;
    box-shadow:0 0 0 2px rgba(51,102,204,.15);
}


/* ================================
   4. Sidebar
   ================================ */

.vector-sidebar {
    background:#fff;
}

.vector-sidebar .vector-menu-heading {
    border-radius:6px;
    transition:
        background-color .2s ease,
        padding-left .15s ease;
}

.vector-sidebar .vector-menu-heading:hover {
    background:rgba(51,102,204,.06);
    padding-left:4px;
}


.vector-sidebar .vector-menu-content a {
    border-radius:6px;
    transition:
        background-color .15s ease,
        transform .15s ease;
}

.vector-sidebar .vector-menu-content a:hover {
    background:rgba(51,102,204,.05);
    transform:translateX(3px);
}


/* ================================
   5. Sidebar Logo Area
   ================================ */

.mw-logo {
    transition:
        transform .25s ease,
        filter .25s ease;
}

.mw-logo:hover {
    transform:translateY(-2px);
    filter:drop-shadow(0 4px 8px rgba(0,0,0,.15));
}


/* ================================
   6. Page Container
   ================================ */

.mw-page-container {
    animation:griffinFade .25s ease-out;
}

@keyframes griffinFade {
    from {
        opacity:0;
        transform:translateY(5px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}


/* ================================
   7. Headings
   ================================ */

.mw-first-heading {
    position:relative;
    padding-bottom:10px;
}

.mw-first-heading:after {
    content:"";
    display:block;
    width:70px;
    height:3px;
    margin-top:8px;
    border-radius:3px;
    background:linear-gradient(90deg,#3366cc,#6f7cff,#ff4fa3);
}

.mw-parser-output h2 {
    border-bottom:1px solid #eaecf0;
    padding-bottom:6px;
}


/* ================================
   8. Tools Menu Safe Animation
   ================================ */


/* 只影响工具项目,不修改菜单显示 */

#p-tb .mw-list-item a,
.vector-page-tools .mw-list-item a {
    border-radius:6px;
    transition:
        background-color .15s ease,
        transform .15s ease;
}

#p-tb .mw-list-item a:hover,
.vector-page-tools .mw-list-item a:hover {
    background:rgba(51,102,204,.06);
    transform:translateX(3px);
}


/* 当前项目 */

#p-tb .selected a,
.vector-page-tools .selected a {
    background:rgba(51,102,204,.1);
    color:#3366cc;
    font-weight:600;
}


/* ================================
   9. Dropdown Button
   ================================ */

.vector-dropdown-label {
    cursor:pointer;
}

.vector-dropdown-label:hover {
    background:rgba(51,102,204,.05);
}
/* ================================
   10. Infobox
   ================================ */

.infobox {
    background:#f8f9fa;
    border:1px solid #c8ccd1;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.infobox:hover {
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.1);
}

.infobox th {
    background:#eaecf0;
}


/* 顶部装饰 */

.infobox:first-child {
    border-top:3px solid #3366cc;
}


/* ================================
   11. Tables
   ================================ */

.wikitable {
    border:1px solid #c8ccd1;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.wikitable th {
    background:#f8f9fa;
}

.wikitable tr {
    transition:background-color .15s ease;
}

.wikitable tr:hover {
    background:rgba(51,102,204,.04);
}


/* ================================
   12. Images
   ================================ */

.thumbinner {
    background:#fff;
    border:1px solid #eaecf0;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.thumbinner:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.1);
}

.thumbimage img {
    transition:transform .25s ease;
}

.thumbimage:hover img {
    transform:scale(1.02);
}


/* ================================
   13. Table of Contents
   ================================ */

.toc {
    background:#f8f9fa;
    border:1px solid #eaecf0;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.toc a:hover {
    color:#3366cc;
}


/* ================================
   14. Code
   ================================ */

pre,
.mw-code {
    background:#f8f9fa;
    border:1px solid #eaecf0;
    border-radius:8px;
    padding:12px;
}

code {
    background:#f8f9fa;
    border:1px solid #eaecf0;
    border-radius:4px;
    padding:2px 5px;
}


/* ================================
   15. Main Page Banner
   ================================ */

/*
 使用:
 <div class="mainpage-banner">
 ...
 </div>
*/

.mainpage-banner {
    position:relative;
    overflow:hidden;
    min-height:220px;
    margin:20px 0;
    padding:60px 30px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    border-radius:14px;
    background:#1f2a44;
    box-shadow:0 8px 28px rgba(0,0,0,.12);
}

.mainpage-banner:before {
    content:"";
    position:absolute;
    inset:0;
    background-image:url("https://example.com/banner.jpg");
    background-size:cover;
    background-position:center;
    filter:brightness(.65);
    transition:transform 8s ease;
}

.mainpage-banner:hover:before {
    transform:scale(1.06);
}

.mainpage-banner:after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,.25),
        rgba(0,0,0,.65)
    );
}

.mainpage-banner>* {
    position:relative;
    z-index:2;
}

.mainpage-banner h1 {
    margin:0 0 10px;
    font-size:2.8em;
    color:#fff;
    text-shadow:0 3px 12px rgba(0,0,0,.5);
}


/* ================================
   16. Main Page Modules
   ================================ */

.mainpage-module {
    background:#fff;
    border:1px solid #eaecf0;
    border-radius:10px;
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.mainpage-module:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 22px rgba(0,0,0,.08);
}


/* ================================
   17. Category Links
   ================================ */

.catlinks {
    background:#f8f9fa;
    border:1px solid #eaecf0;
    border-radius:8px;
    padding:8px 12px;
}


/* ================================
   18. Scrollbar
   ================================ */

::-webkit-scrollbar {
    width:9px;
}

::-webkit-scrollbar-track {
    background:#f8f9fa;
}

::-webkit-scrollbar-thumb {
    background:#c8ccd1;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover {
    background:#a2a9b1;
}


/* ================================
   19. Responsive
   ================================ */

@media(max-width:900px) {
    .mainpage-banner {
        min-height:170px;
        padding:45px 20px;
    }

    .mainpage-banner h1 {
        font-size:2.2em;
    }
}

@media(max-width:640px) {
    .mainpage-banner {
        min-height:140px;
        padding:35px 15px;
    }

    .mainpage-banner h1 {
        font-size:1.8em;
    }

    .infobox {
        max-width:100%;
    }
}


/* ================================
   20. Reduced Motion
   ================================ */

@media(prefers-reduced-motion:reduce) {
    *,
    *:before,
    *:after {
        animation:none!important;
        transition:none!important;
    }
}