「MediaWiki:Common.css」の版間の差分

ナビゲーションに移動 検索に移動
編集の要約なし
(ページの作成:「→‎ここに書いた CSS はすべての外装に反映されます: →‎* フォント・ファミリの設定: .Unicode { font-family: 'TITUS Cyberbit Basic'…」)
 
編集の要約なし
 
62行目: 62行目:
}
}


/*     group style */
th.navbox-group {            /* Group style */
.navbox-group {
white-space: nowrap;
    white-space: nowrap;
/* @noflip */
    text-align: right;
text-align: right;
    font-weight: bold;
    padding-left: 1em;
    padding-right: 1em;
}
}


88行目: 85行目:
}
}


/*    Level 2 color */
.navbox-abovebelow,
.navbox-abovebelow,
.navbox-group,
th.navbox-group,
.navbox-subgroup .navbox-title {
.navbox-subgroup .navbox-title {
    background: #ddddff;
background-color: #ddddff;     /* Level 2 color */
}
}


124行目: 120行目:
}
}


/* [[en:MediaWiki:Common.css]] から複製。 */
/* Style for horizontal lists (separator following item).
/* Style for horizontal lists (separator following item).
  Note: hlist formatting will break if the resulting HTML lacks a breakable character
  between list items. This happens when the following conditions are true:
  1) The list is made using wiki markup (where HTML is built by parser.php)
  2) HTMLTidy is disabled or unavailable (such as on Special: pages)
  In such cases, building lists with .hlist using HTML instead of wiki markup
  will work around this problem. See also [[Bugzilla:39617]].
  IE8-specific classes are assigned in [[MediaWiki:Common.js/IEFixes.js]].
  Last updated: January 24, 2013
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @maintainer: [[User:Edokter]]
   @revision 9 (2016-08-10)
  @revision: 3.1
  @author [[User:Edokter]]
*/
*/
.skin-monobook .hlist dl,
.skin-modern .hlist dl,
.skin-vector .hlist dl {
    line-height: 1.5em;
}
.hlist dl,
.hlist dl,
.hlist ol,
.hlist ol,
149行目: 131行目:
     padding: 0;
     padding: 0;
}
}
/* Display list items inline and make them nowrap */
/* Display list items inline */
.hlist dd,
.hlist dd,
.hlist dt,
.hlist dt,
155行目: 137行目:
     margin: 0;
     margin: 0;
     display: inline;
     display: inline;
    white-space: nowrap;
}
/* Allow wrapping for list items (in tight spaces) */
.hlist.hwrap dd,
.hlist.hwrap dt,
.hlist.hwrap li {
    white-space: normal;
}
}
/* Display nested lists inline and allow them to wrap */
/* 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 dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
.hlist ul dl, .hlist ul ol, .hlist ul ul {
     display: inline;
     display: inline;
     white-space: normal;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
     display: none;
}
}
/* Generate interpuncts */
/* Generate interpuncts */
.hlist dt:after {
.hlist dt:after {
     content: ": ";
     content: ": ";
    white-space: normal;
}
}
.hlist dd:after,
.hlist dd:after,
179行目: 161行目:
     content: " · ";
     content: " · ";
     font-weight: bold;
     font-weight: bold;
    white-space: normal;
}
}
/* 日本語版の独自仕様。-pipe と -hyphen */
/* 日本語版の独自仕様。-pipe、-hyphen、-comma、-slash */
.hlist-pipe dd:after,
.hlist-pipe dd:after,
.hlist-pipe li:after {
.hlist-pipe li:after {
195行目: 176行目:
.hlist-comma li:after {
.hlist-comma li:after {
     content: "、 ";
     content: "、 ";
    font-weight: normal;
}
.hlist-slash dd:after,
.hlist-slash li:after {
    content: " / ";
     font-weight: normal;
     font-weight: normal;
}
}
200行目: 186行目:
.hlist dt:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
.hlist li:last-child:after {
    content: none;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-last-child:after {
     content: none;
     content: none;
}
}
212行目: 192行目:
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
     content: "(";
     content: " (";
     font-weight: normal;
     font-weight: normal;
}
}
221行目: 201行目:
     font-weight: normal;
     font-weight: normal;
}
}
/* For IE8 */
/* Put ordinals in front of ordered list items */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist ol {
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
     counter-reset: listitem;
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
    content: ")";
    font-weight: normal;
}
/* Put numbers in front of ordered list items */
.hlist.hnum ol {
     counter-reset: list-item;
}
}
.hlist.hnum ol > li {
.hlist ol > li {
     counter-increment: list-item;
     counter-increment: listitem;
}
}
.hlist.hnum ol > li:before {
.hlist ol > li:before {
     content: counter(list-item) ".\a0";
     content: " " counter(listitem) ".\a0";
}
}
.hlist.hnum dd ol > li:first-child:before,
.hlist dd ol > li:first-child:before,
.hlist.hnum dt ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist.hnum li ol > li:first-child:before {
.hlist li ol > li:first-child:before {
     content: "(" counter(list-item) " ";
     content: " (" counter(listitem) "\a0";
}
}


270行目: 243行目:
h1 {
h1 {
     line-height: 1.2em;
     line-height: 1.2em;
}
/* Metadata */
table.metadata {
    border: 1px solid #a2a9b1;
    display: none;
}
/*
Add formatting to make sure that "external references" from [[Template:Ref]] do
not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
that the HTML code contained a SPAN following the anchor A; this SPAN had the class
"urlexpansion", which was not displayed on screen, but was shown when the medium was
"print". The rules below ensure (a) that there is no extra padding to the right of
the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
the link, and (c) that this SPAN of class "urlexpansion" is never shown.
*/
.plainlinksneverexpand {
    background: none !important;
    padding: 0 !important;
}
.plainlinksneverexpand .urlexpansion {
    display: none !important;
}
/*
Make sure that ext links displayed within "plainlinksneverexpand" don't get
the arrow...
*/
.plainlinksneverexpand a {
    background: none !important;
    padding: 0 !important
}
/*
With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
following the anchor A, the anchor itself now has class "external autonumber" and the
expansion is inserted when printing (see the common printing style sheet at
//en.wikipedia.org/w/skins/common/commonPrint.css) using the ":after" pseudo-
element of CSS. We have to switch this off for links due to Template:Ref!
*/
.plainlinksneverexpand a.external.text:after {
    display: none !important;
}
.plainlinksneverexpand a.external.autonumber:after {
    display: none !important;
}
}


1,020行目: 945行目:
     border: 1px solid #c0c090;    /* Gray-brown */
     border: 1px solid #c0c090;    /* Gray-brown */
}
}
 
/* Disambig and set index box styles */
table.dmbox {
    clear: both;
    margin: 0.9em 1em;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: transparent;
}
/* Footer and header message box styles */
/* Footer and header message box styles */
table.fmbox {
table.fmbox {
1,242行目: 1,158行目:
body.page-メインページ h1.pagetitle {
body.page-メインページ h1.pagetitle {
     display: none;
     display: none;
}
/* Common.js の LinkFA() を参照 */
#p-lang li.FA {
    list-style-image: url("//upload.wikimedia.org/wikipedia/commons/d/d0/Monobook-bullet-star-transparent.png");
}
/* Common.js の LinkGA() を参照 */
#p-lang li.GA {
    list-style-image: url("//upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Blue_star_boxed.svg/9px-Blue_star_boxed.svg.png");
}
}


1,332行目: 1,238行目:
.mw-changeslist > .mw-changeslist-legend.mw-enhanced {
.mw-changeslist > .mw-changeslist-legend.mw-enhanced {
position: relative;
position: relative;
}
/* 履歴や本文で長い文字列を折り返せない問題の解消 */
#bodyContent { 
word-wrap: break-word;
overflow-wrap: break-word;
}
}

案内メニュー