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

提供: 小樽のじかん事典
編集の要約なし
タグ: 差し戻し済み
編集の要約なし
 
(2人の利用者による、間の18版が非表示)
30行目: 30行目:


/* =====================================================
/* =====================================================
   Timeless:Comments 拡張の外枠整理
   Timeless:Comments 拡張の外枠整理(本文基準に揃える)
   ===================================================== */
   ===================================================== */


/*
  Timeless では本文は内枠(中央寄せ)で表示されている。
  ここを padding 0 にすると、コメントだけが左に張り付いて見える。
  本文と同じ左右余白を与える。
*/
#mw-content-block #mw-data-after-content {
#mw-content-block #mw-data-after-content {
   margin-left: 0;
   margin-left: 0;
   margin-right: 0;
   margin-right: 0;
  padding-left: 0;
  padding-right: 0;
   max-width: none;
   max-width: none;
  padding-left: 2em;
  padding-right: 2em;
  box-sizing: border-box;
}
}


63行目: 71行目:


/* =====================================================
/* =====================================================
   Comments:本文コメントの基準位置
   Timeless:コメント見出しブロックの位置と間隔
   ===================================================== */
   ===================================================== */


#mw-data-after-content .c-container {
/*
   margin-left: 2em !important;
  見出しの実体は
  div.mw-heading.mw-heading2 > h2#コメント
  h2 だけでなく wrapper 側を基準にする。
*/
#mw-data-after-content .mw-heading.mw-heading2 {
  margin: 0 0 1em 0;
  padding: 0;
}
 
/* 見出し自体の余計なマージンを抑制 */
#mw-data-after-content .mw-heading.mw-heading2 > h2#コメント {
  margin: 0;
}
 
/* 見出し直下(コメント本文ブロック)との間隔 */
#mw-data-after-content .mw-heading.mw-heading2 + * {
   margin-top: 1em;
}
}




/* =====================================================
/* =====================================================
   Comments:見出し・案内文(問題の2行)
   コメント入力フォーム(幅の統一は最小限)
   ===================================================== */
   ===================================================== */


#mw-data-after-content
/* 入力欄そのもの */
> .mw-parser-output
textarea#comment {
> h2#コメント {
  display: block;
   margin-left: 2em;
  box-sizing: border-box;
  width: calc(98% - 6em);
  max-width: 56em;
  margin-left: auto;
   margin-right: auto;
  padding: 0.6em;
}
}


#mw-data-after-content
/* Comments-submit の文章も textarea と同一基準に */
> .mw-parser-output
#comments-body form .c-form-title,
> h2#コメント + p {
#comments-body form p,
  margin-left: 2em;
#comments-body form .mw-message-box,
  margin-right: 2em;
#comments-body form .oo-ui-messageWidget {
   box-sizing: border-box;
   box-sizing: border-box;
  width: calc(98% - 6em);
  max-width: 56em;
  margin-left: auto;
  margin-right: auto;
}
}




/* =====================================================
/* =====================================================
   Comments:コメント入力欄(正しく効く修正)
   コメント投稿ボタン(右寄せ)
   ===================================================== */
   ===================================================== */


/*
#comments-body form .c-form-button {
  textarea は #comments-body の外。
   text-align: right;
   form[name="commentForm"] 直下にある。
}
  padding のみで揃え、幅・margin は触らない。
 
*/
#comments-body form .c-form-button input,
#mw-data-after-content
#comments-body form .c-form-button button {
form[name="commentForm"]
   margin-left: auto;
textarea#comment {
}
   padding-left: 2em;
 
  padding-right: 2em;
/* ページ先頭の不要な余白を除去 */
  box-sizing: border-box;
.mw-parser-output::before {
    display: none;
}
 
.mw-parser-output > *:first-child {
    margin-top: 0;
}
}




/* =====================================================
/* MediaWiki:Timeless.css */
  Comments:本文側の余計なズレ防止
.share-buttons img{width:28px !important;height:28px !important;max-width:none !important;}
  ===================================================== */
.share-buttons img[src*="LINE.svg"]{transform:scale(.88) !important; transform-origin:left center;}


#mw-data-after-content .c-comment {
/* MediaWiki:Timeless.css */
   padding-left: 0;
.share-text{
  font-size:0.9em;
  color:#555;
  margin-right:6px;
   white-space:nowrap;
}
}

2026年2月7日 (土) 03:36時点における最新版

/* =====================================================
   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 では本文は内枠(中央寄せ)で表示されている。
  ここを padding 0 にすると、コメントだけが左に張り付いて見える。
  本文と同じ左右余白を与える。
*/
#mw-content-block #mw-data-after-content {
  margin-left: 0;
  margin-right: 0;
  max-width: none;

  padding-left: 2em;
  padding-right: 2em;

  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;
}


/* =====================================================
   Timeless:コメント見出しブロックの位置と間隔
   ===================================================== */

/*
  見出しの実体は
  div.mw-heading.mw-heading2 > h2#コメント
  h2 だけでなく wrapper 側を基準にする。
*/
#mw-data-after-content .mw-heading.mw-heading2 {
  margin: 0 0 1em 0;
  padding: 0;
}

/* 見出し自体の余計なマージンを抑制 */
#mw-data-after-content .mw-heading.mw-heading2 > h2#コメント {
  margin: 0;
}

/* 見出し直下(コメント本文ブロック)との間隔 */
#mw-data-after-content .mw-heading.mw-heading2 + * {
  margin-top: 1em;
}


/* =====================================================
   コメント入力フォーム(幅の統一は最小限)
   ===================================================== */

/* 入力欄そのもの */
textarea#comment {
  display: block;
  box-sizing: border-box;
  width: calc(98% - 6em);
  max-width: 56em;
  margin-left: auto;
  margin-right: auto;
  padding: 0.6em;
}

/* Comments-submit の文章も textarea と同一基準に */
#comments-body form .c-form-title,
#comments-body form p,
#comments-body form .mw-message-box,
#comments-body form .oo-ui-messageWidget {
  box-sizing: border-box;
  width: calc(98% - 6em);
  max-width: 56em;
  margin-left: auto;
  margin-right: auto;
}


/* =====================================================
   コメント投稿ボタン(右寄せ)
   ===================================================== */

#comments-body form .c-form-button {
  text-align: right;
}

#comments-body form .c-form-button input,
#comments-body form .c-form-button button {
  margin-left: auto;
}

/* ページ先頭の不要な余白を除去 */
.mw-parser-output::before {
    display: none;
}

.mw-parser-output > *:first-child {
    margin-top: 0;
}


/* MediaWiki:Timeless.css */
.share-buttons img{width:28px !important;height:28px !important;max-width:none !important;}
.share-buttons img[src*="LINE.svg"]{transform:scale(.88) !important; transform-origin:left center;}

/* MediaWiki:Timeless.css */
.share-text{
  font-size:0.9em;
  color:#555;
  margin-right:6px;
  white-space:nowrap;
}