MediaWiki:Common.css

来自律工百科
跳转至: 导航搜索

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

  • 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控制 
 * 此代码根据知识共享 署名-非商业性使用-相同方式共享 3.0
 * 版权协定:知识共享 署名-非商业性使用-相同方式共享 3.0
 */
body.page-首页 h1.firstHeading { display:none; }
body.page-Main_Page h1.firstHeading { display:none; }
body.skin-vector {
    font-family: Arial,Microsoft YaHei, \5fae\8f6f\96c5\9ed1, Hiragino Sans GB, sans-serif;
}
/* 主页 */
#mainpage {
    display: block;
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0 auto; /* 居中 */
    max-width: 1030px;
}
.mainpage-newsbox {
    width: 66.67%;
    float: left;
}
.mainpage-box {
    float: left;
    width: 33.33%;
}
.mainpage-title {
    font-size: 1.618em;
    color: #228b22;
    margin: 0;
    background: #deede0;
    font-weight: 400; /* 400 = normal */
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size-adjust: .43;
}
.mainpage-content,
.mainpage-1stcontent {
    vertical-align: top;
    padding: .5em 2%;
    min-height: 230px;
}
.mainpage-content.nomobile {
    min-height: auto;
}
.clear-div {
    clear: both;
}
/* 并列用的CSS3代码 */
.block,
.content-box {
    width: 100%;
}
.content-box {
    display: box;
    display: -moz-box;
    display: -webkit-box;
}
.parallel .content-box {
    box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-box-orient: horizontal;
}
.parallel .boite {
    box-flex: 1;
    -moz-box-flex: 1;
    -webkit-box-flex: 1;
}
/* 公告栏滚动Rollnews */
#scrollDiv {
    width: 100%;
    height: 25px;
    line-height: 25px;
    overflow: hidden
}
#scrollDiv li {
    height: 25px;
    padding-left: 10px;
    list-style: none;
}

/* 对各种字体的设定 */

    /* [[Template:unicode]] */
    .Unicode {
        font-family: "Segoe UI", "TITUS Cyberbit Basic", "Code2000", "Doulos SIL", "Chrysanthi Unicode", "Bitstream Cyberbit", "Bitstream CyberBase", "Thryomanes", "Gentium", "GentiumAlt", "Visual Geez Unicode", "Lucida Grande", "Arial Unicode MS", "Microsoft Sans Serif", "Lucida Sans Unicode";
        font-family /**/:inherit;
        text-decoration: none;
        }
    /* Chinese [[Template:Hani]] */
    .Hani {
        font-family: SimSun, PMingLiU, Song, Ming, MingLiu, Arial Unicode MS, Code2000, sans-serif;
        font-size: 110%;
        }

    /* Chinese Simplified [[Template:Hans]] */
    .Hans {
        font-family: SimSun, FangSong, Song, Ming, MingLiu, Arial Unicode MS, Code2000, sans-serif;
        font-size: 110%;
        }

    /* Chinese Traditional [[Template:Hant]] */
    .Hant {
        font-family: PMingLiU, Song, Ming, MingLiu, Arial Unicode MS, Code2000, sans-serif;
        font-size: 110%;
        }
/* 字体大小 */
#bodyContent {
  font-size:89%;}
/* 标题下划线增强 700 = bold */
h1 {
    border-bottom: 1px solid #8ec1ed;
}
h2 {
    font-weight: 700;
    border-bottom: 1px solid block;
}
/* 被点过的外部链接不变色 */
div#content a.external:visited {
    color: #36b;
}
/* 斜体字右边距加大看以防止文字挤在一起 */
#mw-content-text i {
    margin-right: 3px;
}
/* 通用圆角框 */
.common-box {
    padding: .2em .4em;
    border: 1px solid #ddd;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-box-shadow: #666 0 2px 3px;
    -moz-box-shadow: #666 0 2px 3px;
    border-radius: 10px;
    box-shadow: #666 0 2px 3px;
}
/* info类模板 */
.infoBox {
    margin: 0 auto;
}
.infoBoxTitle {
    margin: 3px auto;
    padding: 0;
    text-align: center;
    font-weight: 700;
}
.infoBoxIcon {
    display: table-cell;
    padding: 2px 0 2px .5em;
    vertical-align: middle;
}
.infoBoxText {
    display: table-cell;
    padding: .25em .5em .25em 1.3em;
    width: 100%;
    vertical-align: middle;
}
.infoBoxContent {
    border: 1px solid #ddd;
    border-left-width: 0;
    background: #fbfbfb;
}
.infoBoxBelow {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
/* 数据表格宽度 */
.mw-datatable.TablePager {
    width: 100%;
}
/* 隐藏首页标题,空行,讨论、查看源代码tab */
.page-首页 h1.firstHeading,
.page-首页 #siteSub,
.page-首页 #contentSub,
.page-首页 li#ca-viewsource,
.page-首页 li#ca-talk {
    display: none;
}
/* 桌面版黑幕模板配合CSS */
.heimu,
.heimu a,
a .heimu,
.heimu a.new {
    background-color: #252525 !important;
    color: #252525 !important;
    text-shadow: none !important;
}
.heimu a:hover,
a:hover .heimu {
    color: #0645AD !important
}
.heimu .new:hover,
.new:hover .heimu {
    color: #BA0000 !important
}
/* 回到顶部 */
.backToTop {
    display: none;
    width: 20px;
    padding: 5px 0;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    text-align: center;
    position: fixed;
    _position: absolute;
    right: 0;
    bottom: 100px;
    _bottom: "auto";
    cursor: pointer;
    opacity: .6;
    filter: Alpha(opacity=60);
}
/* 人物信息模板的css */
.infotemplatebox {
    float: right;
    width: 250px;
    font-size: 90%;
    margin: 1em 0 1em 1em;
    background: #f9f9f9;
    border: 1px #999 solid;
    border-collapse: collapse;
    word-break: break-all;
    clear: right;
}
/* 编辑区样式 */
.my-buttons {
    padding: .5em;
}
.my-buttons a {
    text-decoration: none;
    border: 1px #069 outset;
    padding: .1em;
}
.my-buttons a:hover,
.my-buttons a:active {
    border-style: inset;
}
/* 解决pre不换行的问题 */
pre {
    white-space: pre-wrap; /* CSS-3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}
/* 页面底部导航框 */
table.navbox {
    border: 1px solid #aaa;
    clear: both;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%;
}
table.navbox+table.navbox {
    margin-top: -1px;
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
}
.navbox-group {
    font-weight: 700;
    padding-left: 1em;
    padding-right: 1em;
    white-space: nowrap;
}
.navbox,
.navbox-subgroup {
    background: none repeat scroll 0 0 #fdfdfd;
}
.navbox-list {
    border-color: #fdfdfd;
}
.navbox-title,
table.navbox th {
    background: none repeat scroll 0 0 #a5e4a5;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
    background: none repeat scroll 0 0 #c0ecc0;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
    background: none repeat scroll 0 0 #e6f6e6;
}
.navbox-even {
    background: none repeat scroll 0 0 #f5fcf5;
}
.navbox-odd {
    background: none repeat scroll 0 0 transparent;
}
.collapseButton {
    float: right;
    font-weight: 400;
    text-align: right;
    width: auto;
}
.navbox .collapseButton {
    width: 6em;
}
/* Tabs */
.tab .TabLabelText {
    display: inline-block;
    padding: 1px;
    cursor: pointer;
}
.tab .TabLabel {
    z-index: 2;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.tab .TabLabelText.selected {
    border-top: 3px solid green;
    padding: 1px;
    background: white;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa;
}
.tab .TabContent {
    background: white;
    padding: 20px 30px;
    position: relative;
    z-index: 1;
    border: 1px solid #aaa;
}
.tab .TabContentText {
    display: none;
}
.tab .TabContentText.selected {
    display: block;
}
.Tabs .Tab {
    border-bottom: 1px solid #aaa;
}
.Tabs .Tab:first-child {
    border-top: 1px solid #aaa;
}
.Tabs .Tab .TabLabelText {
    padding: 7px;
}
.Tabs .Tab .TabContentText {
    padding: 3px;
}
/* 隐藏只供管理员查看的内容 */
.sysop-show,
.accountcreator-show {
    display: none;
}
/* wikitable green */
table.wikitable-green {
    background: #c9f6e1
}
.wikitable-green th {
    background: #13ec93
}
.wikitable-green td {
    background: #f3f3f3
}
/*
 * Skeleton V2.0.4
 * Copyright 2014, Dave Gamache
 * www.getskeleton.com
 * Free to use under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 12/29/2014
 */
/* 以下内容已被格式化,注释已被翻译 */
.container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.div,
.divs,
.column,
.columns {
    width: 100%;
    float: left;
    box-sizing: border-box;
}
/* 错误信息 */
.errormessage {
    background: rgba(255,0,0,0.25);
    border-left: 5px solid #ff0000;
    padding: 5px;
    margin: 5px;
    font-weight: bolder;
}