MediaWiki:Common.css

Otaku moyu讨论 | 贡献2021年4月13日 (二) 00:34的版本

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/* 这里设置了Google Font */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600&family=Noto+Serif+JP:wght@400;600&family=Noto+Serif:wght@400;600&display=swap');

/* Changes the default font used for MediaWiki to Noto Sans (does not include headings or monospaced text): */
body {
  font-family: 'Noto Serif SC','Noto Serif JP', 'Noto Serif', serif;
}

/* Changes the default font used for MediaWiki headings to Noto Serif: */
#content h1, 
#content h2 {
  font-family: 'Noto Serif SC','Noto Serif JP', 'Noto Serif', serif;
}

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

body {
  background: #ffffff;
}

.mw-body-content {
    line-height: 2;
}

.toc {
    line-height: 1.8;
}

/* Changes the background color behind the top half of the logo and at top of each page: */
#mw-page-base {
  background: #ffffff;
}

.content .thumbcaption {
    text-align: center;
}

a {
  color: #4e66d4;
}

a.new {
  color: #ff4b6a;
}

a:visited { 
  color:#9ca5aa; 
} 

.mw-parser-output a.extiw, .mw-parser-output a.external {
  color: #4e66d4;
}

.mw-parser-output a.extiw, .mw-parser-output a:visited { 
  color:#9ca5aa; 
} 

.portal .body li a, .vector-menu-portal .body li a {
  color: #555555;
}

.portal .body li a, .vector-menu-portal .body li a:visited { 
  color:#555555; 
} 

.vector-menu-tabs li a {
  color: #ff4b6a;
}

.vector-menu-tabs li a:visited { 
  color:#555555; 
} 

.vector-menu-tabs .new a, .vector-menu-tabs .new a {
  color: #ff4b6a;
}

.vector-menu-tabs .new a, .vector-menu-tabs .new a:visited {
  color: #ff4b6a;
}

h1, h2 {
    border-bottom: 1px solid #ff9dae;
}

.mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {
    margin: 0.5em 0;
}

.content table {
    overflow: auto;
    overflow-y: auto;
    overflow-x: auto;
}

td {
    padding: 0 5px;
}

blockquote {
    margin: 0 1em;
    padding: 0 1em;
    border-left: #ff9dae 4px solid;
}

.mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol {
    margin: 2em 0 0 2em;
}

.mw-body-content p {
    margin: 1em 0;
    text-align: justify;
}

.mw-body {
    border: 1px solid #ff9dae;
}

.vector-menu-tabs li {
    background-image: linear-gradient(to top,#ff9dae 0,#fff5f7 1px,rgb(255 255 255 / 0%) 100%);
}

.vector-menu-tabs .selected {
    background: linear-gradient(to top,#ffffff 0,#ffffff 1px,rgb(255 255 255 / 0%) 100%);
}

.vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown h3 {
    background-image: linear-gradient(to bottom,rgb(255 255 255 / 0%) 0,#ff9dae 100%)
}

div.tright {
    margin: 15px 10px 3px 10px;
}

div.thumbinner {
    border: none;
    padding: 0;
    background-color: unset;
}

.mw-content-ltr .thumbcaption {
    text-align: center;
}

/* 这里规定了分Tab的模块的样式 */

html .thumbimage {
    border: none;
}

.tabs-tabbox > .tabs-input:checked + .tabs-label, .tabs-input-0:checked + .tabs-input-1 + .tabs-label {
    background-color: #ff9dae;
}

.tabs-tabbox > .tabs-input+ .tabs-input+ .tabs-label {
    margin: 0 0 0 0;
}

.tabs-label {
    padding: 0 8px;
}

.tabs-tabbox > .tabs-label {
    border: none;
    border-radius: unset;
}

.tabs-tabbox > .tabs-label {
    margin: 0;
}

.tabs-label {
    background-color: #eaeaea;
}

.tabs-tabbox > .tabs-container {
    border-radius: 0;
    border: 1px solid #eaeaea;
}


/* This will style the div that contains the whole tabber object. Generally this can be left alone. */
body .tabberlive {
}

/* This will style each tab's content area. */
body .tabberlive .tabbertab {
}

/* This is the box that surrounds all the tabs. */
body ul.tabbernav {
}

/* This is a box that surrounds each of the tabs. */
body ul.tabbernav li {
}

/* This is the style for the tabs, parts of this can be overridden for the current tab with the next selector */
body ul.tabbernav li a,
body ul.tabbernav li a:link,
body ul.tabbernav li a:visited,
body ul.tabbernav li a:hover {
}

/* This is the style for the currently selected tab */
body ul.tabbernav li.tabberactive a,
body ul.tabbernav li.tabberactive a:link,
body ul.tabbernav li.tabberactive a:visited,
body ul.tabbernav li.tabberactive a:hover {
}



/* 反白用样式 */

.hidetext {
    color: #ff9dae;
    background: #ff9dae;
    transition: all 0.5s;
}

.hidetext:hover {
    color: #ffffff;
}

.hidetext a {
    color: #ff9dae;
    transition: all 0.5s;
}

.hidetext:hover a {
    color: #4e66d4;
}

.hidetext a.new {
    color: #ff9dae;
    transition: all 0.5s;
}

.hidetext:hover a.new {
    color: #ff4b6a;
}

.hidetext a:visited { 
  color:#ff9dae; 
} 

.hidetext:hover a:visited { 
  color:#9ca5aa; 
}