「MediaWiki:Timeless.css」の版間の差分
提供: 小樽のじかん事典
編集の要約なし |
編集の要約なし タグ: 差し戻し済み |
||
| 49行目: | 49行目: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| 86行目: | 87行目: | ||
/* ===================================================== | /* ===================================================== | ||
Comments:見出し直下の案内文も本文基準に揃える | |||
===================================================== */ | ===================================================== */ | ||
/* | /* 見出し */ | ||
#mw-data-after-content h2#コメント { | |||
margin-left: 1em; | |||
*/ | } | ||
#mw-data-after-content h2#コメント | |||
#mw-data-after-content h2#コメント | /* 見出し直後に続く案内文(複数行対応) */ | ||
#mw-data-after-content h2#コメント ~ p { | |||
margin-left: 1em; | margin-left: 1em; | ||
margin-right: 0; | margin-right: 0; | ||
} | } | ||
/* ===================================================== | /* ===================================================== | ||
2026年1月11日 (日) 06:26時点における版
/* =====================================================
Timeless:ページツールの不要項目を非表示
===================================================== */
/* サイドバー TOOLBOX 内 */
#t-whatlinkshere,
#t-recentchangeslinked,
#t-info,
#t-log {
display: none;
}
/* 右カラム ページツール */
#mw-related-navigation #t-print,
#mw-related-navigation #t-permalink,
#mw-related-navigation #t-pagelog {
display: none;
}
/* 右カラム ページツール「その他」見出し */
#mw-related-navigation #p-pagemisc > h3 {
display: none;
}
/* 記事タイトル直下 インラインツール「その他」 */
#mw-page-header-links #p-more {
display: none;
}
/* =====================================================
Timeless:Comments 拡張の表示幅調整
(外枠はフラット、内側で揃える)
===================================================== */
/* コメント領域の外枠(Timeless 本文と同列にする) */
#mw-content-block #mw-data-after-content {
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
max-width: none;
}
/* コメント本体(幅は制御しない) */
#mw-data-after-content .comments-body {
width: 100%;
max-width: none;
box-sizing: border-box;
}
/* =====================================================
Comments:背景色を記事本文と同一に
===================================================== */
#mw-data-after-content {
background-color: #ffffff;
}
#mw-data-after-content .comments-body,
#mw-data-after-content .c-comment,
#mw-data-after-content .c-item {
background-color: #ffffff;
}
/* コメント外枠の装飾を弱める */
#mw-data-after-content .c-item {
background-color: transparent;
border: none;
}
/* =====================================================
Comments:文字開始位置の基準を確定
===================================================== */
/*
ここが唯一の基準。
コメント本文は「1em」内側から始まる。
*/
#mw-data-after-content .c-container {
margin-left: 1em !important;
}
/* =====================================================
Comments:見出し直下の案内文も本文基準に揃える
===================================================== */
/* 見出し */
#mw-data-after-content h2#コメント {
margin-left: 1em;
}
/* 見出し直後に続く案内文(複数行対応) */
#mw-data-after-content h2#コメント ~ p {
margin-left: 1em;
margin-right: 0;
}
/* =====================================================
Comments:本文側の微調整(誤差防止)
===================================================== */
/* コメント本文自体には余計な padding を付けない */
#mw-data-after-content .c-comment {
padding-left: 0;
}