Ad 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;
}
.mw-ads-enabled #bg3wiki-sitenotice-ad {
display: block;
}
}


Line 74: Line 74:
}
}


/* Anon visitors have little use for these, though we add a link to
/* Sidebar sticky vertical ad */
  Special:Upload to the sidebar for them, as they may want to use that. */
 
/* 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:
}
}


/* Logged-in users don't need this, since they have the toolbar. */
/* 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 section for the sidebar sticky vertical ad. */
/* The container ("portlet" in MW terms) for the ad. */
/* Added through MW:Sidebar. */
#p-Advertisement {
#p-Advertisement {
display: none;
display: none;
top: 0;
position: sticky;
}
}
.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. */
#p-Advertisement > div {
#bg3wiki-sidebar-ad {
width: 160px;
width: 160px;
height: 600px;
height: 600px;
Line 108: Line 112:
}
}


/* Placeholder link within sidebar sticky vertical ad. */
/* Placeholder text within the sidebar sticky vertical ad. */
/* Need to be a bit more specific here to override the default. */
#bg3wiki-sidebar-ad p {
/* (This is a regular sidebar element from MW:Sidebar.) */
text-align: center;
#mw-panel #p-Advertisement li {
line-height: 1.5em;
font-size: 0.92em;
font-size: 0.9em;
font-style: italic;
color: var(--fg-dark);
}
}


Navigation menu