「MediaWiki:Common.css」:修訂間差異

imported>NoahLDW
無編輯摘要
無編輯摘要
 
(未顯示由 2 位使用者於中間所作的 4 次修訂)
第1行: 第1行:
/* 此 CSS 會套用至所有的介面外觀 */
/* 此 CSS 會套用至所有的介面外觀 */
/* 首頁 */
div.mainpageNavbox > ul{
display: flex;
}
body.page-首頁.action-view h1.firstHeading, body.page-首頁.action-submit h1.firstHeading { display: none; }
div.mainpageNavbox > ul > li{
display: flex;
}


/* 介面 */
/* 介面 */
第56行: 第66行:
/* 條目顯示 */
/* 條目顯示 */
.skin-vector .mw-body-content, .skin-darkvector .mw-body-content{ font-size: 1em; }
.skin-vector .mw-body-content, .skin-darkvector .mw-body-content{ font-size: 1em; }
/* Navbox */
table.navbox th {
position: relative;
text-align: center;
}
table.navbox th span.navbox-bar {
position: absolute;
    left: 5px;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    font-size: 85%;
    font-weight: normal;
}
table.mw-collapsible.navbox th span.mw-collapsible-toggle {
position: absolute;
    right: 5px;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
}
table.mw-collapsible.navbox tr:not(:first-child) td {
font-size: 85%;
padding: 0 10px;
}
table.lineGraph td {
padding: 0!important;
}
table.mw-collapsible.navbox tr:not(:first-child) td:first-child {
text-align: center;
width: 7.5%;
}
table.navbox ul:not(.normal) {
margin: 0;
display: inline;
padding: 0;
}
table.navbox ul:not(.normal) ul:not(.normal):before {
content:"(";
}
table.navbox ul:not(.normal) ul:not(.normal):after {
content:")";
}
table.navbox ul:not(.normal) li {
display: inline-block;
margin: 0;
}
table.navbox ul:not(.normal) li:not(:last-child):after {
content:" ·";
font-weight:bold;
}
.skin-darkvector table.navbox { border: 1px solid #a2a9b1; }
table.navbox { border: 1px solid #024A64; }


/* 資訊板 */
/* 資訊板 */
第112行: 第189行:
table.fileinfotpl-type-information { background:unset; }
table.fileinfotpl-type-information { background:unset; }
.skin-darkvector table.fileinfotpl-type-information td.fileinfo-paramfield { color: #222; }
.skin-darkvector table.fileinfotpl-type-information td.fileinfo-paramfield { color: #222; }
/* NavBar */
.navbar > ul { display: inline; margin: 0; }
.navbar > ul > li { display: inline; }
.navbar > ul > li:not(:last-child):after { content: " · "; font-weight: bold; }


/* Template:plainlist */
/* Template:plainlist */
第477行: 第559行:
}
}


/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {     
    /* @noflip */
    float: right;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
/* custom edits */
/* Default style for navigation boxes */
/* Default style for navigation boxes */
.navbox {                    /* Navbox container style */
.navbox {                    /* Navbox container style */
第512行: 第608行:
.navbox th,
.navbox th,
.navbox-title {
.navbox-title {
    background: #ccccff;      /* Level 1 color */
    background:#ccf;      /* Level 1 color */
    position: relative;
}
}
.navbox-abovebelow,
.navbox-abovebelow,
第556行: 第653行:
}
}


/* Default styling for Navbar template */
/* Style for horizontal lists (separator following item) */
.navbar {
 
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
}
.hlist dd,
.hlist dt,
.hlist li {
     display: inline;
     display: inline;
     font-weight: normal;
    margin: 0;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Generate interpuncts */
.hlist dt:after {
    content: " :";
}
.hlist dd:after,
.hlist li:after {
    content: " · ";
     font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
 
/* Add parens around nested lists */
.hlist dl dl:before,
.hlist ol ol:before,
.hlist ul ul:before {
    content: "(";
}
.hlist dl dl:after,
.hlist ol ol:after,
.hlist ul ul:after {
    content: ")";
}
/* Put numbers in ordered lists */
.hlist.hnum ol li {
    counter-increment: level1;
}
.hlist.hnum ol li:before {
    content: counter(level1) " ";
}
.hlist.hnum ol ol li {
    counter-increment: level2;
}
}
.navbar ul {
.hlist.hnum ol ol li:before {
     display: inline;
     content: counter(level2) " ";
    white-space: nowrap;
}
}
.navbar li {
 
     word-spacing: -0.125em;
/* Unbulleted lists */
.plainlist ul {
     line-height: inherit;
    list-style: none none;
    margin: 0;
}
}
.navbar.mini li abbr[title] {
.plainlist ul li {
     font-variant: small-caps;
     margin-bottom: 0;
    border-bottom: none;
    text-decoration: none;
    cursor: inherit;
}
}
/* Navbar styling when nested in navbox */
 
.navbox .navbar {
.same-bg { background: none }
    display: block;
 
/* Styling for jQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
font-weight: normal;
/* @noflip */
text-align: right;
padding-right: 0.2em;
padding-left: 0.2em;
}
}
.navbox-title .navbar {
 
    /* @noflip */
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
    float: left;
/* @noflip */
    /* @noflip */
float: left;
    text-align: left;
/* @noflip */
    /* @noflip */
text-align: left;
    margin-right: 0.5em;
    width: 8em;
}
}


/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
body.skin-minerva .infobox table {
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
display: table;
.collapseButton {      
    /* @noflip */
    float: right;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
}
/* In navboxes, the show/hide button balances the v·d·e links
body.skin-minerva .infobox caption {
  from [[Template:Navbar]], so they need to be the same width. */
display: table-caption;
.navbox .collapseButton {
    width: 8em;
}
}