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

横リスト用CSSの追加。折り畳みボックスCSSの修正
(要出典テンプレート向けCSS)
(横リスト用CSSの追加。折り畳みボックスCSSの修正)
41行目: 41行目:


/*折り畳みボックス*/
/*折り畳みボックス*/
.collapsible-navbox {
  clear: both;
  width: 100%;
  border: 1px solid #aaa;
  margin-top: -1px;
  padding: 3px;
  font-size: 90%;
}
.navbox-title,
.navbox-title,
.navbox-group {
.navbox-group {
    text-align: center;
  text-align: center;
    font-weight: bold;
  font-weight: bold;
    background-color: #ddd;
  background-color: #ddd;
    color: #333;
  color: #333;
}
}
.navbox-title a,
.navbox-title a,
.navbox-group a {
.navbox-group a {
    color: #333;
  color: #333;
}
.collapseButton {
  float: right;
  margin-right: 0.2em;
  font-weight: normal;
  text-align: right;
}
.navbox-group {
  padding: 1px 10px;
  white-space: nowrap;
}
.navbox-list p {
  margin: 0;
}
}


.navbox-title .mw-collapsible-toggle { font-weight: normal; }
/*横リスト用CSS*/
 
.hlist dl,
.navbox-group {
.hlist ol,
     padding: 1px 10px;
.hlist ul {
     white-space: nowrap;
    display: inline;
    margin: 0;
}
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    display: inline;
    /*white-space: nowrap;*/
}
.hlist dt:before,
.hlist li:before {
    content: '・ ';
    font-weight: normal;
}
.hlist-pipe dt:before,
.hlist-pipe li:before {
    content: '| ';
}
.hlist dl:first-child dt:first-child:before,
.hlist li:first-child:before {
    content: none;
}
.hlist dd + dt:before {
    display: block;
    content: ' ';
}
.hlist dt:after {
    content: ':';
}
/*入れ子*/
.hlist li ul {
    font-size: 90%;
}
.hlist li ul:before {
    content: '(';
}
.hlist li ul:after {
    content: ')';
}
/*数字付きリスト*/
.hlist ol {
    counter-reset: hlist-item;
}
.hlist ol > li {
    counter-increment: hlist-item;
}
.hlist ol > li:before {
     content: "・ " counter(hlist-item) ". ";
}
.hlist-pipe ol > li:before {
     content: "| " counter(hlist-item) ". ";
}
.hlist ol > li:first-child:before {
    content: counter(hlist-item) ". ";
}
}
/*ここまで、横リスト用CSS*/


/*セットリスト用CSS*/
/*セットリスト用CSS*/
user-upload
3,547

回編集