「MediaWiki:Common.css」の版間の差分
ナビゲーションに移動
検索に移動
細 |
|||
52行目: | 52行目: | ||
text-align:center; | text-align:center; | ||
white-space:nowrap; | white-space:nowrap; | ||
− | |||
} | } | ||
− | |||
.main_h1{ | .main_h1{ | ||
font-size:135%; | font-size:135%; | ||
62行目: | 60行目: | ||
background:#333; | background:#333; | ||
} | } | ||
− | |||
.main_h2{ | .main_h2{ | ||
font-size:155%; | font-size:155%; | ||
} | } | ||
− | |||
.main_table{ | .main_table{ | ||
display:table; | display:table; | ||
73行目: | 69行目: | ||
border-spacing:3px 3px; width:100%; | border-spacing:3px 3px; width:100%; | ||
} | } | ||
− | |||
.main_tablecell{ | .main_tablecell{ | ||
display:table-cell; | display:table-cell; | ||
} | } | ||
− | |||
.main_tablecell td:nth-last-of-type(2n){ | .main_tablecell td:nth-last-of-type(2n){ | ||
padding-bottom:1.5em; | padding-bottom:1.5em; | ||
padding-left:0.45em; | padding-left:0.45em; | ||
+ | } | ||
+ | @media screen and (max-width: 1000px) { | ||
+ | .mainmenu_ellipsis{ | ||
+ | display:none; | ||
+ | } | ||
} | } | ||
2016年5月25日 (水) 19:16時点における版
/*--------------------------------------------------
ここに記述したCSSはすべての外装に反映されます
モバイル用ページ用のCSSはMediaWiki:Mobile.cssで
--------------------------------------------------*/
/*--------------------------------------------------
メインページのh1を非表示
--------------------------------------------------*/
body.page-メインページ h1.firstHeading {display:none;}
body.page-メインページ #contentSub {display:none;}
/*--------------------------------------------------
見出し
--------------------------------------------------*/
h2 { font-size: 155%; }
h2 { font-weight: bold; }
h2 { border-bottom: medium double; }
h3 { font-size: 145%; }
h3 { border-left: 6px solid #BABABA; }
h3 { border-bottom: 2px solid #BABABA; }
h4 { border-left: 10px double #BABABA; }
div#content h3, div#content h4, div#content h5, div#content h6 { margin-top: 1em; padding: 0.05em 0.2em;}
h2, h3, h4, h5 { letter-spacing: 0.5em;}
h4 ,h5 { border-bottom: 1px solid #BABABA; }
/*--------------------------------------------------
本文スタイル
--------------------------------------------------*/
div#content p {
line-height: inherit;
margin: 0.5em 0 1em;
}
li {
margin-bottom: 0.3em;
}
.mw-content-ltr ul {
margin: 0.2em 0 0.2em 1.6em;
padding: 0;
}
/*--------------------------------------------------
メインページ PC版
--------------------------------------------------*/
.main_h{
color:#fff;
font-weight:bold;
text-align:center;
white-space:nowrap;
}
.main_h1{
font-size:135%;
padding-bottom:7px;
letter-spacing:1em;
width:100%;
background:#333;
}
.main_h2{
font-size:155%;
}
.main_table{
display:table;
table-layout:fixed;
border-collapse:separate;
border-spacing:3px 3px; width:100%;
}
.main_tablecell{
display:table-cell;
}
.main_tablecell td:nth-last-of-type(2n){
padding-bottom:1.5em;
padding-left:0.45em;
}
@media screen and (max-width: 1000px) {
.mainmenu_ellipsis{
display:none;
}
}
/*--------------------------------------------------
リンク色変更
--------------------------------------------------*/
/* 白 */
.link_white a { text-decoration: none;}/* デフォでは下線無し */
.link_white a:hover{ text-decoration: underline;}/* マウスオーバーで下線 */
.link_white a:link { color: #FFF; }
.link_white a:visited { color: #FFF; }/* すでに踏んだリンク色 */
/*--------------------------------------------------
テンプレート:TOC limit
--------------------------------------------------*/
.toclimit-2 .toclevel-2 {display: none;}
.toclimit-3 .toclevel-3 {display: none;}
.toclimit-4 .toclevel-4 {display: none;}
.toclimit-5 .toclevel-5 {display: none;}
.toclimit-6 .toclevel-6 {display: none;}
.toclimit-7 .toclevel-7 {display: none;}
/*--------------------------------------------------
テーブルの奇数行に着色 表にclass="odd"
--------------------------------------------------*/
.odd tr:nth-child(2n-1) {
background: #e0f7ff;
}
.odd tr:nth-child(2n) {
background: #fff;
}
/*--------------------------------------------------
キャラセレ風表
--------------------------------------------------*/
.char_table {
max-width:900px;
margin:5px auto 5px;
}
.char_table > div {
display:inline-block;
width:60px;
letter-spacing:-0.5px;
font-size:0.7em;
white-space: nowrap;
text-align:center;
border:1px #333 solid;
}
/*--------------------------------------------------
テンプレート:引用2
--------------------------------------------------*/
.blockquote2{
border:1px solid #ddd;
border-left:8px solid #ddd;
position:relative;
padding:32px 24px 0.1em;
}
.blockquote2 p:nth-of-type(1) {
font-size:medium;
}
.blockquote2 p:nth-last-of-type(1) {
text-align:right;
font-size:smaller;
}
.blockquote2::before{
position: absolute;
top: -10px;
left: 24px;
content:" ";
display:inline-block;
width:38px;
height:30px;
background:url( http://ssbwiki.e3.valueserver.jp/wiki/images/9/98/Quote-left.svg);
background-size:contain;
vertical-align:middle;
background-repeat:no-repeat;
}