10,860
editsAd placeholder
MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
/* </TODO> */ | /* </TODO> */ | ||
/* Top-right ad banner */ | |||
/* Make room for top-right ad banner. */ | /* Make room for top-right ad banner. */ | ||
Line 53: | Line 53: | ||
#bg3wiki-sitenotice-ad { | #bg3wiki-sitenotice-ad { | ||
display: none; | display: none; | ||
} | |||
.mw-ads-enabled #bg3wiki-sitenotice-ad { | |||
display: block; | |||
width: 468px; | width: 468px; | ||
height: 60px; | height: 60px; | ||
Line 60: | Line 63: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
align-content: center; | align-content: center; | ||
} | } | ||
Line 74: | Line 74: | ||
} | } | ||
/* Anon visitors have little use for these, | /* Sidebar sticky vertical ad */ | ||
/* Anon visitors have little use for these, so hide them to make more room for | |||
the ad. That said, we add a link to Special:Upload to the sidebar for anon | |||
visitors, as they may want to use that. */ | |||
.mw-ads-enabled #p-Special, | .mw-ads-enabled #p-Special, | ||
.mw-ads-enabled #p-tb { | .mw-ads-enabled #p-tb { | ||
Line 81: | Line 84: | ||
} | } | ||
/* | /* The aforementioned link to Special:Upload for anon visitors. */ | ||
.mw-logged-in #n-Upload-file { | .mw-logged-in #n-Upload-file { | ||
display: none; | display: none; | ||
} | } | ||
/* The | /* The container ("portlet" in MW terms) for the ad. */ | ||
/* Added through MW:Sidebar. */ | |||
#p-Advertisement { | #p-Advertisement { | ||
display: none; | display: none; | ||
} | } | ||
.mw-ads-enabled #p-Advertisement { | .mw-ads-enabled #p-Advertisement { | ||
display: block; | display: block; | ||
top: 0; | |||
position: sticky; | |||
} | } | ||
/* The actual div that will be used for the ad. */ | /* The actual div that will be used for the ad. */ | ||
# | #bg3wiki-sidebar-ad { | ||
width: 160px; | width: 160px; | ||
height: 600px; | height: 600px; | ||
Line 108: | Line 112: | ||
} | } | ||
/* Placeholder | /* Placeholder text within the sidebar sticky vertical ad. */ | ||
#bg3wiki-sidebar-ad p { | |||
text-align: center; | |||
line-height: 1.5em; | |||
font-size: 0. | font-size: 0.9em; | ||
font-style: italic; | |||
color: var(--fg-dark); | |||
} | } | ||