本館粉絲專頁

MediaWiki:Common.css:修訂版本之間的差異

分享此網頁到Facebook
分享此網頁到Plurk
分享此網頁到百度搜藏
分享此網頁到Twitter
分享此網頁到Del.icio.us
台灣棒球維基館
跳轉到: 導覽搜尋
第3行: 第3行:
 
#scrollDiv li{height:25px;padding-left:10px;list-style:none;}
 
#scrollDiv li{height:25px;padding-left:10px;list-style:none;}
  
/*
+
/* <source lang="css"> */
 
+
/* CSS placed here will be applied to all skins */
== 折叠效果 ==
+
/* Default skin for navigation boxes */
 
+
table.navbox {            /* Navbox container style */
*/
+
  border: 1px solid #aaa;
/* Standard Navigationsleisten.*/
+
  width: 100%;
 
+
  margin: auto;
div.Boxmerge,
+
  clear: both;
 +
  font-size: 88%;
 +
  text-align: center;
 +
  padding: 1px;
 +
}
 +
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
 +
  margin-top: -1px;            /* (doesn't work for IE6, but that's okay)      */
 +
}
 +
.navbox-title,
 +
.navbox-abovebelow,
 +
table.navbox th {
 +
  text-align: center;      /* Title and above/below styles */
 +
  padding-left: 1em;
 +
  padding-right: 1em;
 +
}
 +
.navbox-group {            /* Group style */
 +
  white-space: nowrap;
 +
  text-align: right;
 +
  font-weight: bold;
 +
  padding-left: 1em;
 +
  padding-right: 1em;
 +
}
 +
.navbox, .navbox-subgroup {
 +
  background: #fdfdfd;    /* Background color */
 +
}
 +
.navbox-list {
 +
  border-color: #fdfdfd;  /* Must match background color */
 +
}
 +
.navbox-title,
 +
table.navbox th {
 +
  background: #ccccff;    /* Level 1 color */
 +
}
 +
.navbox-abovebelow,
 +
.navbox-group,
 +
.navbox-subgroup .navbox-title {
 +
  background: #ddddff;    /* Level 2 color */
 +
}
 +
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
 +
  background: #e6e6ff;    /* Level 3 color */
 +
}
 +
.navbox-even {
 +
  background: #f7f7f7;    /* Even row striping */
 +
}
 +
.navbox-odd {
 +
  background: transparent; /* Odd row striping */
 +
}
 +
 +
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
 +
    float: right;          /* by the CollapsibleTables javascript in    */
 +
    font-weight: normal;  /* [[MediaWiki:Common.js]]are styled here    */
 +
    text-align: right;    /* so they can be customised.                */
 +
    width: auto;
 +
}
 +
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
 +
    width: 6em;            /* the vde links from [[Template:Tnavbar]],  */
 +
}                          /* so they need to be the same width.        */
 +
 +
/* Stylesheet-Ergänzung zu Standard-[[Wikipedia:Navigationsleisten|Navigationsleisten]] */
 +
 +
div.BoxenVerschmelzen,
 
div.NavFrame {
 
div.NavFrame {
        margin: 0px;
+
    margin: 0px;
        padding: 2px;
+
    padding: 2px;
        border: 1px solid #aaaaaa;
+
    border: 1px solid #aaaaaa;
        border-collapse: collapse;
+
    text-align: center;
        font-size: 95%;
+
    border-collapse: collapse;
 +
    font-size: 95%;
 +
    clear:both;
 
}
 
}
div.Boxmerge div.NavFrame {
+
div.BoxenVerschmelzen div.NavFrame {
        border-style: none;
+
  border-style: none;
        border-style: hidden;
+
  border-style: hidden;
 
}
 
}
div.NavFrame + div.NavFrame,
+
div.NavFrame + div.NavFrame {
div.NavFrame + table.collapsible,
+
  border-top-style: none;
table.collapsible + div.NavFrame,
+
  border-top-style: hidden;
table.collapsible + table.collapsible {
+
        border-top-style: none;
+
        border-top-style: hidden;
+
 
}
 
}
 
div.NavPic {
 
div.NavPic {
        background-color: #ffffff;
+
  background-color: #ffffff;
        margin: 0px;
+
    margin: 0px;
        padding: 2px;
+
    padding: 2px;
        float: left;
+
    float: left;
}
+
}
 
div.NavFrame div.NavHead {
 
div.NavFrame div.NavHead {
        min-height: 1.6em;
+
  font-weight: bold;
        font-weight: bold;
+
  font-size: 100%;
        font-size: 100%;
+
  background-color: #efefef;
        text-align: center;
+
        background-color: #efefef;
+
        cursor:pointer;
+
 
}
 
}
 
div.NavFrame p {
 
div.NavFrame p {
        font-size: 100%;
+
  font-size: 100%;
 
}
 
}
 
div.NavFrame div.NavContent {
 
div.NavFrame div.NavContent {
        font-size: 100%;
+
  font-size: 100%;
 
}
 
}
 
div.NavFrame div.NavContent p {
 
div.NavFrame div.NavContent p {
        font-size: 100%;
+
  font-size: 100%;
 
}
 
}
 
div.NavEnd {
 
div.NavEnd {
        margin: 0px;
+
  margin: 0px;
        padding: 0px;
+
  padding: 0px;
        line-height: 1px;
+
  line-height: 1px;
        clear: both;
+
  clear: both;
 +
}
 +
 +
/* Stylesheet fuer den 'Ausklappen'-Button an Navileisten, der in [[MediaWiki:Common.js]] implementiert wird */
 +
.NavToggle {
 +
    font-size: x-small;
 +
    float:right;
 +
}
 +
 +
/* Workaround für Internet Explorer 6 */
 +
div.NavFrame, div.NavPic, .NavToggle {
 +
    position:relative;
 +
}
 +
 +
/* Abstand vor Navigationsleisten */
 +
 +
div.BoxenVerschmelzen,
 +
div.NavFrame {
 +
  margin-top: 1.5em;
 +
}
 +
div.BoxenVerschmelzen div.NavFrame {
 +
  margin-top: 0;
 +
}
 +
div.NavFrame + div.NavFrame {
 +
  margin-top: 0;
 +
}
 +
 +
/* Navigationsleisten nicht mit ausdrucken */
 +
 +
@media print{
 +
  .NavFrame {
 +
      display: none;
 +
  }
 +
  .BoxenVerschmelzen {
 +
      display: none;
 +
  }
 +
}
 +
 +
/* Should be removed after update to MW 1.16 */
 +
.mw-plusminus-pos { color: #006400 }
 +
.mw-plusminus-neg { color: #8B0000 }
 +
 +
/* Wikitable moved from Monobook.css */
 +
/* define the 'wikitable' css class to make wiki table formatting easier */
 +
TABLE.wikitable {
 +
  border-style:solid;
 +
  border-width:1px;
 +
  border-color:#aaa;
 +
  background: #f9f9f9;
 +
  border-collapse: collapse;
 +
  font-size: 95%;
 +
}
 +
 +
TABLE.wikitable TD {
 +
  padding:4px;
 +
  border-style:solid;
 +
  border-width:1px;
 +
  border-color:#aaa;
 +
}
 +
TABLE.wikitable TH {
 +
  padding:4px;
 +
  background-color:#E9E9E9;
 +
  border-style:solid;
 +
  border-width:1px;
 +
  border-color:#aaa;
 +
}
 +
 +
tt {
 +
  font-size: 115%;
 +
}
 +
 +
div.mw-geshi {
 +
  background-color: #F9F9F9;
 +
  border: 1px dashed #2F6FAB;
 +
  color: black;
 +
  line-height: 1.1em;
 +
  padding: 1em;
 +
  font: 1em/1.2em monospace;
 +
  font-size: 1.2em;
 +
}
 +
 +
pre {
 +
  font-size: 1.2em;
 +
}
 +
 +
/* Remove padlock icons on https links. Unnecessary clutter as discussed here: http://ux.stackexchange.com/questions/29004/why-does-mediawiki-put-little-padlocks-on-https-links */
 +
div#content a.external[href ^="https://"] {
 +
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC);
 
}
 
}
span.NavToggle {
+
        float: right;
+
/* Hide the 'Main Page' title https://www.mediawiki.org/wiki/Manual:FAQ#Method_1_.28css.29 */
        /*保证在禁用JS状态下不显示提示,使用hidden以保证在navbox标题能占有宽度*/
+
body.page-Main_Page h1.firstHeading {
        visibility: hidden;
+
  display: none;
        text-align: right;
+
        font-weight: normal;
+
        font-size: 80%;
+
 
}
 
}
 +
 +
/* </source> */

2015年10月9日 (五) 22:08的修訂版本

/* 此處的 CSS 將應用於所有的面板 */
#scrollDiv{width:100%;height:25px;line-height:25px; overflow:hidden}      
#scrollDiv li{height:25px;padding-left:10px;list-style:none;}
 
/* <source lang="css"> */
/* CSS placed here will be applied to all skins */
/* Default skin for navigation boxes */
table.navbox {            /* Navbox container style */
  border: 1px solid #aaa;
  width: 100%; 
  margin: auto;
  clear: both;
  font-size: 88%;
  text-align: center;
  padding: 1px;
}
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
  margin-top: -1px;            /* (doesn't work for IE6, but that's okay)       */
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
  text-align: center;      /* Title and above/below styles */
  padding-left: 1em;
  padding-right: 1em;
}
.navbox-group {            /* Group style */
  white-space: nowrap;
  text-align: right;
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
}
.navbox, .navbox-subgroup {
  background: #fdfdfd;     /* Background color */
}
.navbox-list {
  border-color: #fdfdfd;   /* Must match background color */
}
.navbox-title,
table.navbox th {
  background: #ccccff;     /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
  background: #ddddff;     /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
  background: #e6e6ff;     /* Level 3 color */
}
.navbox-even {
  background: #f7f7f7;     /* Even row striping */
}
.navbox-odd {
  background: transparent; /* Odd row striping */
}
 
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
    float: right;          /* by the CollapsibleTables javascript in    */
    font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */
    text-align: right;     /* so they can be customised.                */
    width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Tnavbar]],   */
}                          /* so they need to be the same width.         */
 
/* Stylesheet-Ergänzung zu Standard-[[Wikipedia:Navigationsleisten|Navigationsleisten]] */
 
div.BoxenVerschmelzen,
div.NavFrame {
    margin: 0px;
    padding: 2px;
    border: 1px solid #aaaaaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
    clear:both;
}
div.BoxenVerschmelzen div.NavFrame {
   border-style: none;
   border-style: hidden;
}
div.NavFrame + div.NavFrame {
   border-top-style: none;
   border-top-style: hidden;
}
div.NavPic {
   background-color: #ffffff;
    margin: 0px;
    padding: 2px;
    float: left;
 }
div.NavFrame div.NavHead {
   font-weight: bold;
   font-size: 100%;
   background-color: #efefef;
}
div.NavFrame p {
   font-size: 100%;
}
div.NavFrame div.NavContent {
   font-size: 100%;
}
div.NavFrame div.NavContent p {
   font-size: 100%;
}
div.NavEnd {
   margin: 0px;
   padding: 0px;
   line-height: 1px;
   clear: both;
}
 
/* Stylesheet fuer den 'Ausklappen'-Button an Navileisten, der in [[MediaWiki:Common.js]] implementiert wird */
.NavToggle {
    font-size: x-small;
    float:right;
}
 
/* Workaround für Internet Explorer 6 */
div.NavFrame, div.NavPic, .NavToggle {
    position:relative;
}
 
/* Abstand vor Navigationsleisten */
 
div.BoxenVerschmelzen,
div.NavFrame {
  margin-top: 1.5em;
}
div.BoxenVerschmelzen div.NavFrame {
  margin-top: 0;
}
div.NavFrame + div.NavFrame {
  margin-top: 0;
}
 
/* Navigationsleisten nicht mit ausdrucken */
 
@media print{
   .NavFrame {
       display: none;
   }
   .BoxenVerschmelzen {
       display: none;
   }
}
 
/* Should be removed after update to MW 1.16 */
.mw-plusminus-pos { color: #006400 }
.mw-plusminus-neg { color: #8B0000 }
 
/* Wikitable moved from Monobook.css */
/* define the 'wikitable' css class to make wiki table formatting easier */
TABLE.wikitable {
   border-style:solid;
   border-width:1px;
   border-color:#aaa;
   background: #f9f9f9;
   border-collapse: collapse;
   font-size: 95%;
}
 
TABLE.wikitable TD {
   padding:4px;
   border-style:solid;
   border-width:1px;
   border-color:#aaa;
}
TABLE.wikitable TH {
   padding:4px;
   background-color:#E9E9E9;
   border-style:solid;
   border-width:1px;
   border-color:#aaa;
}
 
tt { 
   font-size: 115%;
}
 
div.mw-geshi {
   background-color: #F9F9F9;
   border: 1px dashed #2F6FAB;
   color: black;
   line-height: 1.1em;
   padding: 1em;
   font: 1em/1.2em monospace;
   font-size: 1.2em;
}
 
pre {
   font-size: 1.2em;
}
 
/* Remove padlock icons on https links. Unnecessary clutter as discussed here: http://ux.stackexchange.com/questions/29004/why-does-mediawiki-put-little-padlocks-on-https-links */
div#content a.external[href ^="https://"] {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC);
}
 
/* Hide the 'Main Page' title https://www.mediawiki.org/wiki/Manual:FAQ#Method_1_.28css.29 */
body.page-Main_Page h1.firstHeading {
   display: none;
}
 
/* </source> */