Jump to content

MediaWiki:Centralnotice-template-WMHU 1percent 2017

From Meta, a Wikimedia project coordination wiki

<style>

  1. wmhu-tax-banner {
 position: relative;
 overflow: hidden;
 margin-bottom: 0.5em;
 background-color: #FFFFFF;
 border: solid 1px black; 
 height:90px;

}

  1. wmhu-tax-banner-logo {
 float: left;
 background-image: url(//upload.wikimedia.org/wikipedia/foundation/thumb/9/9c/MokaHands_CN.png/120px-MokaHands_CN.png);
 height: 90px;
 width: 120px;
 background-position: top left;
 position: relative;
 overflow: hidden;
 margin-left: 20px;

}

a.cn-full-banner-click {

 display: block;
 position: relative;
 height: 100%;
 width: 100%;

}

/* Bigger bold, blue text */

  1. wmhu-tax-banner-text {
 font-size: 1.5em;
 font-weight: bold;
 font-family: Helvetica, sans-serif;
 color: #0019e8;
 padding: 1em;
 line-height: 1.4;
 text-align:center;

}

@media(max-width: 890px) {

 #wmhu-tax-banner-text {
   padding: .4em 1em;
 }

}

  1. wmhu-tax-banner-text:hover {
 text-decoration: underline

}

  1. wmhu-tax-banner a {
 text-decoration: none;

}

  1. wmhu-tax-banner #cn-toggle-box {
 position: absolute;
 z-index: 1000;
 top: .2em;
 right: .2em;
 opacity: .8

}

  1. wmhu-tax-banner #cn-toggle-box:hover {
 opacity: 1;

} </style>

 <a class="variable_lp cn-full-banner-click" href="{{{url}}}" title="{{{title}}}">
     {{{text}}}
 </a>
   <a href="#" title="Close" onclick="mw.centralNotice.hideBanner(); return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/foundation/2/20/CloseWindow19x19.png" alt="Close" /></a>