「MediaWiki:Common.css」の版間の差分
表示
編集の要約なし |
編集の要約なし |
||
| 1行目: | 1行目: | ||
@media screen and (min-width: 1000px) { | @media screen and (min-width: 1000px) { | ||
/* 1. ページ全体の「一番上」に強制的に作られる余白を抹殺 */ | |||
html, body { | |||
margin-top: 0 !important; | |||
padding-top: 0 !important; | |||
} | |||
/* | /* 2. Googleが勝手に挿入する全広告ユニットをヘッダー周辺から消す */ | ||
#mw-head ins.adsbygoogle, | #mw-head ins.adsbygoogle, | ||
#mw-navigation ins.adsbygoogle, | #mw-navigation ins.adsbygoogle, | ||
| 8行目: | 12行目: | ||
#p-search ins.adsbygoogle, | #p-search ins.adsbygoogle, | ||
#p-personal ins.adsbygoogle, | #p-personal ins.adsbygoogle, | ||
.google-auto-placed, | |||
div[class*="google-auto-placed"], | |||
ins[data-vignette-loaded="true"] { | |||
display: none !important; | display: none !important; | ||
height: 0 !important; | |||
width: 0 !important; | |||
overflow: hidden !important; | |||
visibility: hidden !important; | visibility: hidden !important; | ||
} | } | ||
/* 3. | /* 3. ロゴや検索窓が「下」に隠れないよう、一番手前に引っ張り出す */ | ||
#mw-head { | #mw-head, #p-logo, #p-search, #p-personal { | ||
position: relative !important; | |||
z-index: | z-index: 999999 !important; /* 最大級のパワーで前面へ */ | ||
background: white !important; /* 背景を白にして広告を透けさせない */ | |||
} | } | ||
} | } | ||
2026年2月18日 (水) 14:16時点における版
@media screen and (min-width: 1000px) {
/* 1. ページ全体の「一番上」に強制的に作られる余白を抹殺 */
html, body {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* 2. Googleが勝手に挿入する全広告ユニットをヘッダー周辺から消す */
#mw-head ins.adsbygoogle,
#mw-navigation ins.adsbygoogle,
#p-logo ins.adsbygoogle,
#p-search ins.adsbygoogle,
#p-personal ins.adsbygoogle,
.google-auto-placed,
div[class*="google-auto-placed"],
ins[data-vignette-loaded="true"] {
display: none !important;
height: 0 !important;
width: 0 !important;
overflow: hidden !important;
visibility: hidden !important;
}
/* 3. ロゴや検索窓が「下」に隠れないよう、一番手前に引っ張り出す */
#mw-head, #p-logo, #p-search, #p-personal {
position: relative !important;
z-index: 999999 !important; /* 最大級のパワーで前面へ */
background: white !important; /* 背景を白にして広告を透けさせない */
}
}