MediaWiki:Common.css

来自魔法少女小圆维基
Madoka讨论 | 贡献2013年12月30日 (一) 01:08的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

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

  • 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),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/* 此处的 CSS 将应用于所有的皮肤 */

/* ------ 美化、自定义皮肤 ------ */
div.mw-body {
	background: url("/assets/Konachan.jpg") repeat scroll 180px 0px !important;
	background-attachment: fixed !important;
}

/*
div#mw-head {
	background: url("") !important;
}

#p-logo {
	position: absolute;
	top: -160px;
	left: 0;
	width: 10em;
	height: 160px;
}
div#mw-panel {
	font-size: @menu-main-font-size;
	position: absolute;
	top: 160px;
	padding-top: 1em;
	width: 10em;
	left: 0;
}
*/


/* navbox(底部导航条)样式 */
table.navbox {
    background-color: #f9f9f9;
    border: 1px solid #aaa;
    clear: both;
    font-size: 90%;
    margin: 1em 0em 0em;
    padding: 2px;
    text-align: center;
    width: 100%;
}
 
table.navbox th {
    background-color: #ccf;
    padding-left: 1em;
    padding-right: 1em;
}
 
table.navbox tr:not(:first-child) th {
    background-color: #ddf;
}
 
/* no Navbox when printing */
@media print {
    .navbox {
        display: none;
    }
}

/* Infobox classes copied from en.wikipedia */
 
/* Infobox template 样式 */
.infobox {
    border: 1px solid #aaa;
    background-color: transparent;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}
.infobox th,
.infobox td {
    margin: 1px;
}
.infobox-row {
    background-color: rgba(255, 235, 255, 0.5);
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    font-size: larger;
    margin-left: inherit;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}
 
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
}
 
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    border-right: 1px solid #aaa;
}
 
/* Put a checker background at the image description page only visible if the image has transparent background */
#file img {
    background: url("/asserts/Checker-16x16.png") repeat;
}
 
/* Commonly used Wikipedia .wikitable and .prettytable */
table.wikitable,
table.prettytable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th,
.prettytable th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable caption,
.prettytable caption {
    margin-left: inherit;
    margin-right: inherit;
    font-weight: bold;
}
 
.wikiaSkinMonaco #dynamic-links-write-article-row
 { display: none; }


/* -------------- 魔女文字 --------- */
@font-face {
  font-family: MadokaRunes;
  src: url("/assets/MadokaRunes-2.0.ttf");
}
 
@font-face {
  font-family: MadokaMusical;
  src: url("/assets/MadokaMusical.ttf");
}
 
/*
.test {
    background-color: #0f0 !important;
}
*/
 
/* 萌娘百科风格告示框 .common-box 样式 */
.common-box {
    border: 1px solid #DDDDDD;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0 2px 3px #666666;
    padding: 0.2em 0.4em;
}
 
/* --------- 配色 ---------- */
.madoka {background-color: #FFE0FF;}
.homura {background-color: #D0B0E0;}
.mami {background-color: #F5E29D;}
.sayaka {background-color: #96CFE2;}
.kyoko {background-color: #F58080;}
.qb {background-color: #E0E0E0;}
 
.madoka-light {background-color: rgba(255, 235, 255, 0.5);}
.homura-light {background-color: rgba(224, 208, 255, 0.5);}
.mami-light {background-color: rgba(255, 240, 176, 0.5);}
.sayaka-light {background-color: rgba(192, 239, 255, 0.5);}
.kyoko-light {background-color: rgba(255, 210, 200, 0.5);} /* rgba(255, 192, 192, 0.5);} */
.qb-light {background-color: rgba(240, 240, 240, 0.5);}

.theme {background-color: #3366CC; color: #FFFFFF;}
.theme-light {background-color: #A0C0F0;}


/* ------ wiki.puella-magi.net inline-spoilers 涂白风格 ------ */
.inline-spoilers, .inline_spoilers a, .inline_spoilers a:visited {
  /*background: #222;
  color: #222;*/
  background: white;
  color: white;
  border-bottom: 1px solid #b3b3b3;
  border-left:   1px solid #b3b3b3;
  border-right:  1px solid #b3b3b3;
  padding: 2px;
}
.inline-spoilers:hover {
  color: black;
}